actions-on-google

Is there a way to get Media callbacks following a MediaResponse?

混江龙づ霸主 提交于 2019-12-11 17:25:06
问题 After sending a MediaResponse and starting to stream audio, if the user says "pause", the Assistant pauses the playback, is there a way to get a callback to that event for tracking playback position purposes? 回答1: That is not currently supported. The only events you can handle with a callback is FINISHED or STATUS_UNSPECIFIED. 来源: https://stackoverflow.com/questions/52669444/is-there-a-way-to-get-media-callbacks-following-a-mediaresponse

How do I get parameter value from arguments?

早过忘川 提交于 2019-12-11 16:59:22
问题 I am trying to pass parameter value from google actions to my fulfillment. However, I am not able to get only the parameter value. How should I able to get only "Asda" under newName field from the argument? Do I have to extract it from conv (like conv.inputs.arguments[1].rawText )? if like this, then what is the purpose of having a name for the parameter? Request JSON from Google Actions: { "user": { "userId": "ABwppHEAPgcgb2yFUFURYFEJGg4VdAVcL9UKO9cS7a7rVfAMr9ht67LzgrmMseTvb5mmJjbjj7UV",

Is there a table component in actions-on-google?

ⅰ亾dé卋堺 提交于 2019-12-11 16:56:51
问题 Is it possible to implement a table for displaying information using actions-on-google and dialogflow? AFAIK there is insufficient markdown in simple response to output a table, and my best bet is to write the column name in-line on each text row. Thanks. 回答1: In short - no. Most visual response formats that Actions provide are meant to be visual counterparts of the voice component, sometimes supplementing it in ways that are distinctly visual. Most tables would be too large to be part of a

actions_intent_SIGN_IN doesn't have profile data under conv->user->profile

北城余情 提交于 2019-12-11 16:48:28
问题 I am facing this issue in integrating Google SignIn flow. The problem I am facing is that after the user successfully sign in program control trigger actions_intent_SIGN_IN intent in the code. From where I can get user details but I am noticing that sometimes conv->user->profile doesn't have the profile information while other time it has. Also When it doesn't have profile information, next time when I invoke some other intent it gets the user token. This is the Payload I am getting on SignIn

Using app.ask more than once function

不羁岁月 提交于 2019-12-11 16:45:53
问题 Within my function I would like to use app.ask('blah blah blah'); more than once. However when testing it, only the first app.ask() is spoken for which I expected it to also speak out the 2nd response too. The function looks something like this: for(var i = 0; i < array.length; i++) { if (array == ##) { app.ask(response 1) } else { app.ask(response 2) } } 回答1: That is correct - you can only use app.ask() once since that will send the response to the user. Once you send the response to the

Retrieving email with Google Sign In for Google Home

折月煮酒 提交于 2019-12-11 16:14:33
问题 so I've beentrying to retrieve the email associated with the current user using the google home. Documentation is kind of hard to find on the subject and from what I could gather, I should be able to use the SignIn class from actions-on-google. So here is my setup. DialogFlow -> Created two intent, one to start the sign in process, the other to follow up on the process. (The second one has the event 'actions_intent_SIGN_IN' to it.) Actions on google config : Account Linking. Selected - Yes,

OAuth Implicit flow Access Token expires every hour

ぐ巨炮叔叔 提交于 2019-12-11 16:10:56
问题 I'm having a problem with the OAuth Implicit flow for the Google Assistant. I managed to set up a OAuth server and got it to work. Here's the flow: The user Is redirected to my endpoint, authenticates with a Google account, and gets send back to the Assistant with an Acces Token and result code=SUCCES. In my fullfilment I get the users email address by doing a https request to: https://www.googleapis.com/plus/v1/people/me?access_token=access_token . I then find the matching user in my

Intents are not showing up in Google Actions console Even after adding them to implicit invocation in Dialog Flow

元气小坏坏 提交于 2019-12-11 15:38:59
问题 I have added the intent "Recent News" Under implicit invocation in Dialog Flow. But even after doing that I'm unable to see that action in my Google actions console. Below are the images of my Google Actions console of the project and the dialog flow Pop where I have added the intent to implicit invocation. 回答1: I haven't been able to duplicate the problem, so a few things to try to make sure it does show up in the console: On the Dialogflow Integration page, click on the "Test" button at the

User storage not persisting

孤者浪人 提交于 2019-12-11 14:59:29
问题 I am trying to keep a hold on values grabbed during the conversation and make it available on the next conversations on the flow using user storage. However I see empty user storage on my next intent. Can someone please advise? function askAccountNumber(agent){ var number = agent.parameters.account_number; let conv = agent.conv(); conv.user.storage.account_number = number; agent.add('Great, your account number is ' + tmp); agent.add('Welcome to the Enacomm banking application. What would you

Share button not found (anymore) in Google smart home action test simulator

家住魔仙堡 提交于 2019-12-11 14:31:27
问题 We are developing a google smart home action. As per this and this guides we added testers as viewer and shared action and it worked few months ago. Now we don't see this share button in our simulator anymore. Wonder how to share with testers anymore? As guides still wants us to share the project through this button. Screenshot from documentations: Screenshot of my simulator: We are able to add the tester in IAM project, but tester is unable to see the action like owner does ([test] ABC agent