Intercept fulfillment response - dialogflow-es

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.

Related

How to send multiple response from Dialog flow using different type of rich responses

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

How to register whatsapp webhook

I need to do an integration with twilio where the application serves multiple accounts. With that I have the need to receive the whatsapp integrations in different URL for each user of the application.
I would like to register these URLs in a simple way, without my user having to access the twilio panel.
How can I register a whatsapp WebHook using HTTP APIs or nodejs SDK?
I searched the documentations and even debugged the nodejs SDK and couldn't find a way to do that.
What’s integration allows you toconfigure one URL per number. How about setting that URL to your backend which then breaks out the behavior based on the from number.

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.

How to create a custom webhook in Dialogflow based on Azure?

So I would like to implement Dialogflow fulfilliment using a custom node.js webhook. I've created a node.js app in Azure (I have my own .azurewebsites.net site), however I'm not quite sure how to link it to Dialogflow. How do I do this? Thank you.
On the dialog flow side Go to dashboard and click on fulfillment on side bar provide the web hook and basic authentication and headers.
On nodeJs make sure you provide POST Webhook API where dialogflow app sends requests.
Are you familiar with Express or any other framework to create REST APIs with Node?
There are tons of material on the web, but this is a starting point if you like.
In this link you'll find the documentation that shows which fields will be posted to your endpoint and those that you'll want to send back to Dialogflow.

I want to connect DialogFlow to Google SpreadSheet

I was going to send the info obtained from dialogflow bot to my google spreadsheet to save and reuse them.
I tried use fullfillment in DialogFlow. I logged in SheetSu which provides the API for google spreadsheet and got API from that site(sheetsu.com).
and then i'm embarrased with that API in fullullment in DialogFlow.
Is there any better way?
Yes, you can use the Google Sheets API directly. This will likely require you to go through Google Sign In for Assistant to get an access/refresh token.
(If you just want voice commands for Sheets, Actions such as Vodo Drive are working on the issue.)

Resources