【发布时间】:2018-03-01 09:43:11
【问题描述】:
如何在 dialogflow 版本 2 中返回或替换履行数据字段? 当我收到 fullfillment 时,未通知此字段,并且在文档中未提及 https://dialogflow.com/docs/reference/v2-comparison。
【问题讨论】:
标签: dialogflow-es
如何在 dialogflow 版本 2 中返回或替换履行数据字段? 当我收到 fullfillment 时,未通知此字段,并且在文档中未提及 https://dialogflow.com/docs/reference/v2-comparison。
【问题讨论】:
标签: dialogflow-es
现在是payload。
看看:https://dialogflow.com/docs/fulfillment#response
"data": {
"google": {
"expectUserResponse": true,
"richResponse": {
"items": [
{
"simpleResponse": {
"textToSpeech": "this is a simple response"
}
}
]
}
},
"facebook": {
"text": "Hello, Facebook!"
},
"slack": {
"text": "This is a text response for Slack."
}
}
现在:
"payload": {
"google": {
"expectUserResponse": true,
"richResponse": {
"items": [
{
"simpleResponse": {
"textToSpeech": "this is a simple response"
}
}
]
}
},
"facebook": {
"text": "Hello, Facebook!"
},
"slack": {
"text": "This is a text response for Slack."
}
}
【讨论】: