0
我正在使用微軟的bot框架,我想發送快速回復,但我不想使用watterfall,我希望它由luis處理,我如何設置快速使用節點sdk回覆消息?在Microsoft Bot Framework中不使用watterfall發送快速回復
我正在使用微軟的bot框架,我想發送快速回復,但我不想使用watterfall,我希望它由luis處理,我如何設置快速使用節點sdk回覆消息?在Microsoft Bot Framework中不使用watterfall發送快速回復
這是它是如何做,你必須將它添加到源事件,我在這裏找到https://github.com/Microsoft/BotBuilder-Samples/blob/master/Node/core-ChannelData/app.js#L92
let message = new builder.Message(session)
.text("Hello")
.sourceEvent({
facebook: {
"quick_replies": [
{
"content_type": "text",
"title": "Weather",
"payload": "Weather"
},
{
"content_type": "text",
"title": "Forecast",
"payload": "Forecast"
}
]
}
})
session.send(message)