Represents the result of a conversational query.
JSON representation |
---|
{ "languageCode": string, "parameters": { object }, "responseMessages": [ { object ( |
Fields | |
---|---|
languageCode |
The language that was triggered during intent detection. See Language Support for a list of the currently supported language codes. |
parameters |
The collected Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs:
|
responseMessages[] |
The list of rich messages returned to the client. Responses vary from simple text messages to more sophisticated, structured payloads used to drive complex logic. |
webhookIds[] |
The list of webhook ids in the order of call sequence. |
webhookDisplayNames[] |
The list of webhook display names in the order of call sequence. |
webhookLatencies[] |
The list of webhook latencies in the order of call sequence. A duration in seconds with up to nine fractional digits, ending with ' |
webhookTags[] |
The list of webhook tags in the order of call sequence. |
webhookStatuses[] |
The list of webhook call status in the order of call sequence. |
webhookPayloads[] |
The list of webhook payload in |
currentPage |
The current |
intent |
The |
intentDetectionConfidence |
The intent detection confidence. Values range from 0.0 (completely uncertain) to 1.0 (completely certain). This value is for informational purpose only and is only used to help match the best intent within the classification threshold. This value may change for the same end-user expression at any time due to a model retraining or change in implementation. This field is deprecated, please use |
match |
Intent match result, could be an intent or an event. |
diagnosticInfo |
The free-form diagnostic info. For example, this field could contain webhook call latency. The fields of this data can change without notice, so you should not write code that depends on its structure. One of the fields is called "Alternative Matched Intents", which may aid with debugging. The following describes these intent results:
|
sentimentAnalysisResult |
The sentiment analyss result, which depends on |
advancedSettings |
Returns the current advanced settings including IVR settings. Even though the operations configured by these settings are performed by Dialogflow, the client may need to perform special logic at the moment. For example, if Dialogflow exports audio to Google Cloud Storage, then the client may need to wait for the resulting object to appear in the bucket before proceeding. |
allowAnswerFeedback |
Indicates whether the Thumbs up/Thumbs down rating controls are need to be shown for the response in the Dialogflow Messenger widget. |
Union field query . The original conversational query. query can be only one of the following: |
|
text |
If |
triggerIntent |
If an |
transcript |
If |
triggerEvent |
If an |
dtmf |
If a |
SentimentAnalysisResult
The result of sentiment analysis. Sentiment analysis inspects user input and identifies the prevailing subjective opinion, especially to determine a user's attitude as positive, negative, or neutral.
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). |