dialogflow

Actions on Google, Beta Release: Testing instruction not found

允我心安 提交于 2019-12-07 12:57:26
Basically, I have the same problem as this question here. The accepted answer in that question suggests that we should give directions to the review team in Testing Instructions section. But in my case, which is: Account creation: Yes, allow users to sign up for new accounts via voice Linking type: Google Sign In Client information: my_client_id There is NO Testing Instructions section. But, when I try to do the deploy, it will still demand me to give the instructions and won't allow me to do the deploy. How am I supposed to deal with this scenario? The answer state the test instructions

How to determine confidence level in DialogFlow

て烟熏妆下的殇ゞ 提交于 2019-12-07 03:59:25
When a user is responding to a question in DialogFlow, is there a way to obtain the confidence levels that was achieved for a specific phrase? Example: Q: What is the capital of Germany? A: Berlin I would like to read back how well the AI understood the user, e.g.: He said: "Boerlin" ---> 87.3% confidence level that he said "Berlin" Is there a way to read back this kind of information? Thomas. Have a look at the Google Apis DetectIntent Documentation. https://cloud.google.com/dialogflow-enterprise/docs/reference/rest/v2beta1/projects.agent.environments.users.sessions/detectIntent Using the

DialogflowApp askForUpdatePermission Not Working

我只是一个虾纸丫 提交于 2019-12-07 02:36:31
问题 1) askForUpdatePermission not finding intent I followed the Update Sample at Github -dialogflow-updates-nodejs and got the update permission to work. But when I added app.askForUpdatePermission("get.next.reminder") into my own code, the simulator says that my agent is not responding. I did not get the question to give update permission. In the simulator error tab, I see an error: MalformedResponse expected_inputs[0].possible_intents[0].input_value_data: The intent the app is asking for

dialogflow-fulfillment-library and express, what to res on?

若如初见. 提交于 2019-12-06 16:38:12
I'm trying to use the dialog-fulfillment-library with express, without firebase functions. I'm having trouble finding how to res on the agent though. const { WebhookClient, Card, Suggestion } = require('dialogflow-fulfillment'); module.exports = function () { let self = {}; self.create = function (req, res, next) { const agent = new WebhookClient({request: req, response: res}); agent.add(new Suggestion(`Quick Reply`)); agent.add(new Card({ title: `Title: this is a card title`, imageUrl: 'https://developers.google.com/actions/images/badges/XPM_BADGING_GoogleAssistant_VER.png', text: `This is

Is it possible to trigger another Actions on Google app from within my own AoG app's fulfillment? [duplicate]

旧街凉风 提交于 2019-12-06 14:14:35
This question already has answers here : How to Invoke or call one app from another app in Android? (3 answers) Closed last year . This question pertains specifically to Actions on Google Apps and is concerning the ability to trigger an event/action to cause the Assistant to choose another AoG app for the end user; specifically to trigger someone else's AoG app, not one that you have written. Idea: I want to create a custom AoG app. Something like planning-for-a-hike app . I want my user to be able to ask about the weather. At that point, I want to pass the flow over to an already existing app

DialogFlow - Improve entity/parameter recognition for alphanumeric parameters

柔情痞子 提交于 2019-12-06 12:18:47
问题 I'm trying to create a DialogFlow intent that will ask the user for an account code. Account codes are alphanumeric and can be up to 10 characters. I originally setup my intent with a @sys.any parameter which does collect the input. However with voice recognition it struggles as it's not a word as such. For example if I say the account code X36501 it gets interpreted as 'x3650 one'. What I thought I could do is create an entity called accountCode with a list of entries (synonyms turned off)

How to reset a parameter value so agent can ask for the parameter again?

馋奶兔 提交于 2019-12-06 11:40:33
问题 I have created a dialogflow agent and multiple intents in it. One such intent asks for 2 parameters : account and balance_type. It then sends the webhook request where the code is written to check if the account number exists in the DB. If it does it fetches the balance and sends back to the user. Now in case the account number does not exist, i have to ask the user to again enter the account number (value for "account") only. Any thoughts on how i can achieve it ? 回答1: You will need to play

How authenticate with gcloud credentials an Dialogflow API

六月ゝ 毕业季﹏ 提交于 2019-12-06 11:17:24
I have a Node JS app that make requests to a Dialogflow agent. I actually use a temporally token based request, but how can i change this to do it through google service credentials? ( https://cloud.google.com/docs/authentication/getting-started ). I have a credencial created (with billing added), and the service_account json file. I would like to use the Dialogflow package in node ( https://www.npmjs.com/package/dialogflow ) but i don't underestand how to use it with the json file. const projectId = 'ENTER_PROJECT_ID_HERE'; const sessionId = 'quickstart-session-id'; const query = 'hello';

Where is the data context in Dialog Flow (API.ai)

谁说我不能喝 提交于 2019-12-06 10:29:29
问题 I have been reading about Dialog Flow and there is one thing that is still unclear for me. I'll try to give an example. I want to implement a conversion as following: User: Hello Google, what are some interesting cities? Bot: Hello there! Sydney, New York and Berlin are nice. User: Could you tell more about the second city? Bot: Sure. New York is amazing. In New York, you can ... As you see, I am building a data context. After the first question, we should remember that we answered Sydney,

How to set a custom platform in Dialogflow NodeJS Client

房东的猫 提交于 2019-12-06 10:08:53
问题 I have created a webhook using dialogflow-fulfillment to correctly return different data depending on the platform, including a custom one I created for another service. I've tested my webhook and know that if I change the originalDetectIntentRequest.source to the platform used in my custom payload it works. { "payload": { "jokes-api": { "success": true, "text": "These are some jokes", } }, "outputContexts": [] } I am able to use dialogflow-nodejs-client-v2's sessions.detectIntent to get a