【发布时间】:2018-05-23 00:58:21
【问题描述】:
我正在尝试使用对话流和 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 bots facebook-messenger dialogflow-es