actions-on-google

Actions on Google account linking

和自甴很熟 提交于 2019-12-02 06:09:15
问题 Following documentation described here, I have account linking set up with implicit grants and find that it works well when testing with the browser / actions console, and also with the Google Home app for Android. Unfortunately on the iphone version of the app, user auth hangs most of the time. Feedback from actions on google support is that the problem is that google sign in flow is implemented in separate browser tab (window). On iphone you can't open 2 windows in SfariViewController, thus

Action using web-fulfillment with firebase throwing MalformedResponse 'final_response' must be set

懵懂的女人 提交于 2019-12-02 04:26:07
Env : Using firebase cloud deployed google action. Action is using webhook to get results from functions. I am using Blaze plan so calling external URL should be legit. I am using dialogflow V2. Part of my function's job is doing the following: I make an external API request using the following (Masked code detail): var requestObj = require('request'); var options = { url: 'my url', headers: { 'User-Agent': 'request' } }; function callback(error, response, body) { if (!error && response.statusCode == 200) { var info = JSON.parse(body); result = JSON.parse(body).element; console.log('Title 0 '

Where will the reply of a Carousel Selector be sent when using Dialogflow fulfillment server?

一曲冷凌霜 提交于 2019-12-02 03:55:01
I am trying to figure out how I can embed Google Actions responses, such as the carousel , in a webhook response for DialogFlow. As epxlained in Is there a way to simply follow a URL in the Caroussel Selector? , the carousel selector can be used to present the user certain options. When the user clicks, the selected item will be sent back to the backend server. As said, I am using Dialogflow, so the fulfillment server will send the carousel list to the Assistant. It is not clear to me on which REST endpoint the information about the selected item will be provided. Will this be on the

Multiple Dialogflow commands asked at same time

余生颓废 提交于 2019-12-02 02:50:49
I have an Action where the user can set values of different parameters. Currently this is implemented something like this, and it works well: Now I want to make the conversation less robot-like and more flexible, so I would like to allow users to set or change more than one value at a time. They should be able to say things like Change the Interest Rate to 4% and the Term to 15 years. or Change the Interest Rate to 4%, the Term to 15 years, and the Years to Average Principal to 3. There are a couple of ways to do this, but none of them are great, and all of them have issues of some sort when

Unable to accept the permission prompt on Actions on Google

一个人想着一个人 提交于 2019-12-02 01:43:54
I am trying to get permissions for location and name for my app. Here is my index.js - link It seems to be stuck in a loop :- Here are my intents on API.AI :- The event actions_intent_PERMISSION needs to be attached to an Intent that will be called after the user authorizes the information to be sent. The handling for it in the webhook needs to read the information given and save it or do something with it immediately. Your code is looping because the code that is processing the request_permission action is, itself, requesting permission: function requestPermission(app){ const permissions = [

Google Actions - Access to Calendar API with access token fails

邮差的信 提交于 2019-12-01 23:02:48
I followed the instructions in this great post , to setup account linking between my app's server and google actions. In the auth process, I requested " https://www.googleapis.com/auth/calendar " scope permission. I managed to get the auth token on my server by calling app.getUser().accessToken But when I make a request to googleapi calendar, using this piece of code: const google = require('googleapis'); var calendar = google.calendar('v3'); var eventData = { auth: myAuthToken, calendarId: 'primary', resource: { 'summary': 'My Event', 'description': 'Event desc', 'start': { 'dateTime': '2017

How to send push notification from google assistant through Dialogflow fulfilment in Python

风格不统一 提交于 2019-12-01 23:02:29
I'm developing chatbot in google Dialogflow for google assistance, I've followed this Documentation for showing Push notifications . I've asked for the permission but now I'm stuck at the last step( Exchange the key for an access token and send a notification ) in that documentation. Can anybody please help me to do it. Which JSON response should I send from my Python fulfillment code? Finally, I've solved the problem. The code posted by @matthewayne has some mistakes like it should be "POST" request and change some payload and header parameters, hence it worked!, here I've changed some code

dialogflow simple fulfillment webhook in c# not working

折月煮酒 提交于 2019-12-01 18:51:23
I am very new to dialogflow and WebAPIs, and having trouble with a simple dialogflow fulfillment webhook written in C# and hosted on Azure. I am using dialogflow V2.0 API version. Currently my fulfillment works and returns a simple response but has no regard to the intent and parameters. I am trying to now parse the JSON get the intent do a simple select case and return the value of the parameters recevied. And this is giving me lot of trouble. The webhook link, my code and the error message returned in the "catch" block are given below public JsonResult Post(string value) { try { dynamic obj

dialogflow simple fulfillment webhook in c# not working

拈花ヽ惹草 提交于 2019-12-01 17:58:42
问题 I am very new to dialogflow and WebAPIs, and having trouble with a simple dialogflow fulfillment webhook written in C# and hosted on Azure. I am using dialogflow V2.0 API version. Currently my fulfillment works and returns a simple response but has no regard to the intent and parameters. I am trying to now parse the JSON get the intent do a simple select case and return the value of the parameters recevied. And this is giving me lot of trouble. The webhook link, my code and the error message

Map/Directions Cards & Integrate Actions/Intents such as CALL, EMAIL - With Dialogflow, Actions on Google, NodeJS Client V2

牧云@^-^@ 提交于 2019-12-01 17:49:23
I have been trying to figure out how to construct Maps/Directions Cards using Dialogflow and the NodeJS Client . After doing a little bit of research, I found this SO that explains how to generate a static map URL (as an image) using Google Directions API and Polylines. But in my opinion, there should be a feature in Dialogflow that allows developers to build those types of cards, along with associated built-in Intents or Events such as CALL , EMAIL , DIRECTIONS , etc. Below is an example of what I am trying to build: Below is a piece of code that I wrote, trying to reproduce the call to