dialogflow

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

Why does the “Intention Priority” not work?

社会主义新天地 提交于 2019-12-11 14:58:43
问题 Docs: https://dialogflow.com/docs/intents My example: https://ufile.io/tds8e (for restore) It primarily consists of a welcome intent that asks a question, and two followup intents. The three relevant intents look like this: Desired scenario: I'm ready. Ask your questions I don't know Ok, this is a little hint: TRIangle I don't know Oh, you are hopeless. Three, three angles, stupid man. Now the following happens: I'm ready. Ask your questions I don't know Ok, this is a little hint: TRIangle I

Redirect user to the Default Welcome Intent when he says “cancel” or “exit”

十年热恋 提交于 2019-12-11 13:31:37
问题 I'm developing a Dialogflow application for Google Assitant. In that, if I say "Cancel" it directly calls the exit_conversation intent where I've specified actions_intent_CANCEL event. So it displays the output specified in that intent and bot exit the conversation. Instead of exiting the Bot I need to open Default Welcome Intent. Is there any way to do that? P.S. I'm using Python fulfillment as a backend for this bot. 回答1: In short - no, you can't do that. You're essentially asking that,

Simulator not “talking” in code lab: Build Actions for the Google Assistant (Level 1)

对着背影说爱祢 提交于 2019-12-11 13:08:46
问题 If I follow the instructions for this code lab up until "Debug your Action" at the bottom of step 4, I get the bizarre behavior pictured below. Does anyone know why? Note that the display shows a question, but the audio never plays (look on left to see it's absence). I have reproduced this twice now, once yesterday and again today (re-creating the entire project from scratch following the code lab instructions, each time). This appears to be a bug in the "phone" surface only. Switching to

Follow up intent for NO INPUT not firing with dialogflow

久未见 提交于 2019-12-11 11:03:46
问题 I have a "book reading" action and I tried to add a follow up intent for my read intent to reprompt a user if there was no response. Following the doc https://developers.google.com/actions/assistant/reprompts - my webhook never gets called. However, if I add the no input handler as a main intent, I do get this event! Is this a bug or did I miss something. 回答1: The no-input event is a little unusual, since it is handled differently internally compared to many other events. It would not

Dialogflow composite entities with random text

拥有回忆 提交于 2019-12-11 10:54:29
问题 I am building a shopping list Voice UI bot with Dialogflow. I ran into some issues with linking the number and the product together. I found 1 solution here How can I create a list of a combination of attributes in API.AI (Dialogflow) The problem with this solution is that we have to specify all the products available. How can I create a shopping list in dialogflow without having to define every product in another entity. 来源: https://stackoverflow.com/questions/58380665/dialogflow-composite

Dialogflow basic card vs card

爷,独闯天下 提交于 2019-12-11 10:47:24
问题 Apologies for the naive question. In DialogFlow v2 APIs, there are 2 similar RichResponse options. Basic card and card. From the object definitions, it looks almost similar. Does anyone know when to use one vs the other? When should I use Basic card and When should I use Card? 回答1: The interfaces of most Google Cloud services are defined in Protobuf messages, which are published in the googleapis repo on Github. You can thus peek directly under the hood of Dialogflow, where you find these two

Can't get conv.data to save a parameter in Actions on Google

断了今生、忘了曾经 提交于 2019-12-11 10:14:19
问题 As you can see in: Console Log from SaveLocation - AskLocationPermission it doesn't save the location_type to the conv.data . While user storage works great I want to correctly use conv.data and conv.user.storage . You can see in the Example of conversation that the parameter is fulfilled, but it doesn't get saved to the conv.data . How it should work is when user says that he wants to save this location as his home or work, it should look into the conv.user.storage if he has home or work

How can I make a call from my action on google?

此生再无相见时 提交于 2019-12-11 09:56:32
问题 I'm building an action for Google Assistant using DialogFlow. And for this action, I want an intent say "Call X" with which the user can call "X". Here "X" is not a contact in the user's device but a contact defined within my intent's response. Is there any option with which I can achieve any of the following for my action? Make a Call to X, or atleast Open up the dialer with the defined number from my action Please guide me on this. 回答1: What you can do is Use a Helper Intent Through which

API.ai Actions on Google API Version 2: Failed to parse JSON response string with 'INVALID_ARGUMENT' error: “: Cannot find field.”

青春壹個敷衍的年華 提交于 2019-12-11 09:52:56
问题 I am using python to create webhook for Assistat app. I am able to ask user for location permission, but as soon as user gives consent, I receive following error UnparseableJsonResponse API Version 2: Failed to parse JSON response string with 'INVALID_ARGUMENT' error: ": Cannot find field.". I have checked my webhook server and no request comes to it. This looks like some issue at API.ai side. Below is the Debug response from Actions console when using Python client { "assistantToAgentDebug":