How to add buttons in whatsapp bot using dialogflow - dialogflow-es

How to create buttons in dialogflow that should be displayed in the whatsapp bot.

There is no direct integration between WhatsApp and Dialogflow. You can do this with Twilio. And I don't think WhatsApp support rich response. You can send messages, audio, pdf anything that is supported currently in WhatsApp.
Dialogflow supported integration

Related

Is the integration of instagram and Watson Assistant possible?

I recently did some Watson Assistant integrations. Whatsapp, Telegram and Facebook Messenger and now I'm looking to do the same thing with Instagram.
I saw that Facebook (now Meta) recently published the API to do this integration. But I tried to replicate what I had done on Facebook Messenger, (set up webhoock, link page, set up test user) and Direct doesn't give me a return.
I would like to know if Watson and this API are compatible with each other.
And if not, is there any platform to do this integration?
It is currently possible.
Instagram provides an API in which you can capture a Webhook and exchange messages, while node red creates a url that will be sent and received as responses
You can also use captivate hub to connect your watson assistant on instagram
Link: https://hub.captivat.io
Manual: https://manual.captivat.io/install/channels/instagram

Is it possible to send images from Dialogflow CX?

I dont find this possibility in the current response types
Yes, it is possible. However, this would depend on the Integration you are using. You may use a custom payload for any rich response of your Agent. If you are using a custom integration, you would have to implement it on your own.
In my end, I have tested it using Dialogflow CX Messenger.
I selected a custom payload in the "Add dialogue option" and followed the format of the payload in the image response type of Dialogflow CX Messenger.
See screenshot below of the test I made in Dialogflow CX Messenger:
Note that images will not show in the console's "Test Agent" section, instead you can only see the JSON when you expand the custom payload tag in the Agent’s response.
Note that the example provided above is for Dialogflow Messenger. Currently, Dialogflow CX doesn't support Twilio’s WhatsApp as a built-in integration. Since you are using your own custom implementation to integrate Dialogflow with Twilio's WhatsApp, you can follow the payload format of the image response type for Twilio's WhatsApp and send it as a custom payload from Dialogflow.
Then in your backend service, you can get the payload from Dialogflow's detectIntentResponse.query_result.response_messages[].payload, parse it and create the valid Twilio's WhatsApp response format before sending it to Twilio's WhatsApp.

Is it possible to have DialogFlow read your emails and create responses?

I've been playing around with DialogFlow but I don't see any way for it to receive my support emails. Am I missing something or is that not allowed?
How do I get DialogFlow to receive my emails?
Dialogflow is not designed for this particular usecase. It is designed for creating chat agents, so you get out of the box integration with messenger, slack etc.
However you can programmatically send emails to Dialogflow using SDK and receive the responses.

Chatbase integration with Dialogflow chatbot which is integrated in an app through a third party API

I have a Dialogflow agent which is integrated in an app and a web version. I want to integrate this chatbot with Chatbase to get analysis metrics of the bot. However, as of chatbase documentation we cannot integrate Dialogflow hosted bots with Chatbase but if I have a server in the middle of my app and chatbot which is saving all the data, can I integrate chatbase with it?
The typical way to integrate Chatbase is to have it called as part of fulfillment. This requires you to set each Intent to use fulfillment, but you can still set the reply as part of the Intent, if you wish. In your webhook, you would call Chatbase to record the event, but not return any response in the webhook, and Dialogflow will use the Response set in the UI.
Chatbase reports are built upon user messages and intents, however there is value in sending us the bot messages to provide context to the Transcripts feature. You can create a server to server integration to send us the JSON payloads in real time, or in batches of up to 100.

How to send text message through DialogFlow?

I tried looking all over the internet on how to setup and send text message(sms) through Dialogflow.
I am building an app where the Bot asks the user for their number and sends them a text message. Is there a tutorial? or anyone guide me I appreciate it?
As suggested by Nikhil, you need to use twillio APIs to send the SMS.
Here is how it will work:
Dialogflow will ask user for phone number and store it in a parameter
Dialogflow will pass the phone number to the Webhook
The Webhook will make an API call to the Twillio API with above phone number
Twillio will send the sms
Webhook can return some success message to the Dialogflow
Dialogflow will return the message to the user.
Here is a link to the tutorial I have created for understanding dialogflow webhooks: https://www.youtube.com/watch?v=1cD9vU7Ubyg
You can refer to this link for sending sms in PHP via Twillio: sending sms via twilio in php

Resources