✍️ Prompt Engineering — วิศวกรรม Prompt

Learn How to Write Effective Prompts for AI — เรียนรู้วิธีเขียน Prompt ที่มีประสิทธิภาพสำหรับ AI

Week 2 · Polite Requests (Could you / Would you / Can you) · Prompt Engineering

🎯 Prompt Engineering คืออะไร?
What is Prompt Engineering?

🇹🇭 ภาษาไทย

Prompt Engineering (วิศวกรรม Prompt) คือศิลปะและทักษะในการเขียนคำสั่ง (prompt) ที่ดีเพื่อให้ AI ให้คำตอบที่ตรงกับสิ่งที่คุณต้องการ


Prompt ที่ดีจะทำให้ AI เข้าใจคุณได้ดีขึ้น ตอบได้ตรงประเด็นมากขึ้น และให้ผลลัพธ์ที่มีคุณภาพสูงขึ้น


เปรียบเทียบได้กับการถามคำถามที่ดี — ยิ่งถามชัดเจน ยิ่งได้คำตอบที่ดี! การใช้ ภาษาสุภาพ เช่น "Could you..." หรือ "Would you..." ก็เป็นส่วนสำคัญของการเขียน prompt ที่ดี

🇬🇧 English

Prompt Engineering is the art and skill of writing good instructions (prompts) so that AI gives you the answer you actually want.


A good prompt helps AI understand you better, respond more accurately, and produce higher quality results.


Think of it like asking a good question — the clearer you ask, the better the answer! Using polite language like "Could you..." or "Would you..." is also an important part of writing good prompts.

🌟 Fun Facts — ข้อเท็จจริงน่าสนใจ

  • "Prompt Engineer" is one of the highest-paying new jobs in tech — some earn over $300,000/year! — "Prompt Engineer" เป็นหนึ่งในอาชีพใหม่ที่เงินเดือนสูงที่สุดในวงการเทค!
  • A well-written prompt can improve AI output quality by over 50% — prompt ที่เขียนดีช่วยเพิ่มคุณภาพคำตอบของ AI ได้กว่า 50%
  • The difference between a vague and specific prompt is like asking "Tell me something" vs. "Could you explain photosynthesis in 3 sentences for a 10-year-old?" — ความแตกต่างระหว่าง prompt ที่คลุมเครือกับเจาะจงเหมือนการถามว่า "บอกอะไรมา" กับ "ช่วยอธิบายการสังเคราะห์แสงใน 3 ประโยคสำหรับเด็ก 10 ขวบได้ไหม?"
  • Companies like Google, Microsoft, and OpenAI all hire prompt engineers — บริษัทใหญ่อย่าง Google, Microsoft และ OpenAI ล้วนจ้าง prompt engineer

🇹🇭 ทำไมต้องเรียน Prompt Engineering?

  • ช่วยให้คุณใช้ AI ได้อย่างมีประสิทธิภาพมากขึ้น
  • ฝึกทักษะการสื่อสารภาษาอังกฤษอย่างชัดเจน
  • เรียนรู้การใช้ภาษาสุภาพ (Could you / Would you / Can you)
  • เป็นทักษะสำคัญสำหรับการทำงานในอนาคต

🇬🇧 Why Learn Prompt Engineering?

  • It helps you use AI more effectively
  • It trains you to communicate clearly in English
  • You learn polite language (Could you / Would you / Can you)
  • It is an essential skill for future careers

🧪 Section Check — ตรวจสอบความเข้าใจ

Test your understanding of prompt engineering basics — ทดสอบความเข้าใจพื้นฐาน Prompt Engineering

0/3

Prompt Engineering is the skill of writing good ___ so that AI gives you the answer you want.

Prompt Engineering คือทักษะในการเขียน ___ ที่ดีเพื่อให้ AI ตอบตรงกับที่คุณต้องการ

passwords
instructions (prompts)
programs
emails
✅ Prompt Engineering is about writing good instructions (prompts) for AI. The clearer your prompt, the better the answer! — Prompt Engineering คือการเขียนคำสั่ง (prompt) ที่ดีให้ AI ยิ่งชัดเจน ยิ่งได้คำตอบที่ดี!

