Dialogflow Messenger V1无法呈现丰富的响应消息 [英] Dialogflow Messenger V1 not rendering rich response messages
问题描述
如何获取 Dialogflow Messenger v1 以显示机器响应邮件,特别是快速答复(单击时发送文本的按钮)?
How can I get Dialogflow Messenger v1 to display moch response messages, specifically Quick Replies (a button that sends text when clicked)?
在提供以下 WebhookResponse(v2),Dialogflow控制台调试器会正确显示text_1,quick_reply_1, quick_reply_2,text_2
When provided with the below WebhookResponse (v2), the Dialogflow Console debugger correctly displays text_1, quick_reply_1, quick_reply_2, text_2
但是,Dialogflow Messenger仅显示纯文本,即'text_1 text_2'
However, Dialogflow Messenger only displays the plain text, i.e. 'text_1 text_2'
{
"responseId": "XXX",
"queryResult": {
"queryText": "cancel",
"parameters": {},
"allRequiredParamsPresent": true,
"fulfillmentText": "XXX",
"fulfillmentMessages": [
{
"text": {
"text": [
"text_1"
]
}
},
{
"quickReplies": {
"title": "quick reply title",
"quickReplies": [
"quick_reply_1",
"quick_reply_2"
]
}
},
{
"text": {
"text": [
"text_2"
]
}
}
],
"intent": {
"name": "XXX",
"displayName": "XXX"
},
"intentDetectionConfidence": 1,
"diagnosticInfo": {
"webhook_latency_ms": 1692
},
"languageCode": "en"
},
"webhookStatus": {
"message": "Webhook execution successful"
}
}
推荐答案
对于感兴趣的任何人,似乎Dialogflow Messenger V1根本不支持Dialogflow V2 API的快速答复消息类型。作为解决方法,我使用了Kommunicate.io&自定义有效载荷以实现快速回复
For anyone interested, it appears Dialogflow Messenger V1 simply doesn't support the Dialogflow V2 API's Quick Replies Message type. As a workaround, I used Kommunicate.io & custom payloads to implement Quick Replies
这篇关于Dialogflow Messenger V1无法呈现丰富的响应消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!