Botkit: Quick Replies are not supported by Botkit? [Facebook]

Created on 18 Sep 2016  路  5Comments  路  Source: howdyai/botkit

Has anyone managed to get it to work with convo.say/ask ?

Facebook-related help wanted

Most helpful comment

0.4 includes these changes!

All 5 comments

@morsidi
Are you using the latest version of Botkit? Quick replies should work.
Please paste the code you are using to send the quick replies.

controller.hears(['raleigh'], 'message_received', function(bot,message){
bot.reply(message, {
"text": "What day would you like to go out?",
"quick_replies":
[
{
"content_type": "text",
"title": "Thursday",
"payload": "thursday_test"
},
{
"content_type": "text",
"title": "Friday",
"payload": "friday"
},
{
"content_type": "text",
"title": "Saturday",
"payload": "saturday"
}
]
})
})

controller.on('facebook_postback', function(bot, message) {
if (message.payload == "raleigh_test") {
bot.reply(message, {
"text": "What day would you like to go out?",
"quick_replies":
[
{
"content_type": "text",
"title": "Raleigh",
"payload": "raleigh_test"
},
{
"content_type": "text",
"title": "Chapel Hill",
"payload": "chapel_hill"
},
{
"content_type": "text",
"title": "Boone",
"payload": "boone"
}
]

    },
            function(response, convo) {
            // whoa, I got the postback payload as a response to my convo.ask!
            convo.next();
        }
    )}
})

The issue here seems to be that the current changes that came with Messenger API 1.1 have not been fully implemented in botkit just yet.

Compare #306 for instance (QuickReplies) and #305 for the starting point.

This has been merged into master, but not made it into a release version (https://github.com/howdyai/botkit/releases).

Latest tagged release was v0.2.2 which came out in June (before Messenger API 1.1 on July 1st).

So my (hopefully temporary) solution is: Manually checkout current master branch instead of relying on a pinned version.

0.4 includes these changes!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

znat picture znat  路  4Comments

benbrown picture benbrown  路  3Comments

iworkforthem picture iworkforthem  路  3Comments

GautierT picture GautierT  路  3Comments

abinashmohanty picture abinashmohanty  路  4Comments