actions-on-google

How to develop google actions locally?

≡放荡痞女 提交于 2019-12-08 18:09:26
My question might sound basic or lame to you but I really have zero experience with this. I am so new to Google Actions and I don't have that much idea with Javascript. My question is how do I develop a Google Action without using the online editor google provided? Can you please narrate it to me step by step? I tried enrolling myself in codelab exercises that I hope might help me but in the codelab exercise, there was already a bunch of codes I cloned from github and that was what I used to make it all work. But now that I want to code for our real project, I don't know how to start from

Bilingual spoken flash cards for Google Assistant

自闭症网瘾萝莉.ら 提交于 2019-12-08 17:38:09
问题 I am developing a bilingual (Japanese/English) flashcard app for the Google Assistant so that it would work for Google Home. The google assistant will say a word in Japanese, and check that the user replies with the correct translation in English, or vice-versa. Simply starting from Google Sheet data does not work, since the assistant is not able to read the Japanese input. Is there a way to achieve this? Essentially, the question is, is it possible to alternate between text-to-speech in one

How to solve MalformedResponse 'final_response' must be set. error in action simulator

落花浮王杯 提交于 2019-12-08 17:11:30
问题 Hi, When I try to test my Test app, it gets stopped and display My test app isn't responding right now. Try again soon . When I check validation error tab I notice I got this error MalformedResponse 'final_response' must be set. here is the Debug info: <code> { "audioResponse": "//NExAAQMQ...", "conversationToken": "GidzaW11bG...", "debugInfo": { "agentToAssistantDebug": { "agentToAssistantJson": "{}" }, "assistantToAgentDebug": { "assistantToAgentJson": "{\"user\":{\"userId\":\

Actions on Google + Account Linking with Firebase

只谈情不闲聊 提交于 2019-12-08 16:05:43
问题 I'm working on a Google home application using an external API. I need the current user to be logged in and linked with the external API (access/refresh token provided by the external API). My approach: Setting up a firebase application The google home app lives within the functions folder. I would set up a page where the user would first sign in with his Google account using firebase.auth(), then his external API account (using the external API Oauth). I would then create an entry in the

Account Linking on Actions on Google Step by step

对着背影说爱祢 提交于 2019-12-08 14:15:49
问题 I'm new at Actions on Google and I've never done account linking. I'd like to link my web server with Google account. Can anyone explain me how to do account linking step by step. I found link https://developers.google.com/actions/develop/identity/account-linking but when I run simulation it says "It looks like your apial account is not linked yet. You can link apial to your Google Account from the Google Home app.". What am I supposed to do next? 回答1: In the web simulator, when it states "It

How long does it take for the app to time out and exit the conversation

半城伤御伤魂 提交于 2019-12-08 13:31:25
问题 How long does it take for the google assistant agent to timeout and end/leave the conversation? I configured a chat bot with actions-on-google where The GA would ask user to choose which product to buy from a List. Then the user locked the phone's screen After a few minutes, the user reactivates google assistant again User selects one of the product from the list by scrolling up the history The transaction proceeds I expected the app to exit the conversation after a certain duration, which

I can not get information with “DialogflowApp.getUser” method

ⅰ亾dé卋堺 提交于 2019-12-08 11:58:54
问题 https://developers.google.com/actions/reference/nodejs/ApiAiApp I'd like to obtain an access token on Dialogflow by referring to the above official website, but the execution result of DialogflowApp.getUser() will be null. Account linking is set up and on the client side it is certified with a Google Account. AssistantToAgentDebug.assistantToAgentJson.user on the DEBUG tab of DialogFlow Simulator contains a value. Also, I can get an access token by referring req.body.originalRequest.data.user

TypeError: handler is not a function using Firebase and DialogFlow with Google Actions

空扰寡人 提交于 2019-12-08 07:56:19
问题 I keep getting this error message in Firebase functions/logs dialogflowFirebaseFulfillment TypeError: handler is not a function at cloudFunction (/srv/node_modules/firebase-functions/lib/providers/https.js:57:9) at /worker/worker.js:783:7 at /worker/worker.js:766:11 at _combinedTickCallback (internal/process/next_tick.js:132:7) at process._tickDomainCallback (internal/process/next_tick.js:219:9) Originally my actions on google project was working fine, I just got mp3s playing, referencing new

Why are none of my Google Actions Alpha releases appearing in the Google Assitant store?

China☆狼群 提交于 2019-12-08 07:37:43
问题 In my developer account, I can succesfully test the app using the simulator. I also sucessfully deployed an Alpha version, and waited 24 hours. However the opt-in link doesn't work. Every time I navigate to it, I see: We can't find what you're looking for at the moment. Please try again later. YES, I have the activity controls all enabled YES, I have a google home device connected to this account YES, I am the developer of this action, and have verified permissions in IAM This is driving me

Error : agent.add() function is not working i.e not getting output value to user.In Google assistant

你说的曾经没有我的故事 提交于 2019-12-08 06:48:06
问题 Following code is working. But agent.add() function is not working, i.e not getting output value to user. var ref = admin.database().ref().child("Table/"); var query = ref.orderByChild("RegId").equalTo(RegId.toString()); query.once("value", function(snapshot) { snapshot.forEach(function(child) { console.log(child.key); console.log("FirstName: " + child.val().FirstName); console.log("Mobile: " + child.val().MobileNumber); console.log("Email: " + child.val().EmailId); var name = snapshot.child(