dialogflow

Reprompt user if no response in google action?

断了今生、忘了曾经 提交于 2019-12-14 02:21:52
问题 I am trying to make reprompts work for my action built using the dialogflow SDK. I have an intent 'answer-question' , however I would like a fallback intent to trigger if the user does not reply atall (after a certain unit of time if possible). I have tried to implement the instructions in this guide: reprompts google action So I created a custom fallback intent to my answer-question intent, which has an event of actions_intent_NO_INPUT and a context of answer-question-followup However when

Dialogflow API V2 “End of conversation” flag in webhook request

梦想的初衷 提交于 2019-12-14 01:51:26
问题 I am migrating a Dialogflow agent to API V2, and I am having an issue related to the "Set this intent as end of conversation" option My fulfillment webhook relies on the "endConversation": true property of the V1 webhook request's metadata to perform custom platform logic. Is there any way I can expose this same property in Dialogflow V2 without using a custom payload? 回答1: You can look at the queryResult.diagnosticInfo.end_conversation field in Dialogflow's v2 webhook requests the form of

Api.ai request body does not contain the originalRequest object from which the access_token can be sent to the fulfillment webhook

喜欢而已 提交于 2019-12-13 21:41:18
问题 Api.ai request body does not contain the originalRequest object from which the access_token can be sent to the fulfillment webhook. Can anybody please let me know why I am not seeing the originalRequest body? I have successfully completed the Account Linking for my app and in fact, the actions web simulator does show the expected access_token in the debug window but the Api.ai json request body does not have it. I am using python for fulfillment logic. Any help on this is greatly appreciated.

DialogFlow app does not get deployed in Heroku

痴心易碎 提交于 2019-12-13 20:19:09
问题 I have no experience whatsoever with using dialog flow so I'm trying to follow this youtube tutorial to make a bot. Now, the bot works well when I tested it on the DialogFlow console, but it doesn't get deployed on Heroku. Whenever I try to open the url where the app's supposed to be deployed in, I keep on getting "Internal server error" (this used to be {"speech":"","displayText":"","source":"webhook"} before I applied this). It says "Failed to load resource: the server responded with a

Google cloud dialogflow intent detection nodejs example not working

拜拜、爱过 提交于 2019-12-13 20:17:48
问题 I am trying to implement a very simple dialogflow agent integration with nodejs. Here is what I did so far I followed the code from Intent detection I added the service account private key file .json to my server. I added the environment variable GOOGLE_APPLICATION_CREDENTIALS with the path to my .json private key file. Here is the code I am trying to run right now: require('dotenv').config() const projectId = 'gg-chatbot-216808'; const sessionId = 'quickstart-session-id'; const query =

How to Schedule Dialogflow

此生再无相见时 提交于 2019-12-13 20:02:40
问题 I'm making google assistant which is able to play Prayer's Call, gets Prayer timings from the Prayer Api and able to set timing of Prayer as well, using Webhook of Nodejs. The problem is how can I schedule Prayer's Call timings to Dialogflow... like how can i invoke "Play Prayer's Call" intent via Nodejs in given time. 回答1: It's not possible to call an intent on demand if you want to use google assistant, every message of google assistant, is triggered by an user message, to avoid spam. Your

Dialogflow v2 error “MalformedResponse 'final_response' must be set”

谁说胖子不能爱 提交于 2019-12-13 16:06:48
问题 I am getting this error only when using the simulator/google assistant. When I use the Slack integration or test within DialogFlow then it works perfectly. I checked this question about settings in DialogFlow, but that wasn't my issue. I checked this question but because I use python in my webhook, I can't be sure whether that would solve it for me or not. I am doing the following: First, the user invokes any one of my intents which are connected through a webhook to my python code. Call this

Got the “My test app isn't responding right now. Try again soon.” error message even a clean start from Google Assistant Simulator

狂风中的少年 提交于 2019-12-13 11:50:25
问题 I am still quite new to this topic, so sorry if I didn't provide enough information. For the first time, I copoed everything from https://developers.google.com/actions/dialogflow/first-app to learn about it, which works great. After, I tried to create my own one, then at the end, I got this message "My test app isn't responding right now. Try again soon." from https://console.actions.google.com/project/[[PROJECT-ID]]/simulator/. Therefore, I tried to delete everything and make a complete new

Authenticating Request with Google.Apis.DialogFlow.V2

岁酱吖の 提交于 2019-12-13 10:36:11
问题 I have upgraded my C# DialogFlow client from Google.Cloud.DialogFlow.V2 to Google.Apis.DialogFlow.v2 However I keep getting a 401 error when connecting to DialogFlow. Heres is my code: Environment.SetEnvironmentVariable("GOOGLE_APPLICATION_CREDENTIALS", cloudKeyFile); var response = new Google.Apis.Dialogflow.v2.DialogflowService().Projects.Agent.Sessions.DetectIntent( new Google.Apis.Dialogflow.v2.Data.GoogleCloudDialogflowV2DetectIntentRequest { QueryInput = new Google.Apis.Dialogflow.v2

can't send rich messege to line on dialogflow

て烟熏妆下的殇ゞ 提交于 2019-12-13 09:35:54
问题 as the title, i want to know how to send rich massage like carousel,button ,image,etc to line from dialogflow. i try to fill the costum payload on an intent. but i keep failed to get respond on line.(i do get respond when i check the diagnostic info) my costum payload is just like this..from the dialogflow docs { "type": "template", "altText": "this is a buttons template", "template": { "type": "buttons", "thumbnailImageUrl": "https://example.com/bot/images/image.jpg", "title": "Menu", "text"