View Source GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3beta1WebhookRequest (google_api_dialogflow v0.74.0)

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.

Attributes

  • detectIntentResponseId (type: String.t, default: nil) - Always present. The unique identifier of the DetectIntentResponse that will be returned to the API caller.
  • fulfillmentInfo (type: GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo.t, default: nil) - Always present. Information about the fulfillment that triggered this webhook call.
  • intentInfo (type: GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo.t, default: nil) - Information about the last matched intent.
  • languageCode (type: String.t, default: nil) - The language code specified in the original request.
  • messages (type: list(GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3beta1ResponseMessage.t), default: nil) - The list of rich message responses to present to the user. Webhook can choose to append or replace this list in WebhookResponse.fulfillment_response;
  • pageInfo (type: GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3beta1PageInfo.t, default: nil) - Information about page status.
  • payload (type: map(), default: nil) - Custom data set in QueryParameters.payload.
  • sentimentAnalysisResult (type: GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult.t, default: nil) - The sentiment analysis result of the current user request. The field is filled when sentiment analysis is configured to be enabled for the request.
  • sessionInfo (type: GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3beta1SessionInfo.t, default: nil) - Information about session status.
  • text (type: String.t, default: nil) - If natural language text was provided as input, this field will contain a copy of the text.
  • transcript (type: String.t, default: nil) - If natural language speech audio was provided as input, this field will contain the transcript for the audio.
  • triggerEvent (type: String.t, default: nil) - If an event was provided as input, this field will contain the name of the event.
  • triggerIntent (type: String.t, default: nil) - If an intent was provided as input, this field will contain a copy of the intent identifier. Format: projects//locations//agents//intents/.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() ::
  %GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3beta1WebhookRequest{
    detectIntentResponseId: String.t() | nil,
    fulfillmentInfo:
      GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo.t()
      | nil,
    intentInfo:
      GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo.t()
      | nil,
    languageCode: String.t() | nil,
    messages:
      [
        GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3beta1ResponseMessage.t()
      ]
      | nil,
    pageInfo:
      GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3beta1PageInfo.t()
      | nil,
    payload: map() | nil,
    sentimentAnalysisResult:
      GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult.t()
      | nil,
    sessionInfo:
      GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3beta1SessionInfo.t()
      | nil,
    text: String.t() | nil,
    transcript: String.t() | nil,
    triggerEvent: String.t() | nil,
    triggerIntent: String.t() | nil
  }

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.