"Could you explain what AI is?" — Which part of this sentence is the polite request?

"Could you explain what AI is?" — ส่วนไหนของประโยคนี้คือการขอร้องอย่างสุภาพ?

Could you
what AI is
explain
"Could you" is the polite request phrase. It makes the sentence sound respectful and courteous. — "Could you" คือวลีขอร้องอย่างสุภาพ ทำให้ประโยคฟังดูสุภาพและให้เกียรติ

A well-written prompt can improve AI output quality by over ___.

Prompt ที่เขียนดีสามารถเพิ่มคุณภาพผลลัพธ์ของ AI ได้มากกว่า ___

10%
50%
5%
✅ A well-written prompt can improve AI output by over 50%! That is why learning prompt engineering is so valuable. — Prompt ที่เขียนดีช่วยเพิ่มคุณภาพผลลัพธ์ได้กว่า 50% นี่คือเหตุผลว่าทำไม Prompt Engineering ถึงสำคัญ!

📚 คำศัพท์สำคัญ
Key Vocabulary

✍️ Prompt
คำสั่ง / ข้อความที่ป้อนให้ AI
The text or instruction you give to AI to get a response.
ข้อความหรือคำสั่งที่คุณให้ AI เพื่อรับคำตอบ
📋 Instruction
คำสั่ง / คำแนะนำ
A clear direction telling AI exactly what to do.
คำสั่งที่ชัดเจนบอก AI ว่าต้องทำอะไร
📖 Context
บริบท
Background information that helps AI understand what you need.
ข้อมูลพื้นฐานที่ช่วยให้ AI เข้าใจสิ่งที่คุณต้องการ
🎭 Role
บทบาท
A character or persona you assign to AI, such as "teacher" or "translator."
ตัวละครหรือบุคลิกที่คุณกำหนดให้ AI เช่น "ครู" หรือ "นักแปล"
🌡️ Temperature
อุณหภูมิ (ระดับความสร้างสรรค์)
A setting that controls how creative or random AI's answers are. Low = focused, High = creative.
การตั้งค่าที่ควบคุมว่า AI จะตอบสร้างสรรค์หรือตรงประเด็นแค่ไหน
📤 Output
ผลลัพธ์ / ข้อมูลที่ออกมา
The response or result that AI produces after receiving your prompt.
คำตอบหรือผลลัพธ์ที่ AI สร้างขึ้นหลังจากได้รับ prompt ของคุณ
🎯 Specific
เจาะจง / ชัดเจน
Clear and detailed. Specific prompts get better answers from AI.
ชัดเจนและละเอียด prompt ที่เจาะจงจะได้คำตอบที่ดีกว่า
🌫️ Vague
คลุมเครือ / ไม่ชัดเจน
Unclear or too general. Vague prompts often give poor results.
ไม่ชัดเจนหรือกว้างเกินไป prompt ที่คลุมเครือมักให้ผลลัพธ์ไม่ดี
🔧 Refine
ปรับปรุง / ทำให้ดีขึ้น
To improve or make something better. You refine prompts to get better answers.
ปรับปรุงให้ดีขึ้น คุณปรับปรุง prompt เพื่อให้ได้คำตอบที่ดีขึ้น
🔄 Iterate
ทำซ้ำ / ปรับซ้ำแล้วซ้ำเล่า
To repeat a process, making improvements each time. Good prompt engineering requires iteration.
ทำซ้ำโดยปรับปรุงทุกครั้ง การเขียน prompt ที่ดีต้องอาศัยการทำซ้ำ
🚧 Constraint
ข้อจำกัด / เงื่อนไข
A limit or rule you set in your prompt, like "answer in 3 sentences" or "use simple English."
ขอบเขตหรือกฎที่คุณกำหนดใน prompt เช่น "ตอบใน 3 ประโยค" หรือ "ใช้ภาษาอังกฤษง่ายๆ"
📐 Format
รูปแบบ
The structure or layout you want for AI's answer — such as a list, table, or paragraph.
โครงสร้างหรือรูปแบบที่คุณต้องการสำหรับคำตอบของ AI เช่น รายการ ตาราง หรือย่อหน้า

