Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
Nền tảng Copilot Studio và Dynamics 365 Customer Service có sự khác biệt nhẹ về cách chúng hỗ trợ tin nhắn đa phương tiện phong phú dựa trên kênh và loại thông điệp đa phương tiện. Bài viết này mô tả cách bạn có thể hỗ trợ tin nhắn đa phương tiện trong Copilot Studio.
Truy xuất JSON của tác nhân cho Apple Messages for Business
- Trong sơ đồ trang web của trung tâm quản trị Dịch vụ Copilot, hãy chọn Năng suất trong trải nghiệm Hỗ trợ.
- Trên trang Năng suất, chọn Quản lý cho Tin nhắn phong phú.
- Từ danh sách tất cả các tin nhắn danh sách có sẵn, hãy chọn một tin nhắn phong phú mà bạn muốn gửi đến cuộc trò chuyện.
- Đối với tin nhắn phong phú của Apple Messages for Business, hãy sử dụng API Microsoft.Omnichannel.sendMessageToConversation để gửi tệp JSON.
Truy xuất JSON của tổng đài viên cho biểu mẫu Trò chuyện trực tiếp, JSON tùy chỉnh Trò chuyện trực tiếp và câu trả lời đề xuất của WhatsApp
Trong sơ đồ trang web của trung tâm quản trị Dịch vụ Copilot, hãy chọn Năng suất trong trải nghiệm Hỗ trợ.
Trên trang Năng suất, chọn Quản lý cho Tin nhắn phong phú.
Tìm tin nhắn đa phương tiện mà bạn muốn một tổng đài viên gửi và nếu nó có sẵn JSON, nó sẽ xuất hiện trong cột JSON cho Copilot Studio . Chọn Xem JSON và loại kênh cụ thể để sao chép JSON.
Đối với các mẫu Live Chat và WhatsApp đa phương tiện, bạn có thể dán trực tiếp JSON vào nút thẻ thích ứng trong Copilot Studio.
Mẫu JSON cho tin nhắn phong phú cho Apple Messages for Business
Phần này bao gồm các mẫu JSON cho các loại tin nhắn phong phú có sẵn trong kênh Apple Messages for Business của Dynamics 365 Customer Service. Thông tin thêm: Quản lý tin nhắn đa dạng thức
Lưu ý
Bạn không thể gửi tin nhắn phong phú loại Biểu mẫu đến các cuộc hội thoại.
Thanh toán Apple
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);
Xác thực
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 tùy chỉnh (Ứng dụng 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);
Bộ chọn danh sách
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);
Câu trả lời được đề nghị
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);
Bộ chọn thời gian
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);
Liên kết phong phú 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);
Liên kết phong phú trang 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);
Định cấu hình nhân viên để gửi câu trả lời đề xuất và thẻ/băng chuyền được đề xuất trong Trò chuyện trực tiếp
Copilot Studio hỗ trợ các câu trả lời được đề xuất và thẻ cơ bản ngay lập tức. Tìm hiểu thêm trong Gửi tin nhắn - Microsoft Copilot Studio.
Lưu ý
Copilot Studio đề cập đến các câu trả lời được đề xuất là câu trả lời nhanh.
Thông tin liên quan
Tham khảo API JavaScript SDK trò chuyện trực tiếp
Tham khảo API JavaScript đa kênh
gửi MessageToConversation