dialogflow

Dialogflow values are stored in wrong parameters

好久不见. 提交于 2019-12-11 04:36:50
问题 I have a dialogflow intent which includes different parameters. Although parameter names are unique, in some cases values are stored in wrong parameters and not in their own parameter. 1.png 2.png 3.png 4.png Image 1.png shows my intent and its "User Says" sentences.As you can see in 2.png, I have a VarName user defined entity for each variable name.Now in 3.png I try dialogflow by writing "Change Loan Term to 20". But as you can see in 4.png instead of putting 20 in "loan-term" parameter,

Dialogflow Webhook Format vs. Conversation Webhook Format

瘦欲@ 提交于 2019-12-11 04:25:56
问题 There are two types of fulfilments provides by Google Actions - Dialogflow Webhook Format & Conversation Webhook Format. In my understanding (as per this doc- https://developers.google.com/actions/build/json/conversation-webhook-json) Google sends "Conversation Webhook Format" request if we are using Actions SDK and Google uses "Dialogflow Webhook Format" if we use DialogFlow. Is this understanding correct? The reason I am asking this is because the request format from Google has suddenly

Problem using .recent attribute of sys.date parameter in Dialogflow

核能气质少年 提交于 2019-12-11 04:04:55
问题 I have question regarding Intent configuration in Dialogflow. I've found information on StackOverflow regarding ".recent" attribute of sys.date parameter. The idea is that using value from that attribute gives a date that happened in the past (i.e. "Monday" will be translated to last Monday, not next Monday). I've encountered a problem when using it with required parameters. The result in date interpretation differs depending on the input : has the user provided all required parameters at

Google Assistant changing the surface not working

梦想的初衷 提交于 2019-12-11 03:53:27
问题 Hi guys, I'm currently trying to build an app for the Google Assistant with Dialogflow. During a particular intent I want to redirect the user to his phone (when using a speaker) as the intent requires precise keyboard input. As said in the docs, I'm calling askForNewSurface() in my webhook. In the actions simulator, this is what shows up (truncated) "agentToAssistantJson": { "conversationToken": "[\"_actions_on_google_\",\"some-context\"]", "expectUserResponse": true, "expectedInputs": [ {

How to send request from iOS (Swift) to Dialogflow V2 API without Cloud Functions?

送分小仙女□ 提交于 2019-12-11 03:12:24
问题 Is it possible (and how) to call Dialogflow V2 API directly for intent detection from iOS app (Swift) or do I need to use Cloud Functions as suggested here Dialogflow integration of enterprise edition v2 into the ios and andriod app ? I have some experience in Dialogflow but all my integrations were done by FB Messenger / Web demo so I am totally lost in iOS case and I cannot find clear explanation in GCP / DF documentation. 回答1: While it is possible , it is not a good idea. In theory, you

Custom fallback intents when using confirmation helper

情到浓时终转凉″ 提交于 2019-12-11 03:07:08
问题 I'm trying to create custom fallbacks for intents that contain confirmations. Here is the code: const functions = require('firebase-functions'); const { dialogflow, Confirmation } = require('actions-on-google'); const app = dialogflow({ debug: true, }); app.intent('vitals-confirmation', (conv, input, confirmation) => { conv.ask(new Confirmation(`Great! Have you fainted recently?`)); }); app.intent('vitals-confirmation-fallback', (conv, input, confirmation) => { conv.ask(new Confirmation(

PermissionDenied: 403 IAM permission 'dialogflow.intents.list'

江枫思渺然 提交于 2019-12-11 02:48:46
问题 I'm trying to get the list of the intents in my Dialogflow agent using Dialogflow's V2 APIs but have been getting the following error: PermissionDenied: 403 IAM permission 'dialogflow.intents.list' on 'projects/xxxx/agent' denied. I adopted the following steps: I created a new agent(with V2 APIs enabled) and a new service account for it. I downloaded the JSON key and set my GOOGLE_APPLICATION_CREDENTIALS variable to its path. Following is my code: import dialogflow_v2 as dialogflow os.environ

Unable to Authorize users using Implicit / Authorization flow in google actions

做~自己de王妃 提交于 2019-12-11 01:48:13
问题 I am trying to link to the account : Here is my google cloud function var AuthHandler = function() { this.googleSignIn = googleSignIn; this.googleSignInCallback = googleSignInCallback; } function googleSignIn(req, res, next) { passport = req._passport.instance; passport.authenticate('google',{scope: 'https://www.googleapis.com/auth/userinfo.email', state:"google",response_type:"token"}, function(err, user, info) { console.log(user); })(req,res,next); }; function googleSignInCallback(req, res,

Dialogflow Agent works in Google simulator, failed in console and web link

拟墨画扇 提交于 2019-12-11 00:55:41
问题 I am using Dialogflow V2 API. Everything works perfectly in testing via Actions on Google simulator. Please find pic attached. However, when attempted using the console (right column) within Dialogflow, and also the web integration link, it does not work. Agent is able to detect appropriate entity from user input, but unable to call intent declared in webhook. https://bot.dialogflow.com/acc64a26-8d1d-4459-8ce0-24c890acb6d7 I have attempted to post in Dialogflow forum but there was an error

“MalformedResponse: Failed to parse Dialogflow response into AppResponse because of empty speech response” during OAuth Account Linking flow

自作多情 提交于 2019-12-11 00:05:47
问题 We are implementing Actions on Google with Dialogflow fulfillment using the newly released Java/Kotlin API. It's called Speech Bank . While going through the Account Linking process testing on the smartphone, the user is getting MalformedResponse error preventing the completion of the flow and consequent successful hand-off back to the regular flow. The logs (detailed below) contain the MalformedResponse: Failed to parse Dialogflow response into AppResponse because of empty speech response