🧪 Section Check — ตรวจสอบความเข้าใจ

Match the vocabulary to its meaning — จับคู่คำศัพท์กับความหมาย

0/3

To ___ means to repeat a process, making improvements each time. "Could you ___ on my prompt to make it better?"

คำว่า ___ หมายถึงการทำซ้ำโดยปรับปรุงทุกครั้ง "คุณช่วย ___ prompt ของฉันให้ดีขึ้นได้ไหม?"

refine
format
iterate
output
Iterate means to repeat a process, improving each time. "Refine" means to improve, but "iterate" specifically means repeating the cycle. — "Iterate" หมายถึงการทำซ้ำโดยปรับปรุงทุกครั้ง ต่างจาก "refine" ที่หมายถึงปรับปรุงครั้งเดียว

A ___ is a limit or rule you set in your prompt, such as "answer in 3 sentences."

___ คือขอบเขตหรือกฎที่คุณกำหนดใน prompt เช่น "ตอบใน 3 ประโยค"

context
temperature
constraint
role
✅ A constraint is a limit or rule in your prompt. For example: "answer in 3 sentences" or "use simple English." — "Constraint" คือข้อจำกัดหรือเงื่อนไขใน prompt เช่น "ตอบใน 3 ประโยค" หรือ "ใช้ภาษาอังกฤษง่ายๆ"

Which sentence uses "Could you" correctly? "Could you ___ the key vocabulary for me?"

ประโยคไหนใช้ "Could you" ถูกต้อง? "Could you ___ คำศัพท์สำคัญให้ฉันได้ไหม?"

Could you explains
Could you explain
Could you to explain
✅ After "Could you," always use the base verb (V1) — no -s, no "to." So it is "Could you explain." — หลัง "Could you" ต้องใช้ base verb เสมอ ไม่เติม -s ไม่ใส่ "to"

📖 ไวยากรณ์ในบริบท AI
Grammar in Context: Polite Requests

🔤 Polite Requests: Could you / Would you / Can you + base verb

Polite Requests (การขอร้องอย่างสุภาพ) ใช้เมื่อคุณต้องการขอให้ใครทำอะไรอย่างสุภาพ ซึ่งเป็นสิ่งสำคัญมากเมื่อเขียน prompt ให้ AI

รูปแบบ: Could you / Would you / Can you + base verb (V1)

ระดับความสุภาพ:

  • Could you...? — สุภาพมาก (most polite) เหมาะกับทุกสถานการณ์
  • Would you...? — สุภาพ (polite) แสดงความเต็มใจ
  • Can you...? — สุภาพปกติ (casual polite) ใช้ในชีวิตประจำวัน

Could you explain AI in simple English?

คุณช่วยอธิบาย AI เป็นภาษาอังกฤษง่ายๆ ได้ไหม? (สุภาพมาก)

Would you translate this to Thai?

คุณช่วยแปลสิ่งนี้เป็นภาษาไทยได้ไหม? (สุภาพ)

Can you give me 3 examples?

คุณช่วยยกตัวอย่าง 3 ข้อได้ไหม? (สุภาพปกติ)

Could you summarize this in 5 bullet points?

คุณช่วยสรุปเป็น 5 ข้อได้ไหม?

❌ Could you explains AI?✅ Could you explain AI?

หลัง Could you / Would you / Can you ต้องใช้ base verb (V1) เสมอ ไม่เติม -s, -ed, -ing

❌ Can you to help me?✅ Can you help me?

ไม่ต้องใส่ "to" หลัง Can you / Could you / Would you

💡 Grammar Tip — เคล็ดลับไวยากรณ์

Thai: ในภาษาไทยเราใช้ "ได้ไหม" หรือ "ช่วย...หน่อย" เพื่อขอร้อง ในภาษาอังกฤษ "Could you" สุภาพที่สุด ตามด้วย "Would you" และ "Can you" — ทั้งหมดตามด้วย base verb (V1) เสมอ

