actions-on-google

Google agent authorization flow doesn't proceed after the grantType=authorization_code request

末鹿安然 提交于 2019-12-12 10:43:33
问题 I am developing a API AI agent, and trying to implement the account linking functionality. The documentation at oauth2-codeflow is really helpful and I am able to create my oauth flow and test the same in Google playground. It all works fine till here. But when I am trying to test it in the web simulator, I keep getting the "It looks like your Agent account is not linked yet". I've followed the debug URL and proceeded with the login and authorization steps. As per this SO Question: I should

Creating Actions for Personal use only

半城伤御伤魂 提交于 2019-12-12 10:22:48
问题 My house has an home automation system from the 1960's that I have managed to tap into. I've been able to setup an interface which allows me to write adapters for various technologies such as Node Red, Alexa, and now Google Assistent. Given that this will only ever work with my house, I see no reason to make public Smart Home Actions. On Alexa's side, I can let these services stay in a Development state indefinitely which has worked great for the last 6 months. On Google's side, however, the

Webhook response with “suggestion chips”

独自空忆成欢 提交于 2019-12-12 05:19:08
问题 I would like to guide users based on webhook response with suggestions chips. From webhook sample, I see below structure: "fulfillment": { "speech": "Today in Boston: Fair, the temperature is 37 F", "source": "apiai-weather-webhook-sample", "displayText": "Today in Boston: Fair, the temperature is 37 F" } But, if I want to suggest users what next you can request to continue the conversation, then how do I pass suggestions chips in webhook response? 回答1: The response you displayed is the basic

Permission response not handled correctly

拥有回忆 提交于 2019-12-12 04:54:43
问题 Following this command in node.js using the ApiAiApp module: app.askForPermission('To know what day it is where you are', app.SupportedPermissions.DEVICE_PRECISE_LOCATION); I get the following in the Actions on Google Simulator. It correctly prompts for my response, but then is confused and doesn't recognize my answer! Is there something missing or broken in my API.AI agent? After the askForPermission , there are no other fulfillment calls. 回答1: The problem is likely that you need to set an

Play longer than 2 minutes audio with “Actions on Google”

隐身守侯 提交于 2019-12-12 04:43:39
问题 According to documentation, if you are using SSML for playing audio, you're limited to "120 seconds maximum duration". Is there other way to start playing longer media (audio) with "Actions on Google" SDK on Google Home? Example usage: Meditation sounds that can last longer than 2 minutes. 回答1: As responded by Leon Nicholls (Google Assistant Developer Programs Engineer), currently there is no way to play audio longer than 120 sec. However they are considering that in the future. 回答2: Please

Google assistant - Identify audio clip and take an action based on that

元气小坏坏 提交于 2019-12-11 19:04:04
问题 I'm trying to build a Google Assistant app to identify an audio clip that's playing from another device (TV, Radio, etc..) and take an action based on that Audio clip to play another audio clip, YouTube video or open a website in a browser. It will be great to know the possibility of implementing this feature and if there is any available Google resource/ Article that I can use. Thanks, 回答1: I'm sorry to inform you that as of now, you do not get access to the raw recordings of interactions

Getting device location as empty in dialogflow webhook request

时光毁灭记忆、已成空白 提交于 2019-12-11 18:12:33
问题 Hi i'm trying to get device location of the user by asking permission.It works fine for simulator but when i tested with google mini device getting undefined for device location in webhook request.Below is the code const {Permission} = require('actions-on-google'); const {WebhookClient} = require('dialogflow-fulfillment'); const agent = new WebhookClient({ request: req, response: res }); conv.ask(new Permission({context:'To Locate You',permissions:'DEVICE_COARSE_LOCATION'})); function

What does “Failed to parse Dialogflow response into AppResponse.” mean in Actions on Google

不羁的心 提交于 2019-12-11 17:56:21
问题 I am trying to get a simple webhook (written in PHP) to work with dialogflow/actions on google. I have a dialog flow intent labled "hello" which is linked to the "google assistant welcome" and dialog flow "welcome" events. it is set to enable webhook, and everything works correctly in the dialog flow test area. when i test it in google assistant, however, i get the following error: "MalformedResponse Failed to parse Dialogflow response into AppResponse." I have no clue what is wrong. Here is

Google Assistant training parse does not match data

一笑奈何 提交于 2019-12-11 17:55:53
问题 I'm befuddled as to how best fix this. In the training data, it looks like the Google agent parsed out the information correctly. But when I get it in my endpoint to fulfill the request, they do not match. There is no way for me to indicate that it made a mistake because according to the training information, it parsed everything correctly. Has anyone else encountered this, and if so, what was the solution? 回答1: Okay, I think I'm beginning to understand this a little. When this occurs, this

actions on google Testing instruction not found when trying to release alpha

本小妞迷上赌 提交于 2019-12-11 17:53:52
问题 I am trying to test my Dialogflow app on Actions on Google. I managed to release one alpha version without a problem but now when I try to release the second version it gives an error Testing instruction not found. And then nothing happens. I couldn't find this error anywhere, neither does it take to some dialog to fix it. What does this mean and how was I able to create one alpha version for the same project without error? 回答1: As we determined in the comments, you added account linking in