actions-on-google

Google Home Authorization Code and Authentication with Google Account

两盒软妹~` 提交于 2019-12-17 04:35:14
问题 I am currently attempting to authenticate a Google account with a Google Home Action and retrieve the Authorization Code from the credentials. I do not want the access token, but the authorization code . I have looked at this post and discovered that Google has updated their policy and no longer allow their own OAuth endpoints to be used for the account linking authorization code flow: When implementing account linking using OAuth, you must own your OAuth endpoint That being said, What is the

Dialogflow, Google Account Linking and ASP.NET Core API (Webhook)

断了今生、忘了曾经 提交于 2019-12-14 03:42:21
问题 I am a student working on a NLP app for the Google Home for my senior design project. I am wondering specifically: What is the correct way to implement Google Account Linking and what does Google Account linking provide for registering/authenticating users via Dialogflow (i.e. what the dataflow looks like from initial query to Google logging in, back to Dialogflow, then to my ASP.NET Core API handler). Does Account Linking return a bearer token in the header back to Dialogflow and thus, back

Malformed Response 'final_response' must be set

╄→尐↘猪︶ㄣ 提交于 2019-12-14 02:38:40
问题 I'm using DialogFlow's webhook thing and when I send my JSON response as follows: { "fulfillmentText": "This is a text response", "source": "example.com", "payload": { "google": { "richResponse": { "items": [ { "simpleResponse": { "textToSpeech": "this is a simple response" } } ] } } } } but I get the error MalformedResponse 'final_response' must be set. after the webserver responds. 回答1: That JSON response is valid for V2 of the Dialogflow webhook fulfillment protocol. Make sure you've done

Reprompt user if no response in google action?

断了今生、忘了曾经 提交于 2019-12-14 02:21:52
问题 I am trying to make reprompts work for my action built using the dialogflow SDK. I have an intent 'answer-question' , however I would like a fallback intent to trigger if the user does not reply atall (after a certain unit of time if possible). I have tried to implement the instructions in this guide: reprompts google action So I created a custom fallback intent to my answer-question intent, which has an event of actions_intent_NO_INPUT and a context of answer-question-followup However when

askWithList on Actions on Google

ε祈祈猫儿з 提交于 2019-12-14 01:15:01
问题 I'm following the sample code for Action on Google responses at the following link: https://developers.google.com/actions/assistant/responses I want the list response to appear when the user initiates the text intent, but all I get is "Your App isn’t responding right now. Try again soon." Here is the code that I'm using (it's copy and paste for the most part from the link): function textIntent(app) { app.askWithList(app.buildRichResponse() .addSimpleResponse('Alright') .addSuggestions( [

Api.ai request body does not contain the originalRequest object from which the access_token can be sent to the fulfillment webhook

喜欢而已 提交于 2019-12-13 21:41:18
问题 Api.ai request body does not contain the originalRequest object from which the access_token can be sent to the fulfillment webhook. Can anybody please let me know why I am not seeing the originalRequest body? I have successfully completed the Account Linking for my app and in fact, the actions web simulator does show the expected access_token in the debug window but the Api.ai json request body does not have it. I am using python for fulfillment logic. Any help on this is greatly appreciated.

conv.user.storage value not saving across sessions when invoking via speech

余生长醉 提交于 2019-12-13 17:06:02
问题 I am trying to use the conv.user.storage to save information across sessions for my user, namely I want to give him an ID. When I invoke my action via keyboard, it will save my user storage ID fine, and when I run the action again from my developer console, it will console.log the saved ID in the session. However, when I invoke the action via speech, it will not save the storage value for the next session. const generateRandomId = require('uuid/v4'); app.intent('Default Welcome Intent',(conv)

How can I run my development action on my Google Home?

孤街浪徒 提交于 2019-12-13 16:26:56
问题 I built an action and it works well through the Home Simulator but I am not ready to make it available publicly yet. Is it possible for me to put it on my Google Home device and also share it with a few coworkers? If so, how? Thanks in advance! 回答1: If you are developing your agent in api.ai you can go to the "Interactions" section and enable "Google Home". There you enable Google home and go to the settings. There you can authorize api.ai and enable the preview. Now you should be able to

Dialogflow v2 error “MalformedResponse 'final_response' must be set”

谁说胖子不能爱 提交于 2019-12-13 16:06:48
问题 I am getting this error only when using the simulator/google assistant. When I use the Slack integration or test within DialogFlow then it works perfectly. I checked this question about settings in DialogFlow, but that wasn't my issue. I checked this question but because I use python in my webhook, I can't be sure whether that would solve it for me or not. I am doing the following: First, the user invokes any one of my intents which are connected through a webhook to my python code. Call this

Got the “My test app isn't responding right now. Try again soon.” error message even a clean start from Google Assistant Simulator

狂风中的少年 提交于 2019-12-13 11:50:25
问题 I am still quite new to this topic, so sorry if I didn't provide enough information. For the first time, I copoed everything from https://developers.google.com/actions/dialogflow/first-app to learn about it, which works great. After, I tried to create my own one, then at the end, I got this message "My test app isn't responding right now. Try again soon." from https://console.actions.google.com/project/[[PROJECT-ID]]/simulator/. Therefore, I tried to delete everything and make a complete new