English: "Could you" is the most polite, followed by "Would you" and "Can you." All three are followed by the base verb (V1) — never add -s, -ed, -ing, or "to" after them.

🇹🇭 ตัวอย่าง Polite Requests สำหรับ AI Prompts

  • Could you write a summary? — ช่วยเขียนบทสรุปได้ไหม?
  • Would you check my grammar? — ช่วยตรวจไวยากรณ์ได้ไหม?
  • Can you list 5 examples? — ช่วยยกตัวอย่าง 5 ข้อได้ไหม?
  • Could you explain this in Thai? — ช่วยอธิบายเป็นภาษาไทยได้ไหม?
  • Would you make it simpler? — ช่วยทำให้ง่ายขึ้นได้ไหม?

🇬🇧 Polite Request Examples for AI Prompts

  • Could you write a summary of this article?
  • Would you check my grammar and fix mistakes?
  • Can you list 5 examples of AI in daily life?
  • Could you explain this concept in simple English?
  • Would you rewrite this paragraph to make it simpler?

🧪 Section Check — ตรวจสอบความเข้าใจ

Fill in the blank with the correct polite request — เติมคำขอร้องสุภาพที่ถูกต้อง

0/3

"___ translate this paragraph to Thai for me?" — Choose the most polite option.

"___ แปลย่อหน้านี้เป็นภาษาไทยให้ฉันได้ไหม?" — เลือกตัวเลือกที่สุภาพที่สุด

Could you
Can you
You should
"Could you" is the most polite form. "Can you" is also polite but more casual. "You should" is not a request at all. — "Could you" สุภาพที่สุด "Can you" ก็สุภาพแต่เป็นกันเองกว่า "You should" ไม่ใช่การขอร้อง

Which sentence is grammatically CORRECT?

ประโยคไหนถูกต้องตามหลักไวยากรณ์?

Would you explains this to me?
Can you to summarize the article?
Could you summarize this article in 3 sentences?
"Could you summarize this article in 3 sentences?" is correct. After Could you / Would you / Can you, use the base verb — no -s, no "to." — หลัง Could you / Would you / Can you ใช้ base verb เท่านั้น ห้ามเติม -s หรือ "to"

"___ check my grammar and fix any mistakes?" — Fill in the blank with a polite request.

"___ ตรวจไวยากรณ์และแก้ไขข้อผิดพลาดให้ฉันได้ไหม?"

Check
Would you
You must
"Would you" makes this a polite request. "Check" alone is a command (too direct), and "You must" is an obligation, not a request. — "Would you" ทำให้เป็นการขอร้องสุภาพ "Check" เฉยๆ เป็นคำสั่ง "You must" เป็นการบังคับ ไม่ใช่การขอร้อง

🚀 เริ่มต้นเขียน Prompt ที่ดี
Getting Started: Writing Good Prompts

🇹🇭 หลัก 5 ข้อของ Prompt ที่ดี

  • ชัดเจน — บอก AI ว่าต้องการอะไรอย่างตรงไปตรงมา
  • เจาะจง — ระบุรายละเอียดมากที่สุด
  • กำหนดบริบท — บอก AI ว่าคุณเป็นใคร
  • กำหนดรูปแบบ — บอกว่าต้องการคำตอบแบบไหน
  • ใช้ภาษาสุภาพ — ใช้ Could you / Would you / Can you

🇬🇧 5 Rules for Good Prompts

  • Be clear — tell AI exactly what you want
  • Be specific — include as much detail as possible
  • Give context — tell AI who you are
  • Set the format — say what kind of answer you want
  • Be polite — use Could you / Would you / Can you

1ชัดเจน — Be Clear

อย่าเขียน prompt ที่กว้างเกินไป เจาะจงว่าคุณต้องการอะไร
English: Don't write prompts that are too broad. Be specific about what you want.
// ❌ Vague prompt — prompt ที่คลุมเครือ "Tell me about AI." // ✅ Clear prompt — prompt ที่ชัดเจน "Could you explain what AI chatbots are in 3 simple sentences for a Thai student?"

