google_api_dialogflow v0.36.3 GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2beta1WebhookResponse View Source

The response message for a webhook call.

This response is validated by the Dialogflow server. If validation fails, an error will be returned in the QueryResult.diagnostic_info field. Setting JSON fields to an empty value with the wrong type is a common error. To avoid this error:

  • Use "" for empty strings
  • Use {} or null for empty objects
  • Use [] or null for empty arrays

For more information, see the Protocol Buffers Language Guide.

Attributes

  • endInteraction (type: boolean(), default: nil) - Optional. Indicates that this intent ends an interaction. Some integrations (e.g., Actions on Google or Dialogflow phone gateway) use this information to close interaction with an end user. Default is false.
  • followupEventInput (type: GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2beta1EventInput.t, default: nil) - Optional. Makes the platform immediately invoke another DetectIntent call internally with the specified event as input. When this field is set, Dialogflow ignores the fulfillment_text, fulfillment_messages, and payload fields.
  • fulfillmentMessages (type: list(GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2beta1IntentMessage.t), default: nil) - Optional. The collection of rich messages to present to the user. This value is passed directly to QueryResult.fulfillment_messages.
  • fulfillmentText (type: String.t, default: nil) - Optional. The text to be shown on the screen. This value is passed directly to QueryResult.fulfillment_text.
  • outputContexts (type: list(GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2beta1Context.t), default: nil) - Optional. The collection of output contexts. This value is passed directly to QueryResult.output_contexts.
  • payload (type: map(), default: nil) - Optional. This field can be used to pass custom data from your webhook to the API caller. Arbitrary JSON objects are supported. When provided, Dialogflow uses this field to populate QueryResult.webhook_payload sent to the API caller. This field is also used by the Google Assistant integration for rich response messages. See the format definition at Google Assistant Dialogflow webhook format
  • sessionEntityTypes (type: list(GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2beta1SessionEntityType.t), default: nil) - Optional. Additional session entity types to replace or extend developer entity types with. The entity synonyms apply to all languages and persist for the session of this query. Setting the session entity types inside webhook overwrites the session entity types that have been set through DetectIntentRequest.query_params.session_entity_types.
  • source (type: String.t, default: nil) - Optional. This value is passed directly to QueryResult.webhook_source.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Link to this type

t()

View Source
t() ::
  %GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2beta1WebhookResponse{
    endInteraction: boolean(),
    followupEventInput:
      GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2beta1EventInput.t(),
    fulfillmentMessages: [
      GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2beta1IntentMessage.t()
    ],
    fulfillmentText: String.t(),
    outputContexts: [
      GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2beta1Context.t()
    ],
    payload: map(),
    sessionEntityTypes: [
      GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2beta1SessionEntityType.t()
    ],
    source: String.t()
  }

Link to this section Functions

Link to this function

decode(value, options)

View Source
decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.