Botkit: Can I reply to a conversation with a button click?

Created on 22 Mar 2017  路  6Comments  路  Source: howdyai/botkit

I have a bot that starts a conversation, and I want to add a "never mind" button that "exists" the conversation and stops it.
what is the best way to do it?

Thanks in advanced.

help wanted

Most helpful comment

Take a look at interactive messages:
https://github.com/howdyai/botkit/blob/master/readme-slack.md#message-buttons

All 6 comments

For which platform are you running your bot?

slack

Take a look at interactive messages:
https://github.com/howdyai/botkit/blob/master/readme-slack.md#message-buttons

exactly what I needed (the 'Using Interactive Messages in Conversations' example)
Thanks a lot.

Great! Have fun!

Closing for now...

another question,
I have integrated the interactive message in conversation, and now i'm facing another issue.

as a part of the implementation, I had to add a interactive_replies: true, parameter to by bot init function. ever since, every "regular" (not a part of a conversation) button my bot has is also treated as text message, due to this snippet on the slackbot.js:
if (configuration.interactive_replies) { message.type = 'message'; slack_botkit.receiveMessage(bot, message); }

this causes any button interaction to be treated as a message, and my '*' rule catches it as if it was a regular command as well.
(my bot has several commands that replies interactively, with buttons)

any ideas?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

seriousssam picture seriousssam  路  3Comments

JonnyBoy333 picture JonnyBoy333  路  3Comments

imjul1an picture imjul1an  路  3Comments

koubenecn picture koubenecn  路  3Comments

znat picture znat  路  4Comments