2เจาะจง — Be Specific

ยิ่งให้รายละเอียดมาก AI ยิ่งตอบได้ตรงใจ ระบุจำนวน ขนาด รูปแบบ และกลุ่มเป้าหมาย
English: The more details you give, the better AI responds. Include numbers, length, format, and audience.
// ❌ Too general — กว้างเกินไป "Write about prompts." // ✅ Specific — เจาะจง "Would you write 5 tips for writing better AI prompts? Each tip should be 1-2 sentences, in simple English, for beginners."

3กำหนดบริบท — Give Context

บอก AI ว่าคุณเป็นใคร และคุณต้องการคำตอบเพื่ออะไร
English: Tell AI who you are and why you need the answer.
// ✅ With context — มีบริบท "I am a Thai university student learning English at A2 level. Could you explain prompt engineering using simple words? Please include Thai translations for difficult words."

4กำหนดรูปแบบ — Set the Format

บอก AI ว่าต้องการคำตอบในรูปแบบไหน: รายการ ตาราง ย่อหน้า หรือ bullet points
English: Tell AI what format you want: list, table, paragraph, or bullet points.
// ✅ With format — มีรูปแบบ "Can you give me a comparison table of ChatGPT, Claude, and Gemini? Include columns for: Name, Strengths, Free Version, and Best For."

5ใช้ภาษาสุภาพ — Be Polite

ใช้ "Could you", "Would you", "Can you" ในการเขียน prompt เพื่อฝึกภาษาอังกฤษสุภาพ
English: Use "Could you", "Would you", "Can you" in your prompts to practice polite English.
// ❌ Too direct — ตรงเกินไป "Explain AI." // ✅ Polite — สุภาพ "Could you please explain how AI works? I am a beginner and would like a simple explanation with examples."

💡 Pro Tip — เคล็ดลับมือโปร

Thai: ลองใช้สูตรนี้สำหรับทุก prompt: บริบท + คำขอสุภาพ + รายละเอียด + รูปแบบ

English: Try this formula for every prompt: Context + Polite Request + Details + Format

Example: "I am a Thai student. Could you explain prompt engineering? Please use simple English and give 3 examples."

🧪 Section Check — ตรวจสอบความเข้าใจ

Test your knowledge of good prompt writing — ทดสอบความรู้เรื่องการเขียน Prompt ที่ดี

0/3

Which is a BETTER prompt? Option A: "Tell me about AI." — Option B: "Could you explain what AI chatbots are in 3 simple sentences for a Thai student?"

Prompt ไหนดีกว่า? A: "Tell me about AI." — B: "Could you explain what AI chatbots are in 3 simple sentences for a Thai student?"

Option A — it is shorter and faster
Option B — it is clear, specific, and polite
✅ Option B is better because it is clear, specific, and polite. It uses "Could you," specifies the topic (chatbots), sets a constraint (3 sentences), and gives context (Thai student). — Option B ดีกว่าเพราะชัดเจน เจาะจง และสุภาพ ใช้ "Could you" ระบุหัวข้อ กำหนดเงื่อนไข และให้บริบท

The formula for a good prompt is: Context + ___ + Details + Format.

สูตรของ prompt ที่ดีคือ: บริบท + ___ + รายละเอียด + รูปแบบ

Long sentence
Polite request
Password
✅ The formula is: Context + Polite Request + Details + Format. For example: "I am a student. Could you explain AI? Use simple English in a list." — สูตรคือ: บริบท + คำขอสุภาพ + รายละเอียด + รูปแบบ

"I am a Thai student. ___ give me a comparison table of ChatGPT and Claude?" — Complete the polite prompt.

"ฉันเป็นนักเรียนไทย ___ ให้ตารางเปรียบเทียบ ChatGPT กับ Claude ได้ไหม?"

Give me
I want
Can you
"Can you" completes the polite request correctly. "Give me" is too direct, and "I want" is a statement, not a polite request. — "Can you" ทำให้เป็นคำขอสุภาพ "Give me" ตรงเกินไป "I want" เป็นคำบอกเล่า ไม่ใช่การขอร้อง

