Botkit: Can not send quick reply using bot say

Created on 20 Apr 2018  路  5Comments  路  Source: howdyai/botkit

how to send quick reply using bot.say()??
ref https://botkit.ai/docs/core.html#botsay
documentation is incomplete

help wanted

All 5 comments

What platform are you trying to create a quick reply for? That will largely dictate what is possible with the generic example you are linking to.

for facebook messenger

Take a look at the facebook example here and use say instead of reply.

thanks it worked

controller.hears(['show details'], 'message_received', function (bot, message) {
var questionText = 'show details'
var replies = [
{
"content_type":"text",
"title":'go back',
"payload":'go back'
},
{
"content_type":"text",
"title":'main menu',
"payload":'menu'
},
{
"content_type":"text",
"title":'order',
"payload":'order'
}
]
var quickReplyAttachment = {
'text': questionText,
'quick_replies': replies
}
bot.reply(message, quickReplyAttachment)
});

I am getting only the text show details .the quick replies are not displayed.can anyone help me?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

RafaelCosman picture RafaelCosman  路  4Comments

imjul1an picture imjul1an  路  3Comments

GautierT picture GautierT  路  3Comments

HannanShaik picture HannanShaik  路  3Comments

fieldcorbett picture fieldcorbett  路  4Comments