List

Returns the list of all contexts in the specified session

3 variables
6 variables

Returns the list of all contexts in the specified session

Authorization

To use this building block you will have to grant access to at least one of the following scopes:

  • View and manage your data across Google Cloud Platform services
  • View, manage and query your Dialogflow agents

Input

This building block consumes 3 input parameters

  = Parameter name
  = Format

parent STRING Required

Required. The session to list all contexts from. Format: projects/<Project ID>/agent/sessions/<Session ID>

pageToken STRING

Optional. The next_page_token value returned from a previous list request

pageSize INTEGER

Optional. The maximum number of items to return in a single page. By default 100 and at most 1000

Output

This building block provides 6 output parameters

  = Parameter name
  = Format

contexts[] OBJECT

Represents a context

contexts[].lifespanCount INTEGER

Optional. The number of conversational query requests after which the context expires. If set to 0 (the default) the context expires immediately. Contexts expire automatically after 20 minutes if there are no matching queries

contexts[].name STRING

Required. The unique identifier of the context. Format: projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>.

The Context ID is always converted to lowercase, may only contain characters in [a-zA-Z0-9_-%] and may be at most 250 bytes long

contexts[].parameters OBJECT

Optional. The collection of parameters associated with this context. Refer to this doc for syntax

contexts[].parameters.customKey.value ANY

Optional. The collection of parameters associated with this context. Refer to this doc for syntax

nextPageToken STRING

Token to retrieve the next page of results, or empty if there are no more results in the list