🛠️ โปรเจกต์ลงมือทำ
Hands-On Project: Create 5 Polite Prompts

✍️

Write 5 Different Prompts Using Polite Requests — เขียน 5 Prompt โดยใช้การขอร้องสุภาพ 🌱 Easy to Medium

เป้าหมาย: เขียน prompt 5 แบบโดยใช้ Could you / Would you / Can you คนละแบบ

แต่ละ prompt ต้องมี: บริบท + คำขอสุภาพ + รายละเอียด + รูปแบบ

Goal: Write 5 different prompts using Could you / Would you / Can you.

Each prompt must include: context + polite request + details + format.

// Example prompts using polite requests // ตัวอย่าง prompt ที่ใช้การขอร้องสุภาพ 1. "I am learning about AI. Could you explain what a prompt is in 2 simple sentences?" (Could you + explain — ขอคำอธิบาย) 2. "I need help with English vocabulary. Would you give me 10 AI-related words with Thai translations?" (Would you + give — ขอคำศัพท์) 3. "I am preparing for a test. Can you create a 5-question quiz about prompt engineering?" (Can you + create — ขอแบบทดสอบ) 4. "I wrote a bad prompt. Could you help me improve it? My prompt was: 'Tell me about technology.'" (Could you + help — ขอความช่วยเหลือ) 5. "I want to learn polite English. Would you show me 5 ways to make requests using Could you, Would you, and Can you?" (Would you + show — ขอตัวอย่าง)

⚠️ Remember / จำไว้นะ

Thai: หลัง Could you / Would you / Can you ต้องใช้ base verb (V1) เท่านั้น ไม่เติม -s, -ed, -ing หรือ to

English: After Could you / Would you / Can you, always use the base verb (V1) — never add -s, -ed, -ing, or "to."

📊 ตาราง Prompt Template
Prompt Template Reference

Prompt Type
ประเภท Prompt
Polite Request
คำขอสุภาพ
Example
ตัวอย่าง
Explanation
อธิบาย
Could you explain...? "Could you explain prompt engineering in simple English?"
Translation
แปลภาษา
Would you translate...? "Would you translate this paragraph to Thai?"
List / Examples
รายการ / ตัวอย่าง
Can you give me...? "Can you give me 5 examples of good prompts?"
Summary
สรุป
Could you summarize...? "Could you summarize this article in 3 bullet points?"
Grammar Check
ตรวจไวยากรณ์
Would you check...? "Would you check my grammar in these sentences?"
Comparison
เปรียบเทียบ
Can you compare...? "Can you compare ChatGPT and Claude in a table?"
Improvement
ปรับปรุง
Could you help me improve...? "Could you help me improve this prompt?"
Role-Playing
สวมบทบาท
Would you act as...? "Would you act as my English teacher and correct my writing?"

🎯 สรุป
Summary

🇹🇭 สิ่งที่คุณได้เรียนรู้

  • Prompt Engineering คืออะไรและทำไมถึงสำคัญ
  • คำศัพท์สำคัญ: prompt, instruction, context, role, temperature, output
  • Polite Requests: Could you / Would you / Can you + base verb (V1)
  • หลัก 5 ข้อของ prompt ที่ดี: ชัดเจน เจาะจง มีบริบท กำหนดรูปแบบ สุภาพ
  • วิธีเขียน prompt template สำหรับงานต่างๆ

🇬🇧 What You Have Learned

  • What prompt engineering is and why it matters
  • Key vocabulary: prompt, instruction, context, role, temperature, output
  • Polite Requests: Could you / Would you / Can you + base verb (V1)
  • 5 rules for good prompts: clear, specific, context, format, polite
  • How to use prompt templates for different tasks

🎉 ยินดีด้วย! / Congratulations!

คุณได้เรียนรู้พื้นฐาน Prompt Engineering แล้ว!

You have learned the basics of Prompt Engineering! Now you can write clear, specific, and polite prompts to get the best answers from AI! ✍️