Catatan
Akses ke halaman ini memerlukan otorisasi. Anda dapat mencoba masuk atau mengubah direktori.
Akses ke halaman ini memerlukan otorisasi. Anda dapat mencoba mengubah direktori.
Platform Copilot Studio dan Dynamics 365 Customer Service sedikit berbeda dalam mendukung pesan media kaya berdasarkan saluran dan jenis pesan media kaya. Artikel ini menjelaskan bagaimana Anda dapat mendukung pesan media kaya di Copilot Studio.
Mengambil JSON agen untuk Apple Messages for Business
- Di peta situs pusat admin Layanan Copilot, pilih Produktivitas dalam pengalaman Dukungan.
- Pada halaman Produktivitas , pilih Kelola untuk pesan kaya.
- Dari daftar semua pesan daftar yang tersedia, pilih pesan kaya yang ingin Anda kirim ke percakapan.
- Untuk pesan kaya Apple Messages for Business, gunakan API Microsoft.Omnichannel.sendMessageToConversation untuk mengirim file JSON.
Mengambil JSON agen untuk formulir Obrolan Langsung, JSON kustom Obrolan Langsung, dan balasan yang disarankan WhatsApp
Di peta situs pusat admin Layanan Copilot, pilih Produktivitas dalam pengalaman Dukungan.
Pada halaman Produktivitas , pilih Kelola untuk pesan kaya.
Temukan pesan media kaya yang Anda inginkan untuk dikirim oleh agen, dan jika memiliki JSON yang tersedia, pesan tersebut muncul di bawah kolom JSON untuk Copilot Studio . Pilih Lihat JSON dan jenis saluran tertentu untuk menyalin JSON.
Untuk templat media kaya Obrolan Langsung dan WhatsApp, Anda dapat menempelkan JSON langsung ke simpul kartu adaptif di Copilot Studio.
Sampel JSON untuk pesan kaya untuk Apple Messages for Business
Bagian ini mencakup contoh JSON untuk jenis pesan kaya yang tersedia di saluran Apple Messages for Business di Dynamics 365 Customer Service. Informasi selengkapnya: Mengelola pesan kaya
Nota
Anda tidak dapat mengirim pesan kaya jenis Formulir ke percakapan.
Apple Pay
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);
Authentication
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 Kustom (Aplikasi 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);
Pemilih Daftar
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);
Balasan yang disarankan
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);
Pemilih waktu
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);
Tautan kaya video
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);
Tautan kaya situs web
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);
Mengonfigurasi agen untuk mengirim balasan yang disarankan Obrolan Langsung dan kartu/korsel
Copilot Studio mendukung balasan yang disarankan dan kartu dasar di luar kotak. Pelajari selengkapnya di Mengirim pesan - Microsoft Copilot Studio.
Nota
Copilot Studio mengacu pada balasan yang disarankan sebagai balasan cepat.
Informasi terkait
Referensi API JavaScript SDK obrolan langsung
Referensi API JavaScript Multisaluran
sendMessageToConversation