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.
Related
Is there any way to create a Dialogflow response like this?. After providing all those required values user will hit Confirm. Then the intent will get triggered. I'm planning to integrate my bot into Facebook, Telegram, and WhatsApp
I am trying to post form results to the Slack channel using webflow and slack apps. So I have created a Slack app that exposes the webhook URL for posting the data to the channel.
I have added the webhook URL to the action field with the method type set to post and published the change.
When I input the data into the form and trigger the form submit button I get the message: invalid json payload.
So how I can convert the data to string or change the data format so it could be sent to Slack?
For the easiest no-code solution I'd use zapier
You can go on slack, and look for its integrations with Webflow.
Or reach this link, I found the integration already. Create an account and set up your webhook. It's free for a single "zap" and it takes 5 minutes to set up
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.
Im using fulfillment to get data from database. And I have integrated my bot with facebook.
And currently I'm customizing db response as per facebook in my api itself and sending it to the dialogflow.
And I want to integrate it with skype too.
Now my question is, can I customise my api response in dialogflow instead of in API. As I want to integrate my bot with multiple platforms so accordingly their response will be formatted as per facebook or skype.
So i will need to create another api for skype too. I want to avoid this.
So I want to get output from my api and format it in dialogflow itself using custom payload. So is it possible to work in this way?
Sure! You get the stored data using your API and then you format the response for the platforms you are going to use. In this example, the payload contains different responses for Google Assistant, Facebook and Slack.
Also, take a look at this NodeJS library which makes easier develop your fulfillment code.
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