I am using the nodejs botbuilder framework. A confirm prompt will show yes/no buttons in slack, but they don't do anything when pressed. The slackbot responds with "Hmm, that didn't work, because this app is missing a request URL. Define one here: MIP Bot"
How can I setup my botbuilder app to handle the buttons?
You need to enable "Interactive Messages" in the slack developer console by entering this "Request URL"
https://slack.botframework.com/api/Actions
Then you need to copy your slack "Verification Token" and paste that where it goes in the bot framework slack channel configuration.
My Slack buttons work - yay.
Related
I have worked around with RASA + FB messenger.
I'm able to interact with bots on messenger as normal. But when it comes to response as Button (postback). It's not working as I tried to click on response button from bots. If I type it do work.
I check on logs, and local webhook but it got no interaction.
Anyone experience such a case ?
Did you subscribed to postback webhook event in your Developers account?
If not, you have to subscribe for that to receive the postback events.
See the reference: messaging_postbacks Webhook Event Reference
I'm creating a bot with Dialogflow. It's quite straigtforward, and it worked on Telegram in no time. But things complicated when trying to integrate Dialogflow with Slack.
My bot is able to read direct messages from Slack, and I'm sure of it because the messages from Slack appear in the History section of Dialogflow. Good news there. In the same screen, I can see that Dialogflow answered all the messages Slack sent to it. But sadly, those answers don't appear in Slack.
By the way, just to confuse me more, the Dialogflow's test bot works flawlessly with Slack, publishing there with no issue. So, it's not anything related with the common values you have to copy from Slack and paste to Dialogflow to enable the integration.
It seems that my bot on Slack misses some kind of permission of the OAuth & Permissions screen, but I've tried some of theme, and I can't find the good one. Right now I'm using bot, chat:write:bot, im:write, and channels:read. I guess that only the two first ones are needed, but I'm totally lost and tried adding permissions with no reason. And then, I wrote this post.
Is there someone who has a simple bot that sends messages in direct messages on Slack? What are the needed permissions?
I had the same issue, it's quite easy to solve: just go on Manage Distribution in your bot's Slack API panel and click on the "Add to Slack" button.
That's all!
Under OAuth & Permissions, add "chat:write" to OAuth Scope. That will allow your bot to send messages to other users.
I have a bot using Microsoft bot builder node.js sdk. I started to add hero cards to the conversation and it is working fine except that even if I use imBack type button, slack doesn't display the value of the button. However, in other channels like Skype, when user presses 'OK' say, 'OK' is also written into the chat screen as a user message, as expected
I want to know how I can have the same with Slack
Thanks
Due to the differences in the implementation between Skype (1st party partner channel) and Slack (3rd party channel), what you are asking for is not currently available as a feature.
Slack channel does not support imBack style messages. If you send an imBack on Slack, it is converted to postBack style message (message text is hidden from user).
Now I am building the Facebook Messenger Bot at NodeJS and to provide some information I need to know a user location. I have the button "Send Location" and the response with a small instruction how to send manually the location: go to the menu, find an icon and push it. But reality I need that the user just click the Send Location button and automatically redirect to the map where he can just click Current Location and the bot can catch his coordinates.
Do you have some ideas how it can be made?
PS I saw this button in the "Hi Poncho" and it works great.
enter image description here
You can see similar functionality on my Bot when using the IOS messenger app.
The 'location' feature allows the user to send a their location to the bot. By default, it showe a map with 'Your Location' and 'Tap to view on map'. The lat/long details are sent in the background to the Bot.
I tried from the desktop and it didn't show the quick reply 'send location' button at all.
The bot is running at DMS Software Bot. Type 'quick reply' and hit location.
The source is at FB-Robot on github.
I've added my Skype bot (in preview mode) to my Skype account. The Skype bot seems to be properly configured, as he respons to the OnContactAddedAsync event properly by replying a pre-defined message.
However, I cannot further test the OnPersonalChatMessageReceivedAsync handler, as I'm not able to message my bot, i.e., Skype shows me the following:
Is it because I'm not added to the bot's contact list? If so, how to add somebody to the bot's contact list using the Skype Bot SDK? I have not found any way to do so in the OnContactAddedAsync handler.
Is it because of some other reason?
You need to (forcefully) update your Skype client to the lastet version in order to make it work.
Skype v7.21.0.100 does not work.
Skype v7.21.85.100 does work.
Skype v7.22.85.107 does work.
When you add the bot to your contact list in the latter version, it automatically accepts the request and you are able to message the bot.