- [JSON representation](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#SCHEMA_REPRESENTATION)
- [UserUtterance](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#UserUtterance)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#UserUtterance.SCHEMA_REPRESENTATION)
- [Event](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#Event)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#Event.SCHEMA_REPRESENTATION)
- [AgentUtterance](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#AgentUtterance)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#AgentUtterance.SCHEMA_REPRESENTATION)
- [ToolUse](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#ToolUse)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#ToolUse.SCHEMA_REPRESENTATION)
- [DataStoreToolTrace](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#DataStoreToolTrace)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#DataStoreToolTrace.SCHEMA_REPRESENTATION)
- [WebhookToolTrace](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#WebhookToolTrace)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#WebhookToolTrace.SCHEMA_REPRESENTATION)
- [LlmCall](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#LlmCall)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#LlmCall.SCHEMA_REPRESENTATION)
- [RetrievedExample](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#RetrievedExample)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#RetrievedExample.SCHEMA_REPRESENTATION)
- [RetrievalStrategy](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#RetrievalStrategy)
- [TokenCount](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#TokenCount)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#TokenCount.SCHEMA_REPRESENTATION)
- [IntentMatch](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#IntentMatch)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#IntentMatch.SCHEMA_REPRESENTATION)
- [MatchedIntent](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#MatchedIntent)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#MatchedIntent.SCHEMA_REPRESENTATION)
- [FlowStateUpdate](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#FlowStateUpdate)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#FlowStateUpdate.SCHEMA_REPRESENTATION)
- [PageState](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#PageState)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#PageState.SCHEMA_REPRESENTATION)
- [FunctionCall](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#FunctionCall)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#FunctionCall.SCHEMA_REPRESENTATION)
- [PlaybookInvocation](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#PlaybookInvocation)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#PlaybookInvocation.SCHEMA_REPRESENTATION)
- [FlowInvocation](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#FlowInvocation)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#FlowInvocation.SCHEMA_REPRESENTATION)
- [PlaybookTransition](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#PlaybookTransition)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#PlaybookTransition.SCHEMA_REPRESENTATION)
- [FlowTransition](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#FlowTransition)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#FlowTransition.SCHEMA_REPRESENTATION)
- [TTS](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#TTS)
- [STT](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#STT)
- [Span](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#Span)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#Span.SCHEMA_REPRESENTATION)
- [NamedMetric](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#NamedMetric)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#NamedMetric.SCHEMA_REPRESENTATION)
- [Status](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#Status)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#Status.SCHEMA_REPRESENTATION)
- [ExceptionDetail](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#ExceptionDetail)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#ExceptionDetail.SCHEMA_REPRESENTATION)

Action performed by end user or Dialogflow agent in the conversation.

| JSON representation |
|---|
| ``` { "displayName": string, "startTime": string, "completeTime": string, "subExecutionSteps": [ { object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#Span`) } ], "status": { object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#Status`) }, // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "userUtterance": { object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#UserUtterance`) }, "event": { object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#Event`) }, "agentUtterance": { object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#AgentUtterance`) }, "toolUse": { object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#ToolUse`) }, "llmCall": { object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#LlmCall`) }, "intentMatch": { object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#IntentMatch`) }, "flowStateUpdate": { object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#FlowStateUpdate`) }, "playbookInvocation": { object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#PlaybookInvocation`) }, "flowInvocation": { object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#FlowInvocation`) }, "playbookTransition": { object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#PlaybookTransition`) }, "flowTransition": { object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#FlowTransition`) }, "tts": { object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#TTS`) }, "stt": { object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#STT`) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| `displayName` | `string` Output only. The display name of the action. |
| `startTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. Timestamp of the start of the agent action. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `completeTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. Timestamp of the completion of the agent action. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `subExecutionSteps[]` | ``object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#Span`)`` Optional. The detailed tracing information for sub execution steps of the action. |
| `status` | ``object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#Status`)`` Optional. Output only. The status of the action. |
| Action details. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `userUtterance` | ``object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#UserUtterance`)`` Optional. Agent obtained a message from the customer. |
| `event` | ``object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#Event`)`` Optional. The agent received an event from the customer or a system event is emitted. |
| `agentUtterance` | ``object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#AgentUtterance`)`` Optional. Action performed by the agent as a message. |
| `toolUse` | ``object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#ToolUse`)`` Optional. Action performed on behalf of the agent by calling a plugin tool. |
| `llmCall` | ``object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#LlmCall`)`` Optional. Output only. LLM call performed by the agent. |
| `intentMatch` | ``object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#IntentMatch`)`` Optional. Output only. Intent Match in flows. |
| `flowStateUpdate` | ``object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#FlowStateUpdate`)`` Optional. Output only. The state machine update in flows. |
| `playbookInvocation` | ``object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#PlaybookInvocation`)`` Optional. Action performed on behalf of the agent by invoking a child playbook. |
| `flowInvocation` | ``object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#FlowInvocation`)`` Optional. Action performed on behalf of the agent by invoking a CX flow. |
| `playbookTransition` | ``object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#PlaybookTransition`)`` Optional. Action performed on behalf of the agent by transitioning to a target playbook. |
| `flowTransition` | ``object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#FlowTransition`)`` Optional. Action performed on behalf of the agent by transitioning to a target CX flow. |
| `tts` | ``object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#TTS`)`` Optional. Text-to-speech action performed by the agent. |
| `stt` | ``object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#STT`)`` Optional. Speech-to-text action performed by the agent. |
| End of mutually exclusive fields. ||

## UserUtterance

UserUtterance represents one message sent by the customer.

| JSON representation |
|---|
| ``` { "text": string, "audioTokens": [ integer ], "audio": string } ``` |

| Fields ||
|---|---|
| `text` | `string` Required. Message content in text. |
| `audioTokens[]` | `integer` Optional. Tokens of the audio input. |
| `audio` | `string (https://developers.google.com/discovery/v1/type-format format)` Optional. Audio input. A base64-encoded string. |

## Event

Event represents the event sent by the customer.

| JSON representation |
|---|
| ``` { "event": string, // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "text": string // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| `event` | `string` Required. Name of the event. |
| Payload of the event. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `text` | `string` Optional. Unstructured text payload of the event. |
| End of mutually exclusive fields. ||

## AgentUtterance

AgentUtterance represents one message sent by the agent.

| JSON representation |
|---|
| ``` { "text": string, "requireGeneration": boolean } ``` |

| Fields ||
|---|---|
| `text` | `string` Required. Message content in text. |
| `requireGeneration` | `boolean` Optional. True if the agent utterance needs to be generated by the LLM. Only used in webhook response to differentiate from empty text. Revisit whether we need this field or mark `text` as optional when we expose webhook interface to customer. |

## ToolUse

Stores metadata of the invocation of an action supported by a tool.

| JSON representation |
|---|
| ``` { "tool": string, "displayName": string, "action": string, "inputActionParameters": { object }, "outputActionParameters": { object }, // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "dataStoreToolTrace": { object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#DataStoreToolTrace`) }, "webhookToolTrace": { object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#WebhookToolTrace`) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| `tool` | `string` Required. The `https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents.tools#Tool` that should be used. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>`. |
| `displayName` | `string` Output only. The display name of the tool. |
| `action` | `string` Optional. Name of the action to be called during the tool use. |
| `inputActionParameters` | ``object (`https://protobuf.dev/reference/protobuf/google.protobuf#struct` format)`` Optional. A list of input parameters for the action. |
| `outputActionParameters` | ``object (`https://protobuf.dev/reference/protobuf/google.protobuf#struct` format)`` Optional. A list of output parameters generated by the action. |
| The tracing information for different tools. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `dataStoreToolTrace` | ``object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#DataStoreToolTrace`)`` Optional. Data store tool trace. |
| `webhookToolTrace` | ``object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#WebhookToolTrace`)`` Optional. Webhook tool trace. |
| End of mutually exclusive fields. ||

## DataStoreToolTrace

The tracing information for the data store tool.

| JSON representation |
|---|
| ``` { "dataStoreConnectionSignals": { object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/DataStoreConnectionSignals`) } } ``` |

| Fields ||
|---|---|
| `dataStoreConnectionSignals` | ``object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/DataStoreConnectionSignals`)`` Optional. Data store connection feature output signals. |

## WebhookToolTrace

The tracing information for the webhook tool.

| JSON representation |
|---|
| ``` { "webhookTag": string, "webhookUri": string } ``` |

| Fields ||
|---|---|
| `webhookTag` | `string` Optional. The tag of the webhook. |
| `webhookUri` | `string` Optional. The url of the webhook. |

## LlmCall

Stores metadata of the call of an LLM.

| JSON representation |
|---|
| ``` { "retrievedExamples": [ { object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#RetrievedExample`) } ], "tokenCount": { object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#TokenCount`) }, "model": string, "temperature": number } ``` |

| Fields ||
|---|---|
| `retrievedExamples[]` | ``object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#RetrievedExample`)`` A list of relevant examples used for the LLM prompt. |
| `tokenCount` | ``object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#TokenCount`)`` The token counts of the LLM call. |
| `model` | `string` The model of the LLM call. |
| `temperature` | `number` The temperature of the LLM call. |

## RetrievedExample

Relevant example used for the LLM prompt.

| JSON representation |
|---|
| ``` { "exampleId": string, "exampleDisplayName": string, "retrievalStrategy": enum (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#RetrievalStrategy`), "matchedRetrievalLabel": string } ``` |

| Fields ||
|---|---|
| `exampleId` | `string` The id of the example. |
| `exampleDisplayName` | `string` The display name of the example. |
| `retrievalStrategy` | ``enum (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#RetrievalStrategy`)`` Retrieval strategy of the example. |
| `matchedRetrievalLabel` | `string` Optional. The matched retrieval label of this LLM call. |

## RetrievalStrategy

Retrieval strategy on how the example is selected to be fed to the prompt.

| Enums ||
|---|---|
| `RETRIEVAL_STRATEGY_UNSPECIFIED` | Not specified. `DEFAULT` will be used. |
| `DEFAULT` | Default retrieval strategy. |
| `STATIC` | Static example will always be inserted to the prompt. |
| `NEVER` | Example will never be inserted into the prompt. |

## TokenCount

Stores token counts of the LLM call.

| JSON representation |
|---|
| ``` { "totalInputTokenCount": string, "conversationContextTokenCount": string, "exampleTokenCount": string, "totalOutputTokenCount": string } ``` |

| Fields ||
|---|---|
| `totalInputTokenCount` | `string (https://developers.google.com/discovery/v1/type-format format)` The total number of tokens used for the input to the LLM call. |
| `conversationContextTokenCount` | `string (https://developers.google.com/discovery/v1/type-format format)` The number of tokens used for the conversation history in the prompt. |
| `exampleTokenCount` | `string (https://developers.google.com/discovery/v1/type-format format)` The number of tokens used for the retrieved examples in the prompt. |
| `totalOutputTokenCount` | `string (https://developers.google.com/discovery/v1/type-format format)` The total number of tokens used for the output of the LLM call. |

## IntentMatch

Stores metadata of the intent match action.

| JSON representation |
|---|
| ``` { "matchedIntents": [ { object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#MatchedIntent`) } ] } ``` |

| Fields ||
|---|---|
| `matchedIntents[]` | ``object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#MatchedIntent`)`` The matched intent. |

## MatchedIntent

Stores the matched intent, which is the result of the intent match action.

| JSON representation |
|---|
| ``` { "intentId": string, "displayName": string, "score": number, "generativeFallback": { object } } ``` |

| Fields ||
|---|---|
| `intentId` | `string` The ID of the matched intent. |
| `displayName` | `string` The display name of the matched intent. |
| `score` | `number` The score of the matched intent. |
| `generativeFallback` | ``object (`https://protobuf.dev/reference/protobuf/google.protobuf#struct` format)`` The generative fallback response of the matched intent. |

## FlowStateUpdate

Stores metadata of the state update action, such as a state machine execution in flows.

| JSON representation |
|---|
| ``` { "eventType": string, "pageState": { object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#PageState`) }, "updatedParameters": { object }, "destination": string, "functionCall": { object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#FunctionCall`) } } ``` |

| Fields ||
|---|---|
| `eventType` | `string` The type of the event that triggered the state update. |
| `pageState` | ``object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#PageState`)`` The updated page and flow state. |
| `updatedParameters` | ``object (`https://protobuf.dev/reference/protobuf/google.protobuf#struct` format)`` The updated parameters. |
| `destination` | `string` The destination of the transition. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>` or `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookId>`. |
| `functionCall` | ``object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#FunctionCall`)`` The function call to execute. |

## PageState

Stores the state of a page and its flow.

| JSON representation |
|---|
| ``` { "page": string, "displayName": string, "status": string } ``` |

| Fields ||
|---|---|
| `page` | `string` The ID of the page. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`. |
| `displayName` | `string` The display name of the page. |
| `status` | `string` The status of the page. |

## FunctionCall

Stores the metadata of a function call to execute.

| JSON representation |
|---|
| ``` { "name": string } ``` |

| Fields ||
|---|---|
| `name` | `string` The name of the function call. |

## PlaybookInvocation

Stores metadata of the invocation of a child playbook. Playbook invocation actions enter the child playbook.

| JSON representation |
|---|
| ``` { "playbook": string, "displayName": string, "playbookInput": { object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/PlaybookInput`) }, "playbookOutput": { object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/PlaybookOutput`) }, "playbookState": enum (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/OutputState`) } ``` |

| Fields ||
|---|---|
| `playbook` | `string` Required. The unique identifier of the playbook. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`. |
| `displayName` | `string` Output only. The display name of the playbook. |
| `playbookInput` | ``object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/PlaybookInput`)`` Optional. Input of the child playbook invocation. |
| `playbookOutput` | ``object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/PlaybookOutput`)`` Optional. Output of the child playbook invocation. |
| `playbookState` | ``enum (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/OutputState`)`` Required. Playbook invocation's output state. |

## FlowInvocation

Stores metadata of the invocation of a child CX flow. Flow invocation actions enter the child flow.

| JSON representation |
|---|
| ``` { "flow": string, "displayName": string, "inputActionParameters": { object }, "outputActionParameters": { object }, "flowState": enum (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/OutputState`) } ``` |

| Fields ||
|---|---|
| `flow` | `string` Required. The unique identifier of the flow. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<Agentflows/<FlowID>`. |
| `displayName` | `string` Output only. The display name of the flow. |
| `inputActionParameters` | ``object (`https://protobuf.dev/reference/protobuf/google.protobuf#struct` format)`` Optional. A list of input parameters for the flow. |
| `outputActionParameters` | ``object (`https://protobuf.dev/reference/protobuf/google.protobuf#struct` format)`` Optional. A list of output parameters generated by the flow invocation. |
| `flowState` | ``enum (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/OutputState`)`` Required. Flow invocation's output state. |

## PlaybookTransition

Stores metadata of the transition to another target playbook. Playbook transition actions exit the caller playbook and enter the target playbook.

| JSON representation |
|---|
| ``` { "playbook": string, "displayName": string, "inputActionParameters": { object } } ``` |

| Fields ||
|---|---|
| `playbook` | `string` Required. The unique identifier of the playbook. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`. |
| `displayName` | `string` Output only. The display name of the playbook. |
| `inputActionParameters (deprecated)` | ``object (`https://protobuf.dev/reference/protobuf/google.protobuf#struct` format)`` > [!WARNING] > This item is deprecated! A list of input parameters for the action. |

## FlowTransition

Stores metadata of the transition to a target CX flow. Flow transition actions exit the caller playbook and enter the child flow.

| JSON representation |
|---|
| ``` { "flow": string, "displayName": string, "inputActionParameters": { object } } ``` |

| Fields ||
|---|---|
| `flow` | `string` Required. The unique identifier of the flow. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<Agentflows/<FlowID>`. |
| `displayName` | `string` Output only. The display name of the flow. |
| `inputActionParameters (deprecated)` | ``object (`https://protobuf.dev/reference/protobuf/google.protobuf#struct` format)`` > [!WARNING] > This item is deprecated! A list of input parameters for the action. |

## TTS

This type has no fields.
Stores metadata of the Text-to-Speech action.

## STT

This type has no fields.
Stores metadata of the Speech-to-Text action.

## Span

A span represents a sub execution step of an action.

| JSON representation |
|---|
| ``` { "name": string, "tags": [ string ], "metrics": [ { object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#NamedMetric`) } ], "startTime": string, "completeTime": string } ``` |

| Fields ||
|---|---|
| `name` | `string` The name of the span. |
| `tags[]` | `string` The metadata tags of the span such as span type. |
| `metrics[]` | ``object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#NamedMetric`)`` The unordered collection of metrics in this span. |
| `startTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Timestamp of the start of the span. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `completeTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Timestamp of the completion of the span. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |

## NamedMetric

A named metric is a metric with name, value and unit.

| JSON representation |
|---|
| ``` { "name": string, "value": value, "unit": string } ``` |

| Fields ||
|---|---|
| `name` | `string` The name of the metric. |
| `value` | ``value (`https://protobuf.dev/reference/protobuf/google.protobuf#value` format)`` The value of the metric. |
| `unit` | `string` The unit in which this metric is reported. Follows [The Unified Code for Units of Measure](https://unitsofmeasure.org/ucum.html) standard. |

## Status

The status of the action.

| JSON representation |
|---|
| ``` { "exception": { object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#ExceptionDetail`) } } ``` |

| Fields ||
|---|---|
| `exception` | ``object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/Action#ExceptionDetail`)`` Optional. The exception thrown during the execution of the action. |

## ExceptionDetail

Exception thrown during the execution of an action.

| JSON representation |
|---|
| ``` { "errorMessage": string } ``` |

| Fields ||
|---|---|
| `errorMessage` | `string` Optional. The error message. |