actions-on-google

Google Assistant - Account linking with Google Sign-In

你离开我真会死。 提交于 2019-12-11 06:19:27
问题 I have an Express app which supports Google authentication and authorization via passport. I have begun integrating it with Google Assistant and things were going quite well but I am having trouble with the account linking as described at https://developers.google.com/actions/identity/google-sign-in#start_the_authentication_flow Using the method in the docs at https://codelabs.developers.google.com/codelabs/actions-2/#4 I was able to get user details but when I try to modify to support app

How to answer a user in Home device and send a notification to user's phone

匆匆过客 提交于 2019-12-11 05:49:20
问题 Is there any way to answer a user question in the Home device and at the same time, send a notification to another device? For example, if the user ask for a direction, answer with the location (voice) and finish saying to the user:"I've sent you the location to your phone" and send him a map... I know there is a way to switch conversation to another device (say, for example, one with screen) but I don't want to finish it in Home device. Thanks in advance. 回答1: Not in a straightforward way,

Getting a Voice Match error when trying to call Actions on Google SignIn helper

风流意气都作罢 提交于 2019-12-11 04:48:25
问题 What I'm trying to achieve is user authentication (account linking) before the default welcome intent is called. (I'm aware that in the design documents it is recommended to not require users to authenticate, but it is required for our action) We have an undeployed action that I have tested in the simulator. The conversation flow is The user is prompted to signin ie, new SignIn() They are prompted to create an new item The item is saved and the user receives a success/fail response and

Dialogflow Webhook Format vs. Conversation Webhook Format

瘦欲@ 提交于 2019-12-11 04:25:56
问题 There are two types of fulfilments provides by Google Actions - Dialogflow Webhook Format & Conversation Webhook Format. In my understanding (as per this doc- https://developers.google.com/actions/build/json/conversation-webhook-json) Google sends "Conversation Webhook Format" request if we are using Actions SDK and Google uses "Dialogflow Webhook Format" if we use DialogFlow. Is this understanding correct? The reason I am asking this is because the request format from Google has suddenly

How can I delete project in actions on google console?

扶醉桌前 提交于 2019-12-11 04:24:16
问题 I add many testing projects in actions on google console, and now I want to delete them.... But I can't find any delete button to do it. Can I delete project in actions on google console? if yes, how to do it? 回答1: You can follow these steps to delete a project on actions on google console Goto Google actions console Click on the project you want to delete Click on setting icon and delete the project 来源: https://stackoverflow.com/questions/45829169/how-can-i-delete-project-in-actions-on

Google Assistant changing the surface not working

梦想的初衷 提交于 2019-12-11 03:53:27
问题 Hi guys, I'm currently trying to build an app for the Google Assistant with Dialogflow. During a particular intent I want to redirect the user to his phone (when using a speaker) as the intent requires precise keyboard input. As said in the docs, I'm calling askForNewSurface() in my webhook. In the actions simulator, this is what shows up (truncated) "agentToAssistantJson": { "conversationToken": "[\"_actions_on_google_\",\"some-context\"]", "expectUserResponse": true, "expectedInputs": [ {

Custom fallback intents when using confirmation helper

情到浓时终转凉″ 提交于 2019-12-11 03:07:08
问题 I'm trying to create custom fallbacks for intents that contain confirmations. Here is the code: const functions = require('firebase-functions'); const { dialogflow, Confirmation } = require('actions-on-google'); const app = dialogflow({ debug: true, }); app.intent('vitals-confirmation', (conv, input, confirmation) => { conv.ask(new Confirmation(`Great! Have you fainted recently?`)); }); app.intent('vitals-confirmation-fallback', (conv, input, confirmation) => { conv.ask(new Confirmation(

Can I initiate an action on Google Home from another application without a voice command?

不羁岁月 提交于 2019-12-11 02:07:24
问题 I'm not sure if this is already possible. Can I have another application initiate an action to Google Home instead of having a person initiating by talking to it? For example: I wanted to have Smartthings IFTTT asking Google Home to play something. A couple cases below: CASE 1: If I'm home and alarm armed and front door open then Smartthings will call Google Home for it to say: Front Door Opened CASE 2: When the presence sensor detects I arrive Google Home greets me and ask if I would like to

Unable to Authorize users using Implicit / Authorization flow in google actions

做~自己de王妃 提交于 2019-12-11 01:48:13
问题 I am trying to link to the account : Here is my google cloud function var AuthHandler = function() { this.googleSignIn = googleSignIn; this.googleSignInCallback = googleSignInCallback; } function googleSignIn(req, res, next) { passport = req._passport.instance; passport.authenticate('google',{scope: 'https://www.googleapis.com/auth/userinfo.email', state:"google",response_type:"token"}, function(err, user, info) { console.log(user); })(req,res,next); }; function googleSignInCallback(req, res,

Releasing Action: “Error submitting Assistant app” with no error shown

笑着哭i 提交于 2019-12-11 00:36:39
问题 I am trying to publish my first Action for Google Assistent but when trying to submit the app the console tells me "error submitting assistant app" but without any details whatsoever. Are there any logs or something which would give me more details on what I need to fix before I can submit? I'm lost. Thanks 回答1: This problem is being faced by many and it's really off putting to find that Dialogflow shows an error but doesn't specify details of the error which leaves developers scratching