Một framework prompt engineering đủ ngắn để team nào cũng dùng được
Prompt tốt không cần thần chú. Chỉ cần rõ mục tiêu, rõ input, rõ format đầu ra.
CRISP Framework
Context — Ai đang nói? Trong tình huống nào?
Role — AI đóng vai gì? Expert nào?
Input — Data/info cung cấp cho AI
Specification — Format output, constraints, tone
Proof — Ví dụ output mong muốn (few-shot)
Ví dụ áp dụng
Bad prompt:
"Viết email marketing"
Good prompt (CRISP):
"Context: Tôi là founder startup SaaS B2B, sản phẩm là project management tool.
Role: Bạn là email marketing expert với 10 năm kinh nghiệm B2B.
Input: Target audience là tech leads tại companies 50-200 người. Pain point: task tracking scattered across Slack/Notion/Sheets.
Spec: Viết 1 cold email, subject line + body, tone professional nhưng conversational, max 150 words, có 1 CTA.
Proof: Subject line kiểu 'Still tracking tasks in Slack threads?'"
Tips thêm
- **Iterate**: Prompt đầu tiên hiếm khi perfect → refine
- **Temperature**: Creative task → 0.7-1.0, factual → 0-0.3
- **Chain of thought**: "Think step by step" thực sự hiệu quả cho reasoning