actions-on-google

How to create suggested input in actions on google while creating an google assistant app in dialogflow?

浪尽此生 提交于 2019-12-10 10:29:02
问题 I want to put a prompt to allow user to choose while responding in google assistant app. I am creating this in dialog flow. How do I do this? 回答1: If you want to add "suggested input" items into your conversational experience as they show in the simulator or on a screen device, you are talking about "Suggestion Chips". Here is what that looks like in the simulator: Using Dialogflow you can go into an Intent, and go to Responses. Go to the Google Assistant tab. Add a response and choose the

Dialogflow dynamic enity issue

余生颓废 提交于 2019-12-10 10:19:55
问题 I am trying to create an Actions on Google app using Dialogflow (api.ai). I need to get the train status. So my entity will be train number or train name. There is a lot of train names. So I can't add the entity values manually. How can i add entity values dynamically to the console? 回答1: You can add large sets of values and synonyms either JSON or CVS formatted by: Directly pasting them in the Entity raw mode JSON or CSV fields. Uploading a JSON or CSV formatted file entity. Make POST calls

Google Assistant flow with multiple actions_intent_OPTION handlers

吃可爱长大的小学妹 提交于 2019-12-09 21:15:22
问题 I have webhooks configured through Dialogflow for a template chatbot UI starter project I'm making on Github. I have a bot integrated through Facebook Messenger and Google Assistant. All of Facebook works fine because the actions send back strings and it's easy to handle. But when Google Assistant tries to handle items of "@type": "type.googleapis.com/google.actions.v2.OptionValueSpec", actions_intent_OPTION is needed on the event in Dialogflow to handle the response. If I have just one in my

“App isn't installed” for any Actions app that requires Account Linking

假装没事ソ 提交于 2019-12-09 18:49:38
问题 I'm working on an Assistant app which requires account linking, and I've gotten to the step where, if I say " talk to [my app name] " I get back a card with the text " Link [my app name] to Google ". Clicking it however only gives me an (improperly formatted) toast with the text " App isn't installed ". I thought I did something wrong, so I tested other apps that require account linking. Alarm.com, Mail Buddy, they all behave the same way. How is a user supposed to "install" these apps ? 回答1:

Getting “Sorry, I didn't get any response.” message when I tried Hand-off feature

痴心易碎 提交于 2019-12-09 18:34:11
问题 When I tried Multi-surface conversations (Hand-off from Google Home to Android Google Assistant), I'm getting "Sorry, I didn't get any response." I'm using Action SDK and locale is "ja". Here is my response: { "conversationToken": "(token)", "expectUserResponse": true, "isInSandbox": true, "expectedInputs": [ { "possibleIntents": [ { "intent": "actions.intent.NEW_SURFACE", "inputValueData": { "@type": "type.googleapis.com/google.actions.v2.NewSurfaceValueSpec", "context": "Sure, I have some

Change language of actions-on-google websimulation or test google home in German

帅比萌擦擦* 提交于 2019-12-09 04:44:56
问题 I am using actions on google with api.ai. I am able to create a api.ai bot in a language other than English, but the web simulator of actions-on-google (https://developers.google.com/actions/tools/web-simulator) seems to work in English only? Is there any option to change the language there or a time schedule when other languages (in my case German) will be available in the simulator? Currently testing a non English action is impossible, because the web simulator does not even forward

How do I set context and followup event in one intent?

我的梦境 提交于 2019-12-09 04:36:32
I am trying to jump to a random question with followup event, and at the same time store the question number in the context. But dialogflow only jumps to the event without storing the question number. Is there a way to do followup event and store a context in one intent? app.intent('Quiz - random', (conv) => { let rand = Math.floor(Math.random() * quiz_len) + 1; conv.data.current_qns = rand; conv.followup(`quiz-question${rand}`); }); Not really. The point of using conv.followup() is to make it as if the new Intent is the one that was actually triggered by the user. Remember - Intents represent

Null response for name and email entities

泪湿孤枕 提交于 2019-12-09 01:04:59
问题 I tried inbuilt variable "user" methods, $user.name and $user.email in text response of API.AI, to greet user and show email-Id. Is there any inbuilt variable name user? Example(User sign-up with Gmail), Response-Code, I had tried in API.AI's text-response dialog box: Hi, $user.firstname This is your $user.email Expected: User: Hi! My-Assistant-App: Hi, Varun. User: Show my email-id My-Assistant-App: This is your ******@gmail.com Output, I am getting in the My-Assistant-App: User: Hi! My

Force user to relink his/her account

狂风中的少年 提交于 2019-12-09 00:55:16
问题 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

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

倾然丶 夕夏残阳落幕 提交于 2019-12-08 19:59:18
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 bananas. Does anyone have any suggestions on how to get it to appear? The problem is that I was not