Skip to main content

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

1

Open a Library Item

Click a library item from the Libraries list to open the detail view.
2

Add Test Data

Switch to the Test Data tab and add at least one test case with an input and expected output.
3

Switch to Test Runs

Click the Test Runs tab in the right panel.
4

Run the Tests

Click the Run button to execute all test cases against the current library content.
5

Review Results

Each test case shows its status, duration, and the actual output alongside the expected output. Expand any test result to see the full input, expected output, actual output, and any error messages.
The Run button is disabled until you have added test data. Add test cases in the Test Data tab first.

Test Result Statuses

StatusMeaning
RunningThe test is currently executing
SuccessThe actual output matched the expected output
ErrorThe 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.

Variables

Store reusable JSON values for use in automation steps.

Automations Overview

An introduction to automations and how they work.