2
我無法使用quickreplies工作在node-wit messenger.js示例中。 我試過5月的事情,包括:更新了此行的代碼我們的機器人動作(messenger.js 1)):quickreplies編碼node-wit示例messenger.js
const actions = { send({sessionId}, {text,quickreplies})
2)和更新的這行代碼我們的機器人動作(messenger.js):
return fbMessage(recipientId, text,quickreplies)
3)更新我的自定義操作中messenger.js:
getWelcome({context, entities})
{
context.welcome = "how are you. Please select from the options below";
context.welcome.quickreplies = [
{
title: 'Choice A',
content_type: 'text',
payload: 'empty'
},
{
title: 'Choice B',
content_type: 'text',
payload: 'empty'
},
]
return context;
},
4)我嘗試了許多排列。我不能讓它與node-wit messenger.js例子一起工作。快速repliess不顯示我搜索並閱讀所有的文檔
5)你能在這方面幫助,也正是如何檢索messenger.js選擇的快速回復
感謝