dialogflow-fulfillment

Is there a way to retrieve the conversation history in Dialogflow?

随声附和 提交于 2020-03-02 03:55:05
问题 Is there a way to obtain the full conversation between the user and agent. Pretty much similar to what I get by clicking the history tag but programmatically. The point is to save the interaction between user and agent as text. Thank you guys in advanced! 回答1: There's no API to retrieve the history from Dialogflow directly. But what you can do is enable logging. Agent Settings > General > Log Settings > Log interactions to Google Cloud And all the interactions will be logged into Google

Use multivocal libary to configure repeat intent in Dialogflow for VUI

无人久伴 提交于 2020-02-25 04:12:29
问题 I'm trying to configure my VUI to repeat a sentence in Dialogflow when it is prompted for this. Little back story, I am helping develop a social robot for elderly so repeating a sentence is a much needed feature. I just started on this project and the previous developer responsible for this is gone and not reachable, also, I have no experience in Node.js. I am looking to use the multivocal for this. These are the steps I have done so far: Created an intent called 'Repeat'. Added training

Dialogflow Fulfilment webhook call failed

北慕城南 提交于 2020-02-24 11:57:47
问题 I am new to dialogflow fulfillment and I am trying to retrieve news from news API based on user questions. I followed documentation provided by news API, but I am not able to catch any responses from the search results, when I run the function in console it is not errors. I changed the code and it looks like now it is reaching to the newsapi endpoint but it is not fetching any results. I am utilizing https://newsapi.org/docs/client-libraries/node-js to make a request to search everything

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

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:/

Webhook call failed. Error: Failed to parse webhook JSON response: Expect message object but got: [Chinese letters]

試著忘記壹切 提交于 2020-01-11 12:07:49
问题 I'm building my own WebhookClient for dialog flow. My code is the following (using Azure Functions, similar to Firebase Functions): module.exports = async function(context, req) { const agent = new WebhookClient({ request: context.req, response: context.res }); function welcome(agent) { agent.add(`Welcome to my agent!!`); } let intentMap = new Map(); intentMap.set("Look up person", welcome); agent.handleRequest(intentMap); } I tested the query and the response payload looks like this: {

DialogFlow: why does this Webhook Response fail with 'empty speech response'

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-25 01:48:49
问题 Why does this specific webhook response (passed by DialogFlow back to Google Assistant) { "fulfillmentMessages" : [ { "payload" : { "google" : { "richResponse" : { "items" : [ { "simpleResponse" : { "textToSpeech" : "And are you male or female?" } } ] }, "expectUserResponse" : true } }, "text" : { "text" : [ "And are you male or female?" ] } }, { "quickReplies" : { "quickReplies" : [ "Male", "Female" ] } } ], "fulfillmentText" : "And are you male or female?", "outputContexts" : [ ... ] }

How to display a Table Card from Dialogflow Webhook in Google Assistant

半世苍凉 提交于 2019-12-24 23:05:29
问题 I've setup a ASP.NET MVC 4 Web API to handle dialogflow fulfillment. My goal is to integrate with Google Assistant and display a Table Card as a response. I'm testing through the Google Actions Console Simulator. I've added the Table Card details in the GoogleCloudDialogflowV2IntentMessage Payload field, based on what I've found out here: How to add Table Card in Dialogflow Fulfillment? The Fulfillment Response from my API Webhook ends up looking something like this: { "followupEventInput": {

Google Assistant account linking with Keycloak

荒凉一梦 提交于 2019-12-13 04:13:20
问题 I am building a Dialogflow agent and I am trying to have account linking with OAuth between my website and Google Assistant. And I am using Keycloak as my authentification server. Keycloak configuration Account Linking Result Then after I put the username and password Any Ideas why Google assistant does not sgin in? And is there a way to debug it? 来源: https://stackoverflow.com/questions/55693603/google-assistant-account-linking-with-keycloak

How to create table in dialogflow-fulfillment

北城余情 提交于 2019-12-13 02:09:48
问题 In actions-on-google we can add table like : const {dialogflow, Table} = require('actions-on-google'); const request = require('request'); const conv = new DialogflowConversation(request); conv.ask('This is a simple table example.'); conv.ask(new Table({ dividers: true, columns: ['header 1', 'header 2', 'header 3'], rows: [ ['row 1 item 1', 'row 1 item 2', 'row 1 item 3'], ['row 2 item 1', 'row 2 item 2', 'row 2 item 3'], ], })); How to create the table using dialogflow-fulfillment ??