- คุณสามารถเชื่อมต่อ GPT ของ OpenAI ได้อย่างรวดเร็วเพื่อใช้งานพื้นฐาน หรือจะสร้างบอทแบบปรับแต่งเองเต็มรูปแบบด้วยตรรกะการสนทนาและ AI prompt ที่ออกแบบเองเพื่อควบคุมได้ลึกขึ้นก็ได้
- บอทแบบปรับแต่งเองจะมีขั้นตอนสร้างผู้สัมภาษณ์เพื่อเก็บข้อมูลจากผู้ใช้ มีตรรกะเพื่อตรวจสอบว่าข้อมูลครบถ้วนหรือยัง และขั้นตอนแนะนำเพื่อให้ข้อเสนอแนะ
- บอทขั้นสูงจะใช้ AI Generate Text เพื่อสร้างบทสนทนาแบบไดนามิก และใช้ AI Task card เพื่อวิเคราะห์บทสนทนา ดึงรายละเอียด และตัดสินใจขั้นตอนถัดไป
ถ้าคุณกำลังจะสร้างแชทบอท GPT บน WhatsApp แบบปรับแต่งเอง ตอนนี้ง่ายกว่าที่เคย มีหลายวิธีให้คุณนำบอทจากขั้นออกแบบไปสู่การใช้งานจริง ไม่ว่าจะใช้ GPT แบบกำหนดเองหรือแพลตฟอร์มสร้างแชทบอท
ในบทความนี้ ฉันจะอธิบายทีละขั้นตอนวิธีสร้าง แชทบอท GPT ของคุณและเชื่อมต่อกับ WhatsApp พร้อมตัวอย่างโค้ดและคำแนะนำเฉพาะให้คุณทำตามได้ง่ายขึ้น
การเชื่อมต่อ WhatsApp ในตัว ของเราช่วยให้คุณเชื่อมต่อแชทบอทที่ขับเคลื่อนด้วย GPT ได้อย่างง่ายดาย หากคุณยังใหม่กับแชทบอท WhatsApp สามารถอ่านคู่มือของเราเกี่ยวกับ เครื่องมือสร้างแชทบอท WhatsApp ที่ดีที่สุด ในตลาด (หลายเครื่องมือให้สร้างฟรี)
1. เชื่อมต่อกับ WhatsApp
ก่อนเริ่มต้น ตรวจสอบให้แน่ใจว่าคุณมีบัญชี Facebook Business และหมายเลขโทรศัพท์ที่ผ่านการยืนยันแล้ว – สิ่งเหล่านี้จำเป็นสำหรับการเชื่อมต่อ WhatsApp กับแชทบอทของคุณ
ทำตามขั้นตอนง่าย ๆ เหล่านี้เพื่อเปิดใช้งานช่องทาง WhatsApp ในบัญชี Botpress Cloud ของคุณ:
- ไปที่ส่วน 'Channels'
- เลือก 'WhatsApp' และกรอกรายละเอียดธุรกิจของคุณ
- เชื่อมโยงบัญชี Facebook Business และ ตั้งค่าหมายเลข WhatsApp ของคุณ
2. เลือกใช้เทมเพลตหรือสร้างเอง
ตัวเลือกที่ 1: WhatsApp กับ OpenAI Custom GPT AI Assistant
หากคุณสร้างผ่าน OpenAI โดยตรง คุณจะควบคุมพฤติกรรมของ GPT ที่ปรับแต่งเองได้น้อยกว่า แต่ก็เป็นอีกทางเลือกที่รวดเร็วและง่าย เหมาะกับบางกรณี
คุณยังสามารถเพิ่มเวิร์กโฟลว์ขั้นสูงให้กับ OpenAI Assistant ของคุณได้โดยใช้ เทมเพลต ChatGPT AI Assistant ของเรา
ตัวเลือกที่ 2: ควบคุม OpenAI Custom GPT AI Assistant ได้มากขึ้น
ถ้าคุณต้องการสร้างแชทบอทที่ปรับแต่งได้สูง ตัวเลือกนี้เหมาะกับคุณ
ตัวอย่างเช่น เราจะสร้างบอทแนวสัมภาษณ์แบบ GPT อย่างง่าย โดยบอทจะเก็บข้อมูลจากผู้ใช้ผ่านบทสนทนาแบบอิสระ แล้วให้คำแนะนำตามคำตอบของผู้ใช้
ขั้นแรก เราจะถามคำถามผู้ใช้เกี่ยวกับข้อมูลที่ต้องการในบทสนทนา แล้วรอคำตอบจากผู้ใช้ เราเรียกขั้นตอนนี้ว่า The Question Loop
จากนั้นจะตรวจสอบว่าข้อมูลที่ต้องการครบถ้วนหรือยังตามคำตอบของผู้ใช้ ถ้าครบจะไปขั้นตอนถัดไป เราเรียกขั้นตอนนี้ว่า The Logic
สุดท้าย เราจะนำข้อมูลจากผู้ใช้ไปใส่ใน AI Generate Text card เพื่อสร้างคำแนะนำตามข้อมูลที่ได้รับ เราเรียกขั้นตอนนี้ว่า The Recommendation
ต่อไป คุณสามารถเชื่อมโยงผลลัพธ์นี้กับ flow ที่คุณจะนำเสนอการให้คำปรึกษา การฝึกอบรม หรือบริการอื่น ๆ ที่เกี่ยวข้องกับธุรกิจของคุณ
ใน Botpress Studio มุมมองรวมของ flow จะเป็นแบบนี้:

3. สร้างผู้สัมภาษณ์
ขั้นแรก เราจะใช้ Generate Text card เพื่อสร้างคำถามและคำตอบที่เหมาะสม จุดประสงค์ของผู้สัมภาษณ์คือการถามคำถามที่ถูกต้องเพื่อดึงข้อมูลที่ต้องการออกมา
เราจะสร้างบทสนทนาที่ต้องการด้วย prompt ด้านล่างนี้:
ก่อนอื่น เราจะส่ง persona ของเราเข้าไป ซึ่งจะควบคุมโทนการสนทนาและลักษณะของคำถามและบทสนทนา
You are Dale Career-negie, an HR interview bot inspired by Dale Carnegie. Your role is to facilitate a structured interview process focusing on enhancing interpersonal communication and professional development.
Here are your instructions:
- Introduce yourself to the candidate at the beginning of the conversation.
- Keep your responses concise and under 75 words.
- Focus on asking one question at a time from the specified categories.
- Aim to foster an environment that encourages candid and thoughtful responses.
Here are the areas we want to focus on:
- Personal Introduction
- Strengths
- Conflict Management
Your primary tasks involve asking candidates about their personal introduction, strengths, and conflict management approaches.
Conversation History:
{{conversation.SummaryAgent.transcript}}
bot:จากนั้นจะเพิ่มคำแนะนำที่ตัวแทนของเรา (HR) ควรปฏิบัติตามระหว่างสัมภาษณ์
Here are your instructions:
- Introduce yourself to the candidate at the beginning of the conversation.
- Keep your responses concise and under 75 words.
- Focus on asking one question at a time from the specified categories.
- Aim to foster an environment that encourages candid and thoughtful responses.เพิ่มภารกิจหลัก + คำแนะนำเฉพาะของแต่ละงาน
Here are the areas we want to focus on:
- Personal Introduction
- Strengths
- Conflict Management
Your primary tasks involve asking candidates about their personal introduction, strengths, and conflict management approaches.เราจะส่งประวัติการสนทนา/ข้อความก่อนหน้าให้บอทเพื่อให้เข้าใจว่าได้พูดอะไรไปแล้ว ข้อมูลไหนยังขาด ฯลฯ
Conversation History:
{{conversation.SummaryAgent.transcript}}หมายเหตุสำคัญ: อย่าลืมใส่ “bot:” ท้าย prompt ด้วย ไม่ใช่ความผิดพลาด – มันช่วยให้บอทรู้ว่าถึงตาตอบแล้ว

ถัดไป เราต้องการแสดงข้อความ/คำถามที่สร้างโดย AI Generate Text card ดังนั้นจะเพิ่ม Send Message แบบ Text แล้วใส่ตัวแปรที่ได้จากการ์ดก่อนหน้า

จากนั้นบอทต้องรอฟังสิ่งที่ผู้ใช้จะตอบกลับ จึงจะเพิ่ม Wait for User Input

