- Steps — simulate a user input and can include an input text and input data.
- Assertions — check the AI Agent’s responses and different aspects of the Flow for each Step against a defined value. You can also invert the Assertion check, which means the Assertion checks if the defined value is missing.
Assertion Types
Assertion Types
Limitations
- You can run up to 10 Playbooks simultaneously. You can change this limit for on-premises installations by specifying the
MAX_CONCURRENT_PLAYBOOK_EXECUTIONSvariable in thevalues.yamlfile. - A Playbook can contain up to 50 Steps.
Restrictions
-
Playbooks don’t allow dots
(.)in JSON keys. Referencing subkeys likeuser.namecan cause runs to be hidden or Snapshots to fail. Instead, validate the full JSON object:
Working with Playbooks
- GUI
- CLI
- API
In Test > Playbooks, you can create, delete, and run Playbooks as well as export them as a Package. To define Steps and Assertions in the Playbook editor, select a Playbook from the list. Playbook runs are Tasks and take place in the background. The results are available in the Playbook editor.Alternatively, you can also run a Playbook and view the results from the Interaction Panel, as well as create Playbooks from a conversation with the AI Agent.Playbook EditorIn the Playbook editor, configure the following settings for all Steps:
tab. You can hover over the Assertion checks for more details.To create Playbooks from a conversation, follow these steps:
For each Step, you can enter input text and data to send to the AI Agent, and add Assertions to check the AI Agent’s response to the input.Runs TabOn the Runs tab in the Playbook editor, you can run Playbooks and view the results of the Playbook runs. You can also filter the runs by status and creator.After the Playbook run is completed, click it in the list to see the results. In the pane that opens on the right, you can hover over the Assertion checks for more details.Interaction PanelTo run a Playbook in the Interaction Panel, select and run a Playbook from the
- Chat with the AI Agent on the
tab.
- Click
above the chat window and select Create Playbook.