【发布时间】:2018-01-11 06:27:57
【问题描述】:
我无法理解通过 webhook 来回简单地传递参数。我正在尝试使用对话流和 fb messenger 构建一个简单的机器人。我需要向最终用户显示两个按钮来选择蛋糕类型。我可以使用以下自定义响应显示选项:
{
"facebook": {
"attachment": {
"type": "template",
"payload": {
"template_type": "button",
"text": "What kind of cake would you like?",
"buttons": [
{
"type": "postback",
"payload": "witheggs",
"title": "Contain Eggs"
},
{
"type": "postback",
"payload": "noeggs",
"title": "Eggless"
}
]
}
}
}
}
一旦用户点击两个按钮中的一个,我如何将其设置为对话流中的某个变量,然后问下一组问题?
【问题讨论】:
标签: facebook-messenger dialogflow-es