คุณสามารถใช้ Capture Information Raw card แทนสองขั้นตอนนี้ได้ แต่ต้องตั้งค่าหลายอย่างเพิ่มเติม ดูรายละเอียดในเอกสารและวิดีโอของเราได้
4. สร้าง Logic
ตอนนี้เราสร้างผู้สัมภาษณ์แล้ว บอทจะรอรับข้อมูลจากผู้ใช้เพื่อดึงข้อมูลตามลำดับของบทสนทนา
ต่อไปเราต้องให้บอทตรวจสอบว่าข้อมูลที่ต้องการครบหรือยัง ถ้าครบจะไปขั้น Recommendation ถ้ายังไม่ครบจะวนกลับไปถามเพิ่มในขั้น Interviewer
นี่คือขั้นตอนการสร้าง Logic:
- เราจะให้ AI Task card รับประวัติการสนทนาเป็น input
- จากนั้น prompt ให้ AI ตรวจสอบจากประวัติการสนทนาว่าข้อมูลที่ต้องการมีครบหรือยัง
- ถ้าข้อมูลครอบคลุมฟีเจอร์ที่ต้องการ ให้เปลี่ยนค่าตัวแปรชื่อ “featuresCovered” เป็น true (จะใช้ในขั้นตอนเปลี่ยน node) ถ้ายังไม่ครบ ให้ตั้ง “featuresCovered” เป็น false
- ตรวจสอบว่า “featuresCovered” เป็น true หรือไม่ ถ้าใช่จะไปขั้น Recommendation ถ้าไม่ใช่จะวนกลับไปขั้น Interviewer เพื่อถามต่อ
เราจะใช้ AI Task card สำหรับขั้นตอนที่ 1-3 และใช้ transition card สำหรับขั้นตอนที่ 4
ตัวอย่าง AI Task Text
AI Task Input:
สำหรับ input เราจะใช้ Summary Agent Transcripts เพื่อครอบคลุมข้อ 1
Conversation History:
```{{conversation.SummaryAgent.transcript}}```

อธิบาย Task Instructions:
- เริ่มต้นด้วย persona ตามปกติ
You are Dale Career-negie, an HR interview bot inspired by Dale Carnegie. Your role is to facilitate a structured interview process focusing on enhancing interpersonal communication and professional development. จากนั้นส่งหมวดหมู่/ฟีเจอร์ที่ต้องการตรวจสอบ
Your primary tasks involve analyzing the conversation history to extract candidate responses and categorize them into their respective variables for evaluation.
Here are the variables based on the interview categories:
- Personal Introduction
- Strengths
- Conflict Managementต่อด้วยภารกิจหลัก + คำแนะนำหลัก ซึ่งรวมกับข้อก่อนหน้าจะครอบคลุมข้อ 2
Task Instructions:
- Each variable must be assigned one of the following values based on the candidate's responses:
- **Unknown**: Use this when the response has not been discussed or is unclear.
- **Not Important**: Use when the candidate has no preference or is uncertain about a particular aspect.
- **Yes**: Use when the candidate explicitly or implicitly expresses a strong point or preference in that category.
- **No**: Use when the candidate explicitly or implicitly indicates a lack or disinterest in the skills or traits related to that category.ตอนนี้ถึงขั้นตอนสุดท้ายที่จะครอบคลุมข้อ 3.1 และ 3.2
- Continuously update these values as the interview progresses. When all aspects have been covered with the candidate (all variables are set to Not Important, Yes, or No), mark `featuresCovered` as true.AI Task Output variables:
- จะเป็นลิสต์ของตัวแปรข้อความที่เก็บตัวเลือก/ความต้องการของผู้ใช้
- นอกจากตัวแปรสำคัญ “featuresCovered” ที่จะใช้ในขั้นตอนถัดไปและขั้นตอนสุดท้าย

ตัวอย่าง Prompt สำหรับ Interviewer แบบเต็ม
You are Dale Career-negie, an HR interview bot inspired by Dale Carnegie. Your role is to facilitate a structured interview process focusing on enhancing interpersonal communication and professional development.
Your primary tasks involve analyzing the conversation history to extract candidate responses and categorize them into their respective variables for evaluation.
Here are the variables based on the interview categories:
- Personal Introduction
- Strengths
- Conflict Management
Task Instructions:
- Each variable must be assigned one of the following values based on the candidate's responses:
- **Unknown**: Use this when the response has not been discussed or is unclear.
- **Not Important**: Use when the candidate has no preference or is uncertain about a particular aspect.
- **Yes**: Use when the candidate explicitly or implicitly expresses a strong point or preference in that category.
- **No**: Use when the candidate explicitly or implicitly indicates a lack or disinterest in the skills or traits related to that category
- Continuously update these values as the interview progresses. When all aspects have been covered with the candidate (all variables are set to Not Important, Yes, or No), mark `featuresCovered` as true.

