google-home

redirect_uri_mismatch when OAuth2 account linking from Google Home Simulator

谁说胖子不能爱 提交于 2019-11-30 23:06:17
I am developing an account linking integration for an "Actions on Google" integration with API.AI for use with Google Home. When I test this agent in the simulator ( https://developers.google.com/actions/tools/web-simulator ) As expected, this is my response: { "response": "It looks like your conference manager account is not linked yet. You can link conference manager to your Google Account from the Google Home app.", "audioResponse": "//NExAARC..."content_copy, "debugInfo": { "sharedDebugInfo": [ { "name": "Account Linking Url", "debugInfo": "https://assistant.google.com/services/auth

Force user to relink his/her account

ε祈祈猫儿з 提交于 2019-11-30 22:42:49
Very simple use case explaining my problem: Given my app asks for a pin for some interactions. Now the user gives me three times a wrong pin. Then, I want to reset his access and force him to re-link his account. I can do this pretty easily in my internal database, but I need a way to tell google that his currently used token is not valid anymore. Else, Google Assistant resists in sending me the now rejected token. Update 2018-03-01 : With the new built-in intents/events, I also tried sending the actions_intent_SIGN_IN event via the followupEvent attribute, but this only lead google assistant

How to get user's unique identity from google home's voice match profile?

时光怂恿深爱的人放手 提交于 2019-11-30 19:46:35
问题 I want to develop an application(action) on Google Home, which will return some confidential information to user. So, I can't authenticate the user based on account linking as that device can be used by any person in the room. How can I get user's unique identity(may be email id) from voice match profile? 回答1: Account Linking is tied to the specific user that says "Ok Google" or "Hey Google" to invoke your Action. If the user that says it does not have a registered voice on the device they

How to fetch device location using API AI?

北战南征 提交于 2019-11-30 19:14:20
I am using GUI tools provided by API AI to create Actions. Is it possible to fetch device location? I have heard that this is possible by requesting permissions. Is this documented anywhere? An example/code snippet will be very useful. The documentation is a bit unclear. I hope this can help someone. All you have to do is create a child fallback intent for the intent you are requesting permissions from. To do so you need to click on the "Add follow-up intent" link on your intent. Note that the link will only appear when you hover it. Select the fallback option from the dropdown list and a

How to fetch device location using API AI?

亡梦爱人 提交于 2019-11-30 03:43:48
问题 I am using GUI tools provided by API AI to create Actions. Is it possible to fetch device location? I have heard that this is possible by requesting permissions. Is this documented anywhere? An example/code snippet will be very useful. 回答1: The documentation is a bit unclear. I hope this can help someone. All you have to do is create a child fallback intent for the intent you are requesting permissions from. To do so you need to click on the "Add follow-up intent" link on your intent. Note

Is it possible to play audio file or stream?

ぃ、小莉子 提交于 2019-11-29 12:19:54
Is it possible to play audio file or stream using actions-on-google-nodejs library? Nick Felker Using SSML you can return an audio clip up to 120s. <speak> <audio src="https://actions.google.com/sounds/v1/animals/cat_purr_close.ogg"> <desc>a cat purring</desc> PURR (sound didn't load) </audio> </speak> Edit If you want to play audio the mp3 file (over 120s), you need to use Media Responses if (!conv.surface.capabilities.has('actions.capability.MEDIA_RESPONSE_AUDIO')) { conv.ask('Sorry, this device does not support audio playback.'); return; } conv.ask(new MediaObject({ name: 'Jazz in Paris',

Get email from user using Google actions

泄露秘密 提交于 2019-11-29 00:32:02
I want to recieve the user email using Google Actions as documented here but docs talks about EMAIL permission, but when I read the permission docs here I can't find any EMAIL permission. Any help? How can I receive the user email? Ya, unfortunately the Assistant's SDK doesn't give you the email address. But if you implement account linking (like Ahmed mentioned) and use the Streamlined Flows, then you'll be getting the email provided to you; you just need to use the jsonwebtoken library and you can decode the assertion JWT and grab the email address. That being said, this happens during "sign

Sorry, this action is not available in simulation

混江龙づ霸主 提交于 2019-11-28 23:23:24
My test invocation name is "Mrs Tang", so i input "Talk to Mrs Tang", but it responds "Sorry, this action is not available in simulation"... Does anybody know How can I resolve this error? According to the doc : Turn on the Web & App Activity, Device Information, and Voice & Audio Activity permissions on the Activity controls page for your Google account. You need to do this to use the Actions Simulator, which lets you test your actions on the web without a hardware device. And I had do what Jeremy Gordon suggested. To add a second google account in the GCP IAM console with a viewer action

Get email from user using Google actions

时间秒杀一切 提交于 2019-11-27 15:21:42
问题 I want to recieve the user email using Google Actions as documented here but docs talks about EMAIL permission, but when I read the permission docs here I can't find any EMAIL permission. Any help? How can I receive the user email? 回答1: Ya, unfortunately the Assistant's SDK doesn't give you the email address. But if you implement account linking (like Ahmed mentioned) and use the Streamlined Flows, then you'll be getting the email provided to you; you just need to use the jsonwebtoken library

How to make asynchronous calls from external services to actions on google?

随声附和 提交于 2019-11-27 08:38:07
问题 I'm trying to connect Google Home to an external chatbot with actionssdk. I have an API that take user inputs and send them to my chatbot with webhook, but my chatbot make a response calling another endpoint of my API in an async way, and I can't show the response in actions on Google or Google Home. I create an actionssdkApp. const { actionssdk, SimpleResponse, Image, } = require('actions-on-google'); var app = actionssdk(); var express_app = express(); My API has 2 endpoints. One of them is