I'm making action on google assistant.
How to send video response via fulfillment to action on google?
Related
We are trying to develop an application with Google Assistant. We already have a chat bot data source. Is it possible to connect Google Assistant to a third party data source instead of using Dialogflow. So in the final solution the Google Assistant will act as speech to text and text to speech medium.
Yes, you can take a look at the Action SDK, which will POST to your webhook containing a JSON payload that includes the speech-to-text, and receive a response from you a JSON payload consisting of your reply.
Here's what I mean. The only response from Dialogflow is shown.
I have integrated facebook messenger, and it works fine when testing with the messenger. I want to access the JSON data that Dialogflow console provides when I'm interacting with messenger.
It will only show up, if you have added something explicitly for facebook in the facebook response tab or the webhook response.
You can however find the JSON data from your facebook interactions in the history. Click on the three dots next to a response and click raw interaction log
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
It appears that Dialogflow can only respond to what's tweeted at my bot. Is there anyway to get it to respond to non-# my bot tweets?
Dialogflow's built-in Twitter integration works with #-tweets and DMs.
To handle arbitrary tweets, you would have to write your own Twitter integration using the Dialogflow API and Twitter API, calling the detectIntent endpoint for each incoming tweet and posting the response via Twitter's API.
I have a case where I need to create a Bot in Slack that my users can use conversational language to get information out of my web app in real time. The scenario goes something like:
User asks the bot something like: #hrbot How many employees are in the Finance department?
Bot send the string to API.AI/ diagflow to resolve into a JSON request
API.AI sends the JSON request to my Web App endpoint via webhook to get the answer
Answer is returned to user's Slack channel
Question:
1. How do I get the auth token from api.ai to send message to slack?
With Dialogflow (formerly API.AI) you provide a webhook (a HTTPS URL where your server is) and Dialogflow will send a HTTPS request to your webhook when requests come to your Dialogflow agent. You can enable the Slack integration in your Dialogflow agent through the web interface and all requests from Slack will be sent to your Dialogflow agent and (if you configure it) to your webhook with NLU information and the original request from Slack.
Information about the request that is sent to your webhook is documented here: dialogflow.com/docs/fulfillment#request if you respond to the request the response will be forwarded to the user that trigger the request. The response format is documented here: dialogflow.com/docs/fulfillment#response