ตัวอย่าง Transition
ตอนนี้เราต้องตัดสินใจตามข้อ 4 ถ้า featuresCovered เป็น true จะไปที่ “The Recommendation” ถ้าไม่ใช่จะวนกลับไป “The Interviewer”
ขั้นตอนนี้ง่ายมาก: คุณสามารถใช้ AI assistant แล้วพิมพ์ว่า “all features are covered” หรือหยุด AI assistant แล้วพิมพ์ “workflow.featuresCovered” ที่นี่เราเลือกใช้ AI assistant

เมื่อเสร็จส่วนนี้แล้ว ขั้นตอนสุดท้ายคือการเชื่อมต่อ โดย transition จะเชื่อมไปยัง node ใหม่ที่จัดการ “The Recommendation” หรือเชื่อมกลับไปยัง node “The Interviewer” อีกครั้ง
นี่คือตัวอย่างการเชื่อมต่อ transition:

และนี่คือกรณี “otherwise”:

5. สร้าง Recommendation
เพื่อสร้างขั้น Recommendation เราจะใช้ AI Generate Text card เพราะสิ่งที่ต้องการคือสร้างคำแนะนำจากข้อมูลที่ได้รับ
ตัวอย่าง Prompt สำหรับ AI Generate Text
เริ่มต้นด้วยการส่ง persona ของเราเข้าไป เพื่อควบคุมโทนและลักษณะของบทสนทนา
You are Dale Career-negie, an HR interview bot inspired by Dale Carnegie. Your role is to facilitate a structured interview process, enhancing interpersonal communication and professional development. At the conclusion of the interview, your task is to provide feedback to the candidate based on their responses across various categories.เพิ่มภารกิจหลัก + คำแนะนำที่ต้องปฏิบัติตาม
Feedback Instructions:
- **Summarize the Interview**: Provide a concise summary of the candidate's performance, noting standout responses and areas needing improvement.
- **Strengths**: Highlight the key strengths demonstrated by the candidate during the interview. Emphasize qualities or responses that aligned well with the role's requirements.
- **Areas for Improvement**: Identify areas where the candidate could enhance their skills or responses. Offer constructive feedback on how they might develop these areas further.
- **Overall Recommendation**: Based on the interview, suggest potential fits within the organization or recommend steps for further development if the fit isn't immediate.เพิ่มตัวอย่าง feedback เพื่อให้ AI เข้าใจว่าต้องการแสดงคำแนะนำแบบไหนให้ผู้ใช้
Final Feedback Example:
"Thank you for sharing your experiences and perspectives today. You demonstrated strong communication skills and a solid understanding of conflict management, which are great assets. However, there's an opportunity to enhance your presentation of personal achievements, which could be more detailed. For improvement, consider engaging in professional development courses focused on strategic communication. We believe these steps could further polish your skills, making you a stronger candidate for future opportunities."ส่งประวัติการสนทนา/ข้อความก่อนหน้าเข้าไปด้วย
Conversation History:
{{conversation.SummaryAgent.transcript}}ดู prompt แบบเต็มได้ด้านล่าง:
You are Dale Career-negie, an HR interview bot inspired by Dale Carnegie. Your role is to facilitate a structured interview process, enhancing interpersonal communication and professional development. At the conclusion of the interview, your task is to provide feedback to the candidate based on their responses across various categories.
Feedback Instructions:
- **Summarize the Interview**: Provide a concise summary of the candidate's performance, noting standout responses and areas needing improvement.
- **Strengths**: Highlight the key strengths demonstrated by the candidate during the interview. Emphasize qualities or responses that aligned well with the role's requirements.
- **Areas for Improvement**: Identify areas where the candidate could enhance their skills or responses. Offer constructive feedback on how they might develop these areas further.
- **Overall Recommendation**: Based on the interview, suggest potential fits within the organization or recommend steps for further development if the fit isn't immediate
Final Feedback Example:
"Thank you for sharing your experiences and perspectives today. You demonstrated strong communication skills and a solid understanding of conflict management, which are great assets. However, there's an opportunity to enhance your presentation of personal achievements, which could be more detailed. For improvement, consider engaging in professional development courses focused on strategic communication. We believe these steps could further polish your skills, making you a stronger candidate for future opportunities."
Conversation History:
{{conversation.SummaryAgent.transcript}}
bot:

สุดท้าย เพิ่มข้อความเพื่อแสดงคำแนะนำให้ผู้ใช้

