หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
แพลตฟอร์ม Copilot Studio และ Dynamics 365 for Customer Service แตกต่างกันเล็กน้อยในวิธีที่สนับสนุนข้อความสื่อสมบูรณ์ตามช่องทางและชนิดข้อความสื่อสมบูรณ์ บทความนี้อธิบายวิธีที่คุณสามารถสนับสนุนข้อความ Rich Media ใน Copilot Studio
ดึงข้อมูล JSON ของตัวแทนสําหรับ Apple Messages for Business
- ในแผนผังเว็บไซต์ของศูนย์การจัดการบริการ Copilot เลือกประสิทธิภาพในประสบการณ์การสนับสนุน
- บนหน้า ประสิทธิภาพการทํางาน ให้เลือก จัดการสําหรับข้อความที่หลากหลาย
- จากรายการข้อความในรายการที่มีทั้งหมด ให้เลือกข้อความแบบสื่อสมบูรณ์ที่คุณต้องการส่งไปยังการสนทนา
- สําหรับข้อความแบบผสมของ Apple Messages for Business ให้ใช้ Microsoft.Omnichannel.sendMessageToConversation API เพื่อส่งไฟล์ JSON
ดึง JSON ของตัวแทนสําหรับแบบฟอร์มแชทสด JSON ที่กําหนดเองของแชทสด และการตอบกลับที่แนะนําของ WhatsApp
ในแผนผังเว็บไซต์ของศูนย์การจัดการบริการ Copilot เลือกประสิทธิภาพในประสบการณ์การสนับสนุน
บนหน้า ประสิทธิภาพการทํางาน ให้เลือก จัดการสําหรับข้อความที่หลากหลาย
ค้นหาข้อความสื่อสมบูรณ์ที่คุณต้องการให้ตัวแทนส่ง และหากมี JSON พร้อมใช้งาน ข้อความนั้นจะปรากฏภายใต้คอลัมน์ JSON สําหรับ Copilot Studio เลือก ดู JSON และประเภทช่องทางเฉพาะเพื่อคัดลอก JSON
สําหรับเทมเพลต Live Chat และ WhatsApp Rich Media คุณสามารถวาง JSON ลงในโหนดการ์ดที่ปรับเปลี่ยนได้โดยตรงใน Copilot Studio
ตัวอย่าง JSON สําหรับข้อความแบบผสมสําหรับ Apple Messages for Business
ส่วนนี้ประกอบด้วยตัวอย่าง JSON สําหรับชนิดข้อความที่หลากหลายที่พร้อมใช้งานในช่องทาง Apple Messages for Business ในช่องทางช่องทาง Omni สําหรับ Customer Service ข้อมูลเพิ่มเติม: จัดการข้อความที่สมบูรณ์
Note
คุณไม่สามารถส่งข้อความแบบผสมชนิดฟอร์มไปยังการสนทนาได้
แอปเปิ้ลเพย์
let applePayJSON = // <copy_and_paste_details_content>
applePayJSON.survey = { Questions: JSON.parse(applePayJSON.survey)[0].Questions, Answers: JSON.parse(applePayJSON.survey)[1].Answers };
applePayJSON.survey.Answers.AppleMessagesforBusinessJSON = JSON.parse(applePayJSON.survey.Answers.AppleMessagesforBusinessJSON);
applePayJSON.survey.Answers.AppleMessagesforBusinessJSON = JSON.stringify(applePayJSON.survey.Answers.AppleMessagesforBusinessJSON);
applePayJSON.survey = JSON.stringify(applePayJSON.survey);
// Can now send this payload using the API
Microsoft.Omnichannel.sendMessageToConversation(applePayJSON, false);
// Or take the JSON elsewhere for use in bringing your own logic
copy(applePayJSON);
การรับรองความถูกต้อง
let authJSON = // <copy_and_paste_details_content>
authJSON.survey = { Questions: JSON.parse(authJSON.survey)[0].Questions, Answers: JSON.parse(authJSON.survey)[1].Answers };
authJSON.survey = JSON.stringify(authJSON.survey);
// Can now send this payload using the API
Microsoft.Omnichannel.sendMessageToConversation(authJSON, false);
// Or take the JSON elsewhere for use in bringing your own logic
copy(authJSON);
JSON แบบกําหนดเอง (แอปพลิเคชัน iMessage)
let customJSON = // <copy_and_paste_details_content>
customJSON.survey = { Questions: JSON.parse(customJSON.survey)[0].Questions, Answers: JSON.parse(customJSON.survey)[1].Answers };
customJSON.survey.Answers.AppleMessagesforBusinessJSON = JSON.parse(customJSON.survey.Answers.AppleMessagesforBusinessJSON);
customJSON.survey.Answers.AppleMessagesforBusinessJSON = JSON.stringify(customJSON.survey.Answers.AppleMessagesforBusinessJSON);
customJSON.survey = JSON.stringify(customJSON.survey);
// Can now send this payload using the API
Microsoft.Omnichannel.sendMessageToConversation(customJSON, false);
// Or take the JSON elsewhere for use in bringing your own logic
copy(customJSON);
ตัวเลือกรายการ
listPickerJSON = // <copy_and_paste_details_content>
listPickerJSON.survey = { Questions: JSON.parse(lpFromDetails.survey)[0].Questions, Answers: JSON.parse(listPickerJSON.survey)[1].Answers };
listPickerJSON.survey = JSON.stringify(listPickerJSON.survey);
// Can now send this payload using the API
Microsoft.Omnichannel.sendMessageToConversation(listPickerJSON, false);
// Or take the JSON elsewhere for use in bringing your own logic
copy(listPickerJSON);
คําตอบที่แนะนํา
suggestedReplyJSON = // <copy_and_paste_details_content>
suggestedReplyJSON.survey = { Questions: JSON.parse(suggestedReplyJSON.survey)[0].Questions, Answers: JSON.parse(suggestedReplyJSON.survey)[1].Answers };
suggestedReplyJSON.survey = JSON.stringify(suggestedReplyJSON.survey);
// Can now send this payload using the API
Microsoft.Omnichannel.sendMessageToConversation(suggestedReplyJSON, false);
// Or take the JSON elsewhere for use in bringing your own logic
copy(suggestedReplyJSON);
ตัวเลือกเวลา
timePickerJSON = // <copy_and_paste_details_content>
timePickerJSON.survey = { Questions: JSON.parse(timePickerJSON.survey)[0].Questions, Answers: JSON.parse(timePickerJSON.survey)[1].Answers };
timePickerJSON.survey = JSON.stringify(timePickerJSON.survey);
// Can now send this payload using the API
Microsoft.Omnichannel.sendMessageToConversation(timePickerJSON, false);
// Or take the JSON elsewhere for use in bringing your own logic
copy(timePickerJSON);
ลิงก์วิดีโอที่หลากหลาย
videoRichLinkJSON = // <copy_and_paste_details_content>
videoRichLinkJSON.survey = { Questions: JSON.parse(videoRichLinkJSON.survey)[0].Questions, Answers: JSON.parse(videoRichLinkJSON.survey)[1].Answers };
timePickerJSON.survey = JSON.stringify(videoRichLinkJSON.survey);
// Can now send this payload using the API
Microsoft.Omnichannel.sendMessageToConversation(videoRichLinkJSON, false);
// Or take the JSON elsewhere for use in bringing your own logic
copy(videoRichLinkJSON);
ลิงก์ที่สมบูรณ์ของเว็บไซต์
websiteRichLinkJSON = // <copy_and_paste_details_content>
websiteRichLinkJSON.survey = { Questions: JSON.parse(websiteRichLinkJSON.survey)[0].Questions, Answers: JSON.parse(websiteRichLinkJSON.survey)[1].Answers };
timePickerJSON.survey = JSON.stringify(websiteRichLinkJSON.survey);
// Can now send this payload using the API
Microsoft.Omnichannel.sendMessageToConversation(websiteRichLinkJSON, false);
// Or take the JSON elsewhere for use in bringing your own logic
copy(websiteRichLinkJSON);
กําหนดค่าตัวแทนให้ส่งการตอบกลับที่แนะนําในแชทสดและการ์ด/ภาพสไลด์
Copilot Studio รองรับการตอบกลับที่แนะนําและการ์ดพื้นฐานที่แกะกล่อง เรียนรู้เพิ่มเติมใน ส่งข้อความ - Microsoft Copilot Studio
Note
Copilot Studio อ้างถึงการตอบกลับที่แนะนําว่าเป็นการตอบกลับด่วน
ข้อมูลที่เกี่ยวข้อง
การอ้างอิง JavaScript API SDK แชทสด
การอ้างอิง JavaScript API ช่องทาง Omni
ส่งข้อความไปยังการสนทนา