Prompting 101: จากทริกสู่การสั่งงานให้ชัดPrompting 101: from tricks to clear requests
เข้าใจวิวัฒนาการของ prompting จากทริกคำสั่ง ไปสู่ทักษะการสื่อสารที่ใช้ task, context, constraints, examples และ verificationUnderstand how prompting evolved from magic phrases into a practical communication skill: task, context, constraints, examples, and verification.
Prompting is not about finding one secret sentence that unlocks the model.
The useful version is simpler:
Prompting is the skill of explaining work clearly enough that AI can help without guessing too much.
That makes it a basic skill, like Markdown or terminal. It is not only for developers. Anyone who asks AI to write, summarize, compare, plan, research, translate, or review work is already prompting.
The evolution of prompting
Prompting has gone through a few phases.
Phase 1: one-shot asking
Early everyday AI use looked like this:
Write an email to my customer.
Sometimes it worked. Often it produced something generic because the model did not know the customer, goal, tone, relationship, or boundary.
Phase 2: prompt tricks
People started adding tricks:
Act as a world-class marketer.
Think step by step.
Make it 10x better.
Some tricks helped, especially with older models or narrow tasks. But tricks also made people think prompting was magic. It is not.
Phase 3: structured prompting
Provider docs now converge on a more practical idea: give clear instructions, useful context, constraints, examples, and the desired output shape.
Task: Rewrite this customer email.
Context: The customer is upset because delivery is 3 days late.
Tone: Calm, accountable, not defensive.
Output: Thai email, 120 words or less.
Check: Do not promise a refund. Ask for confirmation of the new delivery address.
This works because the AI has less to invent.
Phase 4: context engineering
For more advanced systems, prompting has expanded into context engineering: deciding what information, documents, examples, tools, and history should be available to the model at the right moment.
For a beginner, the lesson is practical:
Better AI output usually comes from better supplied context, not louder instructions.
Phase 5: outcome-first prompting
The newest model guidance also warns against dragging old, process-heavy prompt stacks into newer models. Stronger models often work better when you define the outcome, constraints, evidence, and final answer shape, then leave room for the model to choose an efficient path.
That does not mean vague prompts are good. It means modern prompts should be clear and scoped, not overloaded.
The modern prompt mindset
Modern prompting has four rules.
- Say the job.
- Give the context.
- Define the output.
- Check the result.
Use this starter pattern:
I want you to help me [task].
Context:
- [who this is for]
- [what happened]
- [what matters]
Output:
- [format]
- [length]
- [language]
- [tone]
Before answering, ask me up to 3 questions if anything important is missing.
The last line matters. It turns the model from a guessing machine into a collaborator.
Bad prompt, better prompt
Bad:
Make this better.
Better:
Rewrite this announcement for Thai office workers.
Goal: make the message clear, polite, and easy to act on.
Tone: professional but warm.
Length: under 120 words.
Keep: the deadline and the contact person.
Avoid: sounding like a legal notice.
Text:
[paste draft]
The better prompt does not use fancy language. It simply gives the model enough work context.
Practice
Rewrite this weak prompt:
Help me with my presentation.
Use the modern prompt pattern:
Task:
Context:
Audience:
Output:
Constraints:
Ask first if:
Your goal is not to make the prompt long. Your goal is to remove important guessing.
References
- OpenAI Prompting — prompting as an iterative practice, prompt versioning, variables, and evals.
- OpenAI Prompt Engineering — message roles, Markdown/XML structure, few-shot examples, and context.
- OpenAI Prompt Guidance — latest GPT-5.5 guidance on shorter outcome-first prompts, constraints, evidence, and final answer shape.
- OpenAI GPT-5.2 Prompting Guide — current guidance on scope, verbosity, research bars, and eval-driven prompt migration.
- Anthropic Prompt Engineering Overview — start with success criteria and evaluation before tuning prompts.
- Anthropic: Effective Context Engineering for AI Agents — context engineering as the next step beyond prompt wording.
- Google Gemini Prompt Design Strategies — clear instructions, constraints, examples, decomposition, and iteration.
- Microsoft Foundry Prompt Engineering Techniques — clear syntax, task breakdown, affordances, and citation-based grounding.
- Wei et al., 2022: Chain-of-Thought Prompting — the research paper that made step-by-step reasoning prompts famous.
- Wang et al., 2022: Self-Consistency — sampling multiple reasoning paths and choosing the most consistent answer.
- Yao et al., 2022/2023: ReAct — combining reasoning with actions such as tool use and search.
- Sahoo et al., 2024: Systematic Survey of Prompt Engineering — broad taxonomy of prompting techniques and applications.
- Dong et al., 2025: Survey of Context Engineering — newer framing around context retrieval, processing, and management.
Prompting ไม่ใช่การหาประโยควิเศษหนึ่งประโยคที่ทำให้ AI เก่งขึ้นทันที
นิยามที่ใช้ได้จริงกว่านั้นง่ายมาก:
Prompting คือทักษะการอธิบายงานให้ชัดพอที่ AI จะช่วยได้โดยไม่ต้องเดาเยอะเกินไป
เพราะฉะนั้นมันเป็นทักษะพื้นฐาน เหมือน Markdown หรือ terminal ไม่ใช่เรื่องของ developer อย่างเดียว คนที่ให้ AI เขียน สรุป เปรียบเทียบ วางแผน ค้นคว้า แปล หรือ review งาน ก็กำลัง prompt อยู่แล้ว
วิวัฒนาการของ prompting
Prompting ผ่านมาหลายช่วง
ช่วงที่ 1: ถามตรงๆ ครั้งเดียว
การใช้ AI ช่วงแรกๆ มักหน้าตาแบบนี้:
ช่วยเขียนอีเมลหาลูกค้าให้หน่อย
บางครั้งก็ใช้ได้ แต่บ่อยครั้งคำตอบจะกว้างเกินไป เพราะ model ไม่รู้ว่าลูกค้าคือใคร เป้าหมายคืออะไร น้ำเสียงควรเป็นแบบไหน ความสัมพันธ์เป็นอย่างไร และห้ามพูดอะไรบ้าง
ช่วงที่ 2: ทริก prompt
คนเริ่มเพิ่มทริกเข้าไป:
Act as a world-class marketer.
Think step by step.
Make it 10x better.
บางทริกช่วยได้ โดยเฉพาะกับ model รุ่นเก่าหรืองานบางประเภท แต่ทริกทำให้หลายคนเข้าใจผิดว่า prompting คือเวทมนตร์ ทั้งที่จริงไม่ใช่
ช่วงที่ 3: prompt แบบมีโครง
เอกสารจากผู้ให้บริการหลักๆ เริ่มไปในทิศทางเดียวกันมากขึ้น: ให้ instruction ชัด ใส่ context ที่จำเป็น บอก constraint ใส่ตัวอย่าง และบอกรูปแบบผลลัพธ์ที่ต้องการ
Task: Rewrite this customer email.
Context: The customer is upset because delivery is 3 days late.
Tone: Calm, accountable, not defensive.
Output: Thai email, 120 words or less.
Check: Do not promise a refund. Ask for confirmation of the new delivery address.
วิธีนี้เวิร์กเพราะ AI ต้องเดาน้อยลง
ช่วงที่ 4: context engineering
ในระบบที่ซับซ้อนขึ้น prompting ขยายไปเป็น context engineering คือการออกแบบว่า model ควรเห็นข้อมูล เอกสาร ตัวอย่าง เครื่องมือ และประวัติอะไร ในจังหวะไหน
สำหรับมือใหม่ บทเรียนสำคัญคือ:
คำตอบ AI ที่ดีขึ้นมักมาจาก context ที่ดีขึ้น ไม่ใช่คำสั่งที่ดังขึ้น
ช่วงที่ 5: outcome-first prompting
เอกสารรุ่นใหม่ของ model ยังเตือนว่าอย่าลาก prompt stack เก่าๆ ที่สั่ง process ละเอียดเกินไปมาใช้กับ model รุ่นใหม่เสมอไป model ที่เก่งขึ้นมักทำงานดีเมื่อเราบอก outcome, constraints, evidence และรูปแบบคำตอบสุดท้ายให้ชัด แล้วเว้นพื้นที่ให้ model เลือกวิธีทำที่เหมาะสมเอง
ไม่ได้แปลว่า prompt กว้างๆ ดี แต่แปลว่า prompt ยุคใหม่ควร ชัดและมี scope ไม่ใช่อัด instruction จนแน่นเกินไป
mindset ของ prompt ยุคใหม่
Prompting ยุคใหม่มี 4 กฎ
- บอกงานให้ชัด
- ให้ context ที่จำเป็น
- กำหนดรูปแบบ output
- ตรวจคำตอบ
เริ่มจาก pattern นี้:
I want you to help me [task].
Context:
- [งานนี้ทำให้ใคร]
- [เกิดอะไรขึ้น]
- [อะไรสำคัญ]
Output:
- [format]
- [length]
- [language]
- [tone]
Before answering, ask me up to 3 questions if anything important is missing.
บรรทัดสุดท้ายสำคัญ เพราะมันเปลี่ยน AI จากเครื่องเดาให้กลายเป็นผู้ช่วยที่ถามกลับได้เมื่อข้อมูลไม่พอ
prompt ที่อ่อน กับ prompt ที่ดีขึ้น
อ่อน:
ช่วยทำให้อันนี้ดีขึ้น
ดีขึ้น:
Rewrite this announcement for Thai office workers.
Goal: make the message clear, polite, and easy to act on.
Tone: professional but warm.
Length: under 120 words.
Keep: the deadline and the contact person.
Avoid: sounding like a legal notice.
Text:
[paste draft]
prompt ที่ดีขึ้นไม่ได้ใช้คำหรู แต่ให้บริบทงานมากพอ
แบบฝึก
ลอง rewrite prompt ที่อ่อนนี้:
ช่วยทำ presentation ให้หน่อย
ใช้โครงนี้:
Task:
Context:
Audience:
Output:
Constraints:
Ask first if:
เป้าหมายไม่ใช่ทำ prompt ให้ยาว เป้าหมายคือเอาการเดาที่สำคัญออก
แหล่งอ้างอิง
- OpenAI Prompting — prompting แบบ iterative, prompt versioning, variables และ evals
- OpenAI Prompt Engineering — message roles, โครง Markdown/XML, few-shot examples และ context
- OpenAI Prompt Guidance — คำแนะนำล่าสุดสำหรับ GPT-5.5 เรื่อง outcome-first prompts, constraints, evidence และ final answer shape
- OpenAI GPT-5.2 Prompting Guide — แนวทางใหม่เรื่อง scope, verbosity, research bar และการ migrate prompt ด้วย eval
- Anthropic Prompt Engineering Overview — เริ่มจาก success criteria และ evaluation ก่อนปรับ prompt
- Anthropic: Effective Context Engineering for AI Agents — context engineering ในฐานะขั้นต่อจาก prompt wording
- Google Gemini Prompt Design Strategies — clear instructions, constraints, examples, decomposition และ iteration
- Microsoft Foundry Prompt Engineering Techniques — clear syntax, task breakdown, affordances และ citation-based grounding
- Wei et al., 2022: Chain-of-Thought Prompting — paper ที่ทำให้การสั่งให้คิดเป็นขั้นตอนเป็นที่รู้จัก
- Wang et al., 2022: Self-Consistency — ให้ model ลองหลายทางแล้วเลือกคำตอบที่สอดคล้องที่สุด
- Yao et al., 2022/2023: ReAct — รวม reasoning กับ action เช่นการใช้เครื่องมือและการค้นหา
- Sahoo et al., 2024: Systematic Survey of Prompt Engineering — taxonomy ภาพรวมของเทคนิค prompting
- Dong et al., 2025: Survey of Context Engineering — framing ใหม่เรื่อง context retrieval, processing และ management
เข้าสู่ระบบเพื่อบันทึกความคืบหน้าSign in to track your progress
เข้าสู่ระบบSign in→