actions-on-google

“MalformedResponse: Failed to parse Dialogflow response into AppResponse because of empty speech response” during OAuth Account Linking flow

自作多情 提交于 2019-12-11 00:05:47
问题 We are implementing Actions on Google with Dialogflow fulfillment using the newly released Java/Kotlin API. It's called Speech Bank . While going through the Account Linking process testing on the smartphone, the user is getting MalformedResponse error preventing the completion of the flow and consequent successful hand-off back to the regular flow. The logs (detailed below) contain the MalformedResponse: Failed to parse Dialogflow response into AppResponse because of empty speech response

Actions on Google - Mac gactions won't run

久未见 提交于 2019-12-10 23:15:50
问题 I am trying to set up the Actions sdk as described here: https://developers.google.com/actions/sdk I downloaded gactions for a Mac 64-bit machine. If I try to open the file, it opens as text. When I am in the folder containing gactions, I try to run gactions init and get the response: -bash: gactions: command not found Any thoughts? 回答1: Try this: Download Google gactions cli from gaction CLI On Mac and Linux, to make the binary executable run from terminal: $ cd folder_with_gactions $ chmod

how to make a dialogflow google agent respond and acknowledge on firebase's field change

北战南征 提交于 2019-12-10 22:52:53
问题 'use strict'; const functions = require('firebase-functions'); const admin = require('firebase-admin'); const {WebhookClient} = require('dialogflow-fulfillment'); process.env.DEBUG = 'dialogflow:*'; // enables lib debugging statements admin.initializeApp({ credential: admin.credential.applicationDefault(), databaseURL: "https://my_db.firebaseio.com/", }); var database = admin.database(); var transition = database.ref('/stage'); exports.dialogflowFirebaseFulfillment = functions.https.onRequest

How do you get arguments of correct type in Google Actions SDK?

烂漫一生 提交于 2019-12-10 22:46:22
问题 Google's action api seems to find the right pattern in my intent and bind to the right type, but does not return the parsed type data. For example, if I have the intent defined below in my actions.json file: { "description": "", "initialTrigger": { "intent": "RepeatIntent", "queryPatterns": [ { "queryPattern": "say $SchemaOrg_Number:mynumber" }, { "queryPattern": "say $SchemaOrg_Date:mydate" }, { "queryPattern": "say $SchemaOrg_Time:mytime" } ] }, "httpExecution": { "url": "https://myurl

Google Assistant advanced responses with API.AI

懵懂的女人 提交于 2019-12-10 22:28:46
问题 I already have a webhook, and I am using it to change the assistant answers. But I can't figure out how to send a suggestions card or a link, as you can send them from API.AI web GUI ( From the add content button ). Should I send them as a JSON object under the data name. API.AI webhook documentation 回答1: The general form for the JSON body of a response to a API.AI fulfillment webhook call that will include a Action on Google rich response for a simple response and a card is below. If you

the parameter “ state ” must be set in query string in result what should i do further

こ雲淡風輕ζ 提交于 2019-12-10 22:20:00
问题 I did a smart home google action connection. web app to google home linked and authorized. I followed the smart home google action. there needed the state. What is the state? the given below string is an example to authorize but I do not know about state string from where I add state string and what is the purpose of it? GET https://myservice.example.com/auth?client_id=GOOGLE_CLIENT_ID&redirect_uri=REDIRECT_URI&state=STATE_STRING&response_type=token 回答1: You should get the state from the

Handle audio play completion callback in dialogflow (Media responses)

假如想象 提交于 2019-12-10 18:38:51
问题 I'm handling an intent by playing a MediaObject . I want to create an intent handler that will catch the callback of media play completion, the documentation shows an example on how to write fulfillment code to handle it. Building your fulfillment The code snippet below shows how you might write the fulfillment code for your Action. If you're using Dialogflow, replace actions.intent.MEDIA_STATUS with the action name specified in the intent which receives the actions_intent_MEDIA_STATUS event,

Save granted permissions across conversations in a Actions on Google app

狂风中的少年 提交于 2019-12-10 15:55:07
问题 i programming a Actions on Google app where i request the user for permission. All works fine. Now i want to ask the user for permission in his first conversation. When he starts the conversation a second time the actions app should remember that this user granted permissions in the conversation before. So its more comfortable when the user did not have to accept permission every time i starts the conversation. Is there any way to make this possible? 回答1: Short answer: you can't. However ,

How to add audio from firebase storage in actions on Google?

 ̄綄美尐妖づ 提交于 2019-12-10 14:31:35
问题 To be very clear I want to know how to add audio from firebase storage in actions on Google? I've been stuck in this question since few weeks. I've uploaded my audio in the firebase storage and from it I have copied the link provided by Firebase and and pasted the audio's URL in the given format in speech output. Check how I did:- <speak> <audio src="https://firebasestorage.googleapis.com/v0/b/enrich-58fdf.appspot.com/o/xxx.mp3?alt=media&token=aabcd430-9d46-45f6-ad21-fdca0895123f"> </audio> <

Error “Empty speech response”

血红的双手。 提交于 2019-12-10 13:07:45
问题 I tried to connect DialogFlow and Actions on Google , so I created some intents, connected the services, added explicit and implicit invocations etc, but when I try the bot in the simulator https://console.actions.google.com/project/[projectId]/simulator/ it always gives me the error: "Failed to parse Dialogflow response into AppResponse, exception thrown with message: Empty speech response " even tough inputType was "KEYBOARD". What I tried so far: I did set "Response from this tab will be