Questions tagged [dialogflow-es-fulfillment]

Dialogflow ES is a natural language platform owned by Google. (Formerly known as just Dialogflow or as api.ai.) A fulfillment in Dialogflow ES allows an intent to perform operations on input parameters and return an output. Use this tag when issues arise with building fulfillments. For questions about the Dialogflow ES API or UI, use the dialogflow-es tag. For the similarly named, but incompatible, Dialogflow CX, use the dialogflow-cx tag.

Dialogflow ES is a Natural Language Understanding system from Google and was formerly known as "Dialogflow" or "api.ai". It provides NLU processing for relatively simple conversations.

One of the components of Dialogflow ES allows developers to create code in a webhook fulfillment to apply business logic after an Intent has been matched to process the input from the user and apply any business logic to determine a response.

The webhook is called after the user input has been processed and narrowed into a defined Intent. If you are interested in writing code that sends user input to Dialogflow via an API, manipulates the conversational model, or otherwise handles the response after it has been processed by a webhook, you should use the tag.

For the more complex, and completely incompatible, NLU system from Google called Dialogflow CX, which also includes a visual flow editor as well as an API and fulfillment system, see the tag.

778 questions
1
vote
0 answers

webhook request timeout dialogflow v2 migration ( webhook code:4)?

I have dialogflow application w.r.t. v1 currently, we are working on the migration to v2, so during the process, when testing the changes w.r.t. dialogflow console, we found issues like webhook request time, please find the diagnostic info. from…
vasu
  • 43
  • 1
  • 8
1
vote
2 answers

Validate an user input in Dialogflow

There is some way to validate a user input and request it again, either by webhook or intents, for example asking the user a number from 1 to 10 and if the user enters a larger or a smaller one ask him to enter another number until the number this…
1
vote
1 answer

Getting "null" context when passing context from one intent to another when I try with google assistant

I am trying to learn Google Assistant integration using DialogFlow, I have written the following code which works like charm when I test in dialogFlow but fails when I test the same on Google Assistant (i.e. Context passed from Intent getBillingInfo…
1
vote
1 answer

How to implement a welcome activity when the bot first starts - NLP is from Google Dialogflow

How to implement a welcome activity when the bot first starts - NLP is from Google Dialogflow. I have designed the chatbot -intent, entities and NLP from Google Dialogflow and I have integrated successfully with the botframework webchat in a html…
1
vote
1 answer

How to fire POST request using inline editor in dialogflow?

Code: var rp = require('request-promise'); var options = { method: 'POST', uri: 'http://c663fe13.ngrok.io/ap/lighton', body: {"color": 'white'}, json: true // Automatically stringifies…
1
vote
1 answer

Is there any way to ask for confirmation from user using inline-editor instead of using follow-up intents?

I have two intents get_name and get_age in get_name I take the user name, this intent is enabled for fulfillment. In the editor, how to ask for confirmation of the name? if confirmed, then I should add output context to get_name, so that get_age…
1
vote
1 answer

Dialogflow Fulfillment TypeError : Cannot read property 'Parameters'

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…
1
vote
1 answer

How to make a multiple language Dialogflow webhook/fulfillment?

I have built a Dialogflow app in english. I used a NodeJs webhook to provide the answers. Now, I want to add a new language (Spanish). Is there a way to add it without duplicating the webhook? Is there a prebuilt Library ,like I18N, where I…
1
vote
1 answer

How to detect a returning user to Google Assistant on Android in Dialogflow fulfillments?

I have a running website, where users already have accounts. And I am trying to create a Google Assistant agent, accessible on Android, to help users access their information. My issue is that I can't detect returning users on Android Smartphones,…
1
vote
1 answer

Custom payload for platforms like Telegram, Facebook, Slack for DialogFlow in Nodejs

I would like to ask how to custom payload for carousel, image in other platforms like Facebook, Telegram and etc. Information DialogFlow API version: V2 API Node version: v8.10.0 body-parser version: ^1.18.3 express: ^4.16.4 return res.json({ …
crispy
  • 81
  • 1
  • 3
  • 7
1
vote
1 answer

DialogFlow Session Entities and Resolving to Values in My Database

This is a bit hard to explain, so I am hoping that using an example would be most efficient. We are building a service that allows a Parent to maintain a list of their Children and perform actions against these Children. The Parent is the user…
TheJediCowboy
  • 8,924
  • 28
  • 136
  • 208
1
vote
1 answer

Fulfillment response parsing error: "Expect message object"

I'm trying to make a correct fulfillment response to the simple request: "queryResult": { "queryText": "test", "action": "test", "parameters": {}, /*...*/ The response is: { "fulfillmentText": "good", "fulfillmentMessages": [ …
Mikhail
  • 13
  • 3
1
vote
0 answers

Can't set headers after they are sent. in dialogflow

I am trying to use the followup event to trigger an intent from the webhook code. const event_trigger = { followupEventInput: { name: "event_name", languageCode: "en-US" } }; return…
1
vote
0 answers

How can I show a restaurant menu with my chatbot?

I'm trying to create a chatbot that can take an order from customers. I'm using dialogflow NLP. I got stuck when coming across the concept of showing a menu to the customer. I'm trying to show the total amount of customer's order. Can you suggest me…
1
vote
1 answer

Trigger a custom alert phrase (Intent) with Dialogflow

I'am new to Dialogflow, although it is easy to understand, I couldn't trigger an Intent with a custom event. The task that I have to implement is that when an alert is detected in the backend node.js webhook (example: boss wants something done) the…