dialogflow

how to integrate MongoDB database with dialogfow

旧时模样 提交于 2019-12-02 04:40:44
I have a webhook application where I have successfully retrieved data from Firebase database. But I need to incorporate MongoDB instead. This is the code so far. 'use strict'; const functions = require('firebase-functions'); const {WebhookClient} = require('dialogflow-fulfillment'); const mongoose = require('mongoose'); process.env.DEBUG = 'dialogflow:debug'; // enables lib debugging statements let uri = 'mongodb://dbAdynor:Adynor123!@testcluster-shard-00-00-x87dz.gcp.mongodb.net:27017,testcluster-shard-00-01-x87dz.gcp.mongodb.net:27017,testcluster-shard-00-02-x87dz.gcp.mongodb.net:27017/test

Action using web-fulfillment with firebase throwing MalformedResponse 'final_response' must be set

懵懂的女人 提交于 2019-12-02 04:26:07
Env : Using firebase cloud deployed google action. Action is using webhook to get results from functions. I am using Blaze plan so calling external URL should be legit. I am using dialogflow V2. Part of my function's job is doing the following: I make an external API request using the following (Masked code detail): var requestObj = require('request'); var options = { url: 'my url', headers: { 'User-Agent': 'request' } }; function callback(error, response, body) { if (!error && response.statusCode == 200) { var info = JSON.parse(body); result = JSON.parse(body).element; console.log('Title 0 '

Where will the reply of a Carousel Selector be sent when using Dialogflow fulfillment server?

一曲冷凌霜 提交于 2019-12-02 03:55:01
I am trying to figure out how I can embed Google Actions responses, such as the carousel , in a webhook response for DialogFlow. As epxlained in Is there a way to simply follow a URL in the Caroussel Selector? , the carousel selector can be used to present the user certain options. When the user clicks, the selected item will be sent back to the backend server. As said, I am using Dialogflow, so the fulfillment server will send the carousel list to the Assistant. It is not clear to me on which REST endpoint the information about the selected item will be provided. Will this be on the

Multiple Dialogflow commands asked at same time

余生颓废 提交于 2019-12-02 02:50:49
I have an Action where the user can set values of different parameters. Currently this is implemented something like this, and it works well: Now I want to make the conversation less robot-like and more flexible, so I would like to allow users to set or change more than one value at a time. They should be able to say things like Change the Interest Rate to 4% and the Term to 15 years. or Change the Interest Rate to 4%, the Term to 15 years, and the Years to Average Principal to 3. There are a couple of ways to do this, but none of them are great, and all of them have issues of some sort when

Unable to accept the permission prompt on Actions on Google

一个人想着一个人 提交于 2019-12-02 01:43:54
I am trying to get permissions for location and name for my app. Here is my index.js - link It seems to be stuck in a loop :- Here are my intents on API.AI :- The event actions_intent_PERMISSION needs to be attached to an Intent that will be called after the user authorizes the information to be sent. The handling for it in the webhook needs to read the information given and save it or do something with it immediately. Your code is looping because the code that is processing the request_permission action is, itself, requesting permission: function requestPermission(app){ const permissions = [

Why agents disappeared from Dialogflow? [closed]

南楼画角 提交于 2019-12-02 01:02:12
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 months ago . I integrated the dialogflow agent with Google Assistante and started the alpha version for testing, and after that all my agents disappeared from Dialogflow. There are no agents in the list of agents. I did not delete them. What do I need to do to fix this problem? 回答1: Google is reporting a technical outage

dialogflow ambiguity with same synonyms for different entity values

谁说胖子不能爱 提交于 2019-12-02 00:31:05
问题 I have an issue developing an agent with dialogflow (api.ai). I am using a lot of entity values which are all different from one another. however there are similar synonyms for some entity values but the agent is returning only one value. How can i get all the possible matches or ask question to resolve the ambiguity for example i have an intent like: tell me the location of ABC express train if my entity values are : entity synonym 15127 ABC express 12345 ABC express I want it to return two

How to send push notification from google assistant through Dialogflow fulfilment in Python

风格不统一 提交于 2019-12-01 23:02:29
I'm developing chatbot in google Dialogflow for google assistance, I've followed this Documentation for showing Push notifications . I've asked for the permission but now I'm stuck at the last step( Exchange the key for an access token and send a notification ) in that documentation. Can anybody please help me to do it. Which JSON response should I send from my Python fulfillment code? Finally, I've solved the problem. The code posted by @matthewayne has some mistakes like it should be "POST" request and change some payload and header parameters, hence it worked!, here I've changed some code

dialogflow ambiguity with same synonyms for different entity values

血红的双手。 提交于 2019-12-01 22:25:29
I have an issue developing an agent with dialogflow (api.ai). I am using a lot of entity values which are all different from one another. however there are similar synonyms for some entity values but the agent is returning only one value. How can i get all the possible matches or ask question to resolve the ambiguity for example i have an intent like: tell me the location of ABC express train if my entity values are : entity synonym 15127 ABC express 12345 ABC express I want it to return two values or ask question to resolve such ambiguity how can i work this out Thanks in advance If you

Why agents disappeared from Dialogflow? [closed]

房东的猫 提交于 2019-12-01 20:18:08
I integrated the dialogflow agent with Google Assistante and started the alpha version for testing, and after that all my agents disappeared from Dialogflow. There are no agents in the list of agents. I did not delete them. What do I need to do to fix this problem? Google is reporting a technical outage with accessing agents and data in the Dialogflow console. It will be fixed quickly I'm sure (it's Google). Please check the status here 来源: https://stackoverflow.com/questions/56561120/why-agents-disappeared-from-dialogflow