Prompt Engineering ใน n8n คืออะไร?
เมื่อใช้ ChatGPT ใน n8n workflow คุณภาพ output ขึ้นอยู่กับ prompt ที่ดี เป็นหลัก
หลักการ Prompt ที่ดีใน Workflow
1. System Prompt ชัดเจน
You are a customer service agent for [Company].
Reply in Thai. Be concise. Max 3 sentences.
2. ใช้ Dynamic Variables
Customer said: {{ .message }}
Order ID: {{ .orderId }}
Reply with order status update.
3. Few-Shot Examples
Example input: "สั่งไปแล้ว 3 วันยังไม่ได้รับ"
Example output: "ขอโทษที่ทำให้รอนานครับ ตรวจสอบ tracking ได้ที่..."
Common Mistakes
❌ Prompt คลุมเครือ → AI ตอบไม่ตรง
❌ ไม่กำหนด format output → parse ยาก
❌ ไม่บอก tone → บางครั้ง formal เกินไปหรือ casual เกินไป
Template Prompt สำหรับ n8n
Role: [กำหนด role]
Task: [สิ่งที่ต้องทำ]
Input: {{ .input }}
Output format: [JSON / bullet list / paragraph]
Language: Thai
สรุป
Prompt Engineering ที่ดีใน n8n ทำให้ automation แม่นยำ ลด error และไม่ต้องแก้ output ทีหลัง
พร้อมนำ AI ไปใช้ในธุรกิจคุณหรือยัง?
เวิร์กช็อป 1:1 ที่ออกแบบตามบริบทธุรกิจของคุณ เพื่อให้เริ่มใช้ AI ได้อย่างเป็นระบบและวัดผลได้จริง
จองรอบเรียน