WebhookResponse

The response message for a webhook call.

JSON representation
{
  "fulfillmentText": string,
  "fulfillmentMessages": [
    {
      object(Message)
    }
  ],
  "source": string,
  "payload": {
    object
  },
  "outputContexts": [
    {
      object(Context)
    }
  ],
  "followupEventInput": {
    object(EventInput)
  }
}
Fields
fulfillmentText

string

Optional. The text to be shown on the screen. This value is passed directly to QueryResult.fulfillment_text.

fulfillmentMessages[]

object(Message)

Optional. The collection of rich messages to present to the user. This value is passed directly to QueryResult.fulfillment_messages.

source

string

Optional. This value is passed directly to QueryResult.webhook_source.

payload

object (Struct format)

Optional. This value is passed directly to QueryResult.webhook_payload. See the related fulfillmentMessages[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

{
  "google": {
    "expectUserResponse": true,
    "richResponse": {
      "items": [
        {
          "simpleResponse": {
            "textToSpeech": "this is a simple response"
          }
        }
      ]
    }
  }
}

outputContexts[]

object(Context)

Optional. The collection of output contexts. This value is passed directly to QueryResult.output_contexts.

followupEventInput

object(EventInput)

Optional. Makes the platform immediately invoke another sessions.detectIntent call internally with the specified event as input.