dialogflow

Dialogflow Fulfillment TypeError : Cannot read property 'Parameters'

半腔热情 提交于 2020-01-24 22:15:48
问题 Hello I'm trying to make a webhook to my mysql database and everything worked perfectly, until I tried to add parameters. I always get this error in the firebase cloudfunctions TypeError: Cannot read property 'parameters' of undefined at exports.dialogflowFirebaseFulfillment.functions.https.onRequest (/user_code/index.js:17:47) at cloudFunction (/user_code/node_modules/firebase-functions/lib/providers/https.js:57:9) at /var/tmp/worker/worker.js:783:7 at /var/tmp/worker/worker.js:766:11 at

firebase functions and external API

浪尽此生 提交于 2020-01-24 20:30:46
问题 const functions = require('firebase-functions'); exports.apiResponse = functions.https.onRequest((request, response) => { const url = "https://test-proj-heroku.herokuapp.com/api/plans" const https = require('https'); var req = https.get(url, (resp) => { let data = ''; resp.on('data', (chunk) => { data += chunk; }); resp.on('end', () => { var result = JSON.parse(data); response.send({ fulfillmentText: "Firebase 🔥 API Is Running..." }); }); }).on("error", (err) => { console.log("Error: " + err

Parameters in link to my action are ignored by Dialogflow

笑着哭i 提交于 2020-01-24 20:11:30
问题 I suddenly can't seem to pass parameter values as part of my link to a Google Action anymore. This used to work a few months ago, and I don't believe anything changed at our end. As an example, I have one parameter in my default Welcome intent called "source", type @sys.any. In the Actions On Google console, I enable the "Link" for actions.intent.MAIN (I can also see the source parameter listed there). But when using the link, the "source" parameter value never makes it to Dialogflow. I tried

Can Dialogflow response time limit be modified?

≯℡__Kan透↙ 提交于 2020-01-24 20:08:49
问题 I am making a bot on dialogflow with a webhook. I get an error : DEADLINE_EXCEEDED. My webhook takes a bit over 5 seconds to return a response. Is there a way to allow a longer time than 5 seconds ? 回答1: this is not possible. One possibility is to (if you have for example a background task which takes some time) is to send back (before the 5 sec timeout) an Event. This triggers again a call to the Webhook, so you get another 5 sec to finish your background process. Beppe 来源: https:/

Google Dialogflow Quick Replies formatting issues in Telegram

两盒软妹~` 提交于 2020-01-16 08:42:53
问题 I had create a chatbot using Dialogflow and integrated it with Facebook Messenger & Telegram. I noticed that for the Quick Replies in Telegram (Link 1) appears differently in FB Messenger (Link 2). Is there any way to make it nicer and more presentable in Telegram? Telegram Facebook Messenger This is my Quick Replies settings in Dialogflow. Dialogflow 回答1: in DialogFlow you can indeed (as Marc pointed out) use a Custom Payload for Telegram, here it is an example: { "telegram": { "text": "What

Google Dialogflow Quick Replies formatting issues in Telegram

只谈情不闲聊 提交于 2020-01-16 08:42:38
问题 I had create a chatbot using Dialogflow and integrated it with Facebook Messenger & Telegram. I noticed that for the Quick Replies in Telegram (Link 1) appears differently in FB Messenger (Link 2). Is there any way to make it nicer and more presentable in Telegram? Telegram Facebook Messenger This is my Quick Replies settings in Dialogflow. Dialogflow 回答1: in DialogFlow you can indeed (as Marc pointed out) use a Custom Payload for Telegram, here it is an example: { "telegram": { "text": "What

How can I identify a user logged into DiallogFlow via webhook request?

雨燕双飞 提交于 2020-01-16 08:35:11
问题 I am using Dialogflow and would like to know if through the questions of a user to a bot it is possible to identify which user is asking this question. Attached is a section of the code for reading the data already received. I tried using the google documentation ('' https://developers.google.com/assistant/identity/google-sign-in#java "), but was unsuccessful. WebhookRequest request; using (var reader = new StreamReader(Request.Body)) { request = jsonParser.Parse<WebhookRequest>(reader); }

How can i set the environment variable GOOGLE_APPLICATION_CREDENTIALS?

落爺英雄遲暮 提交于 2020-01-16 01:17:12
问题 I know this type of question has been asked before and i have gone through this but still facing this issue. I was using this example . But while i run my code i got following exception Failed to detect whether we are running on Google Compute Engine. java.net.ConnectException: Failed to connect to /169.254.169.254:80 at com.android.okhttp.internal.io.RealConnection.connectSocket(RealConnection.java:143) at com.android.okhttp.internal.io.RealConnection.connect(RealConnection.java:112) at com

What is the right approach for handling direct and contextual questions in dialogflow?

纵然是瞬间 提交于 2020-01-15 15:45:26
问题 I am creating a HR chatbot using Dialogflow. I am unable to figure out the right approach to have the bot handle both direct questions and questions asked in a contextual manner. For example: Contextual case: User: I want to know how many leaves i can get in a year Bot: You get x number of leaves User: Ok cool how do i apply for one then? Bot: Follow this process to apply for a leave Direct case (2 separate conversations with direct questions): Conversation 1: User: I want to know how many

What is the right approach for handling direct and contextual questions in dialogflow?

蹲街弑〆低调 提交于 2020-01-15 15:44:00
问题 I am creating a HR chatbot using Dialogflow. I am unable to figure out the right approach to have the bot handle both direct questions and questions asked in a contextual manner. For example: Contextual case: User: I want to know how many leaves i can get in a year Bot: You get x number of leaves User: Ok cool how do i apply for one then? Bot: Follow this process to apply for a leave Direct case (2 separate conversations with direct questions): Conversation 1: User: I want to know how many