In slack is possible to use attachments to create buttons in a chat (https://api.slack.com/docs/message-buttons).
How can I click in the button and use the text button in chat? Don't use link or redirect, just use the button text in the chat.
As I understand you want to update your chat message after a user clicks the button.
Here is how this would work with Slack:
Your app post a message with a message button in a channel
User clicks on button
Your app gets interaction request from Slack
Your apps replies to the Slack request to update the message content
(e.g. text) by replacing it with a new message.
This is how this works with Slack and its the only approach. See also this answer on the same topic.
Related
I am developing a chat bot with slack. I want to display a pop-up message with certain editable fields in slack as a response to query. How can I achieve this functionality?
There is no pop up message feature per se, but you can show a modal window called Dialog with editable fields as response to a query.
So i found that the 3 ways to send webviews on facebook messenger are:
All of those solutions implies to send either a Menu, a Card or a Chat extension where the user have to click.
What im looking for is that when the user interacts with my bot (at the moment he says "please send me the webview"), the chat without clicking some button redirects the user to a webview. In this way the conversational flow its not affected by pop-up screens.
Is there a way?
Thanks in advance
I have configured response cards for prompt message on Lex console, I am able to get the card on messenger as well but when I click on any button it's not working.
It sends the value attached to the button, but I get no response. If I enter the response manually then I get the results immediately.
Do we need to configure something else to get buttons in the response cards working?
I got it working by checking/ticking the "messaging_postbacks" events in the Webhooks in messenger settings in the Facebook app.
I'm developing a bot for FB Messenger and want to set a greeting text for the first time a user interacts with the bot.
I followed what the docs say on setting the greeting text. Now I would like to test it and view the greeting message. However, I am stuck because I have already sent the bot messages and hence am not able to view the bot as a new user.
How is it possible to viewing the greeting message UI as if you were a new user?
Unfortunately there is no "official" way to see the greeting message UI as if you were a new user.
But, a workaround for this is to delete the conversation (from your messenger application or from Facebook's chat) and reinitiate it.
I'm new to Messenger platform and I'm developing a help desk BOT integrated with Facebook Messenger (on a Facebook Page).
I'm wondering on the best practice to fallback/redirect a conversation to a "real agent/operator" (when the BOT is unable to undestand or help the user).
Is it possible to redirect to another page? alert an operator? ...
I was only considering the various possibilities and best practices .... any advice is welcome!
Thank you!
What I did in my chatbot, is that when a user wants to talk to a real agent, he presses on a button called "Talk to Support". (I'll not talk about when this button is sent, you can make your own criteria)
Now in my database, there's a column "Chatting with Support", it becomes "true" when the user presses on the "Talk to Support" button, and as long as it's true, the chatbot script will ignore every message from this user.
Now the important part: when the user wants to go back to the chatbot?
I gave my agents a string like "Cancel Chat Session". And whenever a user wants to go back to the chatbot, my agents type "Cancel Chat Session".
What happens is that I subscribed my webhook to messaging_echoes event, which simply sends every message my agents send to any user to my chatbot aswell.
You know the rest, I'll check every request in my chatbot if it's an Echo, the check the text, if it's "Cancel Chat Session", I'll set the column "Chatting with Support" to false for the user, and he's back to the chatbot.
Check Facebook documentation for messaging_echoes events:
messaging_echoes
I hope you could make use of this :)