google_api_dialogflow v0.5.0 GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2WebhookResponse View Source

The response message for a webhook call.

Attributes

  • followupEventInput (GoogleCloudDialogflowV2EventInput): Optional. Makes the platform immediately invoke another `DetectIntent` call internally with the specified event as input. Defaults to: null.
  • fulfillmentMessages ([GoogleCloudDialogflowV2IntentMessage]): Optional. The collection of rich messages to present to the user. This value is passed directly to `QueryResult.fulfillment_messages`. Defaults to: null.
  • fulfillmentText (String.t): Optional. The text to be shown on the screen. This value is passed directly to `QueryResult.fulfillment_text`. Defaults to: null.
  • outputContexts ([GoogleCloudDialogflowV2Context]): Optional. The collection of output contexts. This value is passed directly to `QueryResult.output_contexts`. Defaults to: null.
  • payload (%{optional(String.t) => String.t}): Optional. This value is passed directly to `QueryResult.webhook_payload`. See the related `fulfillment_messages[i].payload field`, which may be used as an alternative to this field. This field can be used for Actions on Google responses. It should have a structure similar to the JSON message shown here. For more information, see Actions on Google Webhook Format <pre>{ "google": { "expectUserResponse": true, "richResponse": { "items": [ { "simpleResponse": { "textToSpeech": "this is a simple response" } } ] } } }</pre> Defaults to: null.
  • source (String.t): Optional. This value is passed directly to `QueryResult.webhook_source`. Defaults to: null.

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.GoogleCloudDialogflowV2WebhookResponse{
  followupEventInput:
    GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2EventInput.t(),
  fulfillmentMessages: [
    GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2IntentMessage.t()
  ],
  fulfillmentText: any(),
  outputContexts: [
    GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2Context.t()
  ],
  payload: map(),
  source: any()
}

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.