actions-on-google

How to get Session Entities to work as part of Dialogflow detect intent

懵懂的女人 提交于 2020-01-01 12:06:27
问题 I have an Entity that is supposed to be updated on a per-session basis with user-specific information. This had worked when I was using Dialogflow v1, and I thought it had worked with v2, but I'm now having significant problems with it. I believe I am setting the Session Entity information correctly, but for the Intent that uses it, it only matches when a value from the Developer Entity is used. How can I get it to use the Session Entity? Am I doing something wrong when updating it? Am I

why I can't use google action in web simulator

白昼怎懂夜的黑 提交于 2020-01-01 04:16:30
问题 Does anyone know why my action can NOT use in web simulator?? I set my invocation name for testing as "test", and in web simulator , I try to use my action by input "Talk to test", but it told me "Sorry, this action is not available in simulation"... Is there anything wrong with me ?? 回答1: This bug should be resolved now. If you are still having this problem, you should try pairing your account with an actual device first. The issue was resolved for me by signing in to the Google Home app on

Google Action should play radio stream

爷,独闯天下 提交于 2019-12-31 03:47:05
问题 I need to develop a Google Action which streams an audio/radio stream. i thought about media response. But the documentation says: "Audio for playback must be in a correctly formatted .mp3 file. Live streaming is not supported." Documentation Can someone give me an hint, what i have to do to stream an audio-stream? i found a german google action "baden fm" which streams their radio. But not sure how they do it. Kind Regards Stefan 回答1: The only ways to do this currently: Stream it in chunks

dialogflow trigger event from webhook

淺唱寂寞╮ 提交于 2019-12-29 01:44:20
问题 I have an intent I1 with action x and an intent I2 which calls a webhook. Is there a way to trigger x from the I2 webhook response, in order to "redirect" the user to I1 after the webhook has given its answer? Is there a way to do so from the dialogflow console? Edit: added diagram for further clarification. What is the correct way to handle the "no" followup part? 回答1: Intents represent a user's input (typically what they say), not what you are "doing". Although you can redirect from a

How to extract the email Id and user name, which is linked with the google home , at the fullfilment of the google dialogflow flow

爷,独闯天下 提交于 2019-12-27 01:58:46
问题 I want to get the linked email id with google home , when user triggers an intent. I have followed the following link How to get user's unique identity from google home's voice match profile? I am following Rajat's answer and have done till the 2nd step. But I am not getting the accessToken in the user's object. I neeed this token to get the user details from this api endpoint: "https://www.googleapis.com/oauth2/v1/userinfo?access_token=" Instead I am getting this user object from the

How do I deploy a Actions-On-Google on Heroku?

天大地大妈咪最大 提交于 2019-12-25 09:28:30
问题 I'm experimenting with my Google Home and I read a lot about actions on google and was able to deploy it to Google Cloud Services, but how does the Google Home know where my application is if it's on Heroku? Does it have something to do with creds.data and the Actions-On-Google-nodejs SDK ? 回答1: Here is a steps to deploy an heroku app with google home. Let us take an example provided by google. First download git in your system git-scm.com/download/win Download Heroku CLI from heroku.com

How to trigger multiple Intent in Webhook api.ai?

柔情痞子 提交于 2019-12-25 02:16:12
问题 I am developing an api.ai bot that will search for the Vendor name in the database. a ) if vendor exist -> provide username -> provide password b) if vendor doesn't exist -> (add vendor -> yes ) or (add vendor -> No) I have a webhook which is checking the vendor exist in database or not . Bot Scenario: (Example ) Case1: User: Do Alpha exist as a vendor? Bot: yes, Alpha exist in Database. Please Provide User Name. User: abc@gmail.com Bot: Please Provide Password? User: abcdef Bot : Welcome

DialogFlow: why does this Webhook Response fail with 'empty speech response'

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-25 01:48:49
问题 Why does this specific webhook response (passed by DialogFlow back to Google Assistant) { "fulfillmentMessages" : [ { "payload" : { "google" : { "richResponse" : { "items" : [ { "simpleResponse" : { "textToSpeech" : "And are you male or female?" } } ] }, "expectUserResponse" : true } }, "text" : { "text" : [ "And are you male or female?" ] } }, { "quickReplies" : { "quickReplies" : [ "Male", "Female" ] } } ], "fulfillmentText" : "And are you male or female?", "outputContexts" : [ ... ] }

Actions on Google won't respond to explicit invocations

会有一股神秘感。 提交于 2019-12-25 00:22:14
问题 I'm developing an Action, let's call it "foo". It's a grocery list, so users should be able to explicitly invoke it like so: "ask foo to add milk" (fails) "ask foo add milk" (works, but grammatically awful) "tell foo add milk" (fails, even though it's basically identical to the above?) "talk to foo" ... "add milk" (works, but awkward) I've defined "add {item} to my foo list" and "add {item}" (as well as many others) as training phrases in Dialogflow. So it seems like everything should be

function returning too early before filter and reduce finish

…衆ロ難τιáo~ 提交于 2019-12-24 22:16:37
问题 I have the following function, which is supposed to check through an array, sum up some values and then return a string with the sum (for Dialogflow/Google Assitant): function howMuch(app) { return bank.getTurnovers(accessToken) .then((result) => { const { turnovers } = JSON.parse(result); let sum = turnovers .filter((i) => { if (i.tags.includes(tag)) { console.log(i); // correctly prints relevant elements return i; } }) .reduce((prev, j) => { console.log(prev, j.amount) // correctly prints 0