how to send quick reply using bot.say()??
ref https://botkit.ai/docs/core.html#botsay
documentation is incomplete
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?