What are Libraries?
Libraries are reusable components — prompts or scripts — that you can define once and reference from multiple automation workflows. Each library item can have test cases so you can validate its behavior before deploying it.Accessing Libraries
In the Automations section of your organization, click Libraries in the left sidebar.Library Detail View
Clicking a library item opens the detail view, which is split into two panels:- Left panel — the prompt or script content
- Right panel — tabs for Test Data and Test Runs
Test Data
The Test Data tab lets you define test cases for a library item. Each test case specifies an input and expected output, which are used when you run tests.Test Runs
The Test Runs tab lets you execute the library item’s test cases and review the results.Running Tests
Add Test Data
Switch to the Test Data tab and add at least one test case with an input and expected output.
The Run button is disabled until you have added test data. Add test cases in the Test Data tab first.
Test Result Statuses
| Status | Meaning |
|---|---|
| Running | The test is currently executing |
| Success | The actual output matched the expected output |
| Error | The test encountered an error during execution |
Clearing Results
Click Clear to remove all test run results for the current library item. This does not affect the library content or test data.Related Documentation
Variables
Store reusable JSON values for use in automation steps.
Automations Overview
An introduction to automations and how they work.