Integrate slack message menu with DialogFlow - slack-api

I am working on a Chatbot for Slack with DialogFlow. I have put a message menu in Slack. I want to send the selected value to DialogFlow as an intent. It does not work.
Does DialogFlow supports message menus or Do I have to setup a webhook myself?
Thanks.

As #praveen suggested you will need to enable Fulfilment in DialogFlow settings for the project and point it to your fulfilment back-end service. After you have done that check Rich Messages Doc to see what data payload to respond with to DialogFlow from your Fulfilment service to make Slack display a menu.
UPDATE
If you want to perform an action in Slack and enable Slack notify you of that action then you can either user Slack RTM or Slack's event API

Related

Twilio: track user action on SMS links and reply based on that action

I using twilio flow to create simple chatbot that sends user a whatsapp message with link to provide some details and once user has provided the required details on web page, chat bot must reply with a THANKS message.
Is there anything like postback using rest api on active execution based on which a thank you message can sent.
Please have look on diagram as well.
Twilio developer evangelist here.
When you say you are using Twilio flow, I guess you are using Twilio Studio to send the messages. In this case, I don't think you can achieve what you want with Studio. You can't move an execution on with the REST API.
However, it should be fairly straightforward to send the thank you message from your application using the Twilio Messaging API instead.
What you will need to do is, when the user submits the form, in your back-end code as well as saving the data to your database, make a call to the Twilio API to send the WhatsApp message. I'm not sure what your application is built in, so I've just linked to the relevant documentation.

Twilio Flex, Intercept Incoming Messages in order to send Slack Notifications

I currently have Twilio Flex set up but need to intercept all incoming messages in order to send slack notifications to reps, if they're offline and need to respond.
Is there a way to intercept (using a webhook) only Incoming messages so that I can send those slack notifications.
Twilio developer evangelist here.
If you go into your Flex project to the Studio dashboard you will find three flows, including the Messaging Flow. Incoming messages are directed to this Flow.
If you open the Messaging Flow you will see that by default it sends the message straight to Flex.
You can add a widget in here to invoke a Twilio Function before sending the message onto Flex. Twilio Functions allow you to write Node.js to perform custom tasks, like sending a Slack notification.

Initiate dialog using Dialogflow, Twilio & Node Js.

I am trying to find a way to trigger a Dialogflow event from Node Js to start a conversation with the end user.
For example, I'd like to send a text message to the end user reminding them about their appointment and ask them for a confirmation.
As I understand it, I would need to initiate the conversation with the end user, and programatically set the entities and context in Dialogflow. Any insights on how I might achieve this?
i.e.
DIALOGFLOW AGENT: Hi John, I'd like to confirm you appointment for 2pm this Thursday?
Dialogflow doesn't currently support proactively sending messages on any platforms. You can send your own messages via the platform's API and any responses to that message will be received by your Dialogflow agent and responded to.

Getting all event of a Bot(user) via Webhook

I have read about the outbound webhook and Event api. And i am able to install a bot to a team using slack button. outbound webhook dosent fit in my scenario i think.
So how can i can get all events(specially whenever this bot receive a msg) using the event api to my webhook.?
Any direction or right way to solve this problem ..?
Outgoing Webhook and Event API are two completely unrelated functions. So you can not get event notifications through an outgoing webhook.
To get event notification your Slack App need to
request the correct oath scopes
subscribe to the events you want to get in the Slack App config
have a script ready to receive the event requests from Slack
Your script will then be called every time the subscribed event occurs.
For all details please have a look at the excellent official documentation about the Event API.

Emit custom events through Slack API

I'm trying to find a way to send events to a hubot running on Slack from, say, a python script. I've looked at the Events API documentation, but it only talks about how to receive information on events from Slack. Is there any way to emit an event to slack through the API?
No, you can only receive events from Slack with the Events API. But they are many other ways to interact with the Slack using the normal Slack API, e.g. sending messages to a channel.

Resources