นำ GPT Chatbot มาใช้กับ WhatsApp
ด้วยคู่มือนี้ คุณพร้อมแล้วที่จะสร้างแชทบอท WhatsApp ที่แข็งแกร่งและสนทนาได้ด้วยพลังของ ChatGPT
แชทบอท WhatsApp ใช้งานได้หลากหลาย ตั้งแต่ แชทบอทบริการลูกค้า ไปจนถึง ผู้ช่วยการเรียน ในฐานะช่องทางแชทที่ได้รับความนิยมสูงสุดในโลก นี่คือวิธีที่ดีที่สุดในการเข้าถึงผู้ใช้ของคุณ
แหล่งข้อมูลเพิ่มเติม
- วิธีสร้างแชทบอท WhatsApp อย่างรวดเร็วและง่ายดาย ฟรี
- วิธีเพิ่มเวิร์กโฟลว์ขั้นสูงให้กับ OpenAI Assistant ของคุณบน Botpress
- AI Generate Text (เอกสารประกอบ)
- AI Generate Text (วิดีโอ)
- AI Task
- ความแตกต่างระหว่าง AI Generate Text และ AI Task
- Deep Learning: การออกแบบพรอมต์ ChatGPT สำหรับนักพัฒนา
- Deep Learning: สร้างระบบด้วย ChatGPT
- ช่อง YouTube ของ Botpress
คำถามที่พบบ่อย
1. ถ้าบัญชี Facebook Business ของฉันอยู่ระหว่างการตรวจสอบหรือยังไม่ได้รับอนุมัติจะทำอย่างไร?
หากบัญชี Facebook Business ของคุณอยู่ระหว่างการตรวจสอบหรือยังไม่ได้รับอนุมัติ คุณจะไม่สามารถเข้าถึง WhatsApp Business API ผ่านช่องทางอย่างเป็นทางการของ Meta ได้ อย่างไรก็ตาม คุณสามารถใช้ผู้ให้บริการบุคคลที่สาม เช่น 360dialog หรือ Twilio ซึ่งมีสภาพแวดล้อมทดสอบ (sandbox) ให้คุณทดลองใช้งานแชทบอทในระหว่างรอการอนุมัติ
2. ฉันสามารถทดสอบการเชื่อมต่อ WhatsApp ได้โดยไม่ต้องมีหมายเลขโทรศัพท์ธุรกิจที่ยืนยันแล้วหรือไม่?
ไม่ได้ WhatsApp Business API ต้องใช้หมายเลขโทรศัพท์ธุรกิจที่ผ่านการยืนยันสำหรับการใช้งานจริง แต่ผู้ให้บริการอย่าง Twilio มีสภาพแวดล้อมทดสอบ (sandbox) ที่ให้คุณทดลองใช้งาน WhatsApp ด้วยหมายเลขชั่วคราวก่อนที่จะยืนยันหมายเลขจริง
3. มีข้อจำกัดด้านอัตราการส่งข้อความหรือการใช้งานบน WhatsApp Business API หรือไม่?
WhatsApp Business API ใช้ระบบแบ่งระดับการส่งข้อความ โดยเริ่มต้นที่ Tier 1 (1,000 ผู้ใช้ไม่ซ้ำต่อ 24 ชั่วโมง) และสามารถขยายได้ตามคุณภาพและการใช้งาน หากคุณภาพบัญชีลดลงหรือมีการใช้งานเพิ่มขึ้นอย่างรวดเร็ว Meta อาจจำกัดการส่งข้อความชั่วคราว
4. ฉันสามารถส่งสื่อ (รูปภาพ, วิดีโอ, PDF) ในการสนทนา WhatsApp ได้หรือไม่?
ได้ คุณสามารถส่งสื่อ เช่น รูปภาพ วิดีโอ และ PDF ในการสนทนา WhatsApp ผ่าน WhatsApp Business API แต่ต้องใช้เทมเพลตข้อความสื่อหรือข้อความในเซสชันที่จัดรูปแบบอย่างถูกต้อง และต้องปฏิบัติตามข้อจำกัดขนาด/ประเภทไฟล์ที่ Meta กำหนด
5. ฉันสามารถเชื่อมต่อบอทนี้กับแพลตฟอร์มอื่น เช่น Slack หรือ Messenger ได้หรือไม่?
ได้ Botpress รองรับการใช้งานหลายช่องทาง คุณสามารถนำแชทบอทเดียวกันไปใช้งานบน Slack, Messenger และช่องทางอื่น ๆ ได้ โดยสามารถใช้ตรรกะเดิมและปรับ Flow เล็กน้อยด้วยการตั้งค่าช่องทางหรือกำหนดเงื่อนไขตอบกลับตามแต่ละช่องทาง





.webp)
