Resource: Example
Example represents a sample execution of the playbook in the conversation.
An example consists of a list of ordered actions performed by end user or Dialogflow agent according the playbook instructions to fulfill the task.
| JSON representation |
|---|
{ "name": string, "playbookInput": { object ( |
| Fields | |
|---|---|
name |
The unique identifier of the playbook example. Format: |
playbookInput |
Optional. The input to the playbook in the example. |
playbookOutput |
Optional. The output of the playbook in the example. |
actions[] |
Required. The ordered list of actions performed by the end user and the Dialogflow agent. |
displayName |
Required. The display name of the example. |
description |
Optional. The high level concise description of the example. The max number of characters is 200. |
tokenCount |
Output only. Estimated number of tokes current example takes when sent to the LLM. |
createTime |
Output only. The timestamp of initial example creation. 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: |
updateTime |
Output only. Last time the example was updated. 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: |
conversationState |
Required. Example's output state. |
languageCode |
Optional. The language code of the example. If not specified, the agent's default language is used. Note: languages must be enabled in the agent before they can be used. Note: example's language code is not currently used in dialogflow agents. |
Methods |
|
|---|---|
|
Creates an example in the specified playbook. |
|
Deletes the specified example. |
|
Retrieves the specified example. |
|
Returns a list of examples in the specified playbook. |
|
Update the specified example. |