【发布时间】:2020-07-03 12:23:02
【问题描述】:
如何让 Dialogflow Messenger v1 显示 moch 响应消息,特别是 Quick Replies(单击时发送文本的按钮)?
当提供以下WebhookResponse (v2) 时,Dialogflow 控制台调试器正确显示 text_1、quick_reply_1、quick_reply_2、text_2
但是,Dialogflow Messenger 仅显示纯文本,即“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-es dialogflow-es-fulfillment