ConversationFulfillment

  • The JSON representation defines the implementation of conversation fulfillment, specifying how a conversation is handled.

  • It includes fields for naming the conversation, providing an HTTPS endpoint for handling requests, setting HTTP headers, and specifying the API version used.

  • Google sends a POST request to the specified endpoint to exchange data with the third-party fulfillment system.

Defines conversation fulfillment implementation.

JSON representation
{
  "name": string,
  "url": string,
  "httpHeaders": {
    string: string,
    ...
  },
  "fulfillmentApiVersion": integer
}
Fields
name

string

The unique name for this conversation.

url

string

The HTTPS endpoint for the conversation (HTTP is not supported). This can be an API.AI endpoint, a Google Cloud Function endpoint or a self-hosting HTTPS endpoint. Google sends a POST request to exchange data with 3P.

httpHeaders

map (key: string, value: string)

Map of HTTP parameters to be included in the POST request.

An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

fulfillmentApiVersion

integer

API version used when communicating with App.