The request message for a webhook call. The request is sent as a JSON object and the field names will be presented in camel cases.
You may see undocumented fields in an actual request. These fields are used internally by Dialogflow and should be ignored.
JSON representation |
---|
{ "detectIntentResponseId": string, "languageCode": string, "fulfillmentInfo": { object ( |
Fields | |
---|---|
detect |
Always present. The unique identifier of the |
language |
The language code specified in the [original request][QueryInput.language_code]. |
fulfillment |
Always present. Information about the fulfillment that triggered this webhook call. |
intent |
Information about the last matched intent. |
page |
Information about page status. |
session |
Information about session status. |
messages[] |
The list of rich message responses to present to the user. Webhook can choose to append or replace this list in |
payload |
Custom data set in |
sentiment |
The sentiment analysis result of the current user request. The field is filled when sentiment analysis is configured to be enabled for the request. |
language |
Information about the language of the request. |
Union field query . The original conversational query. query can be only one of the following: |
|
text |
If |
trigger |
If an |
transcript |
If |
trigger |
If an |
dtmf |
If |
FulfillmentInfo
Represents fulfillment information communicated to the webhook.
JSON representation |
---|
{ "tag": string } |
Fields | |
---|---|
tag |
Always present. The value of the |
IntentInfo
Represents intent information communicated to the webhook.
JSON representation |
---|
{
"lastMatchedIntent": string,
"displayName": string,
"parameters": {
string: {
object ( |
Fields | |
---|---|
last |
Always present. The unique identifier of the last matched |
display |
Always present. The display name of the last matched |
parameters |
Parameters identified as a result of intent matching. This is a map of the name of the identified parameter to the value of the parameter identified from the user's utterance. All parameters defined in the matched intent that are identified will be surfaced here. An object containing a list of |
confidence |
The confidence of the matched intent. Values range from 0.0 (completely uncertain) to 1.0 (completely certain). |
IntentParameterValue
Represents a value for an intent parameter.
JSON representation |
---|
{ "originalValue": string, "resolvedValue": value } |
Fields | |
---|---|
original |
Always present. Original text value extracted from user utterance. |
resolved |
Always present. Structured value for the parameter extracted from user utterance. |
SentimentAnalysisResult
Represents the result of sentiment analysis.
JSON representation |
---|
{ "score": number, "magnitude": number } |
Fields | |
---|---|
score |
Sentiment score between -1.0 (negative sentiment) and 1.0 (positive sentiment). |
magnitude |
A non-negative number in the [0, +inf) range, which represents the absolute magnitude of sentiment, regardless of score (positive or negative). |