What Are Structured Work Instructions?
Structured Work Instructions are machine-readable execution guides designed specifically for AI agents. Instead of free-form prose, they contain defined steps with explicit actions, tools, inputs, outputs, and decision points.
Creating a Structured Work Instruction
- Navigate to Work Instructions in the sidebar
- Click ”+ New Work Instruction”
- Enter a title
- Select Structured mode
- Add steps using the structured step builder
Anatomy of a Structured Step
Each step includes:
| Field | Description | Example |
|---|---|---|
| Action | What to do | ”Extract email addresses from the spreadsheet” |
| Tool | Which tool/API to use | ”Google Sheets API” |
| Input | What data is needed | ”Spreadsheet URL, Sheet name” |
| Expected Output | What the result should be | ”List of email addresses in JSON format” |
| Decision Point | Conditional logic | ”If more than 100 emails, split into batches of 50” |
Adding Steps
- Click ”+ Add Step” in the structured editor
- Fill in each field for the step
- Reorder steps by dragging them
- Set decision points for conditional branching
- Save the Work Instruction
How AI Agents Use Structured WIs
When an AI agent executes a task with structured Work Instructions:
- The agent pulls the WI via the self-service API
- It reads each step in order
- For each step, it identifies the action, tool, and input
- It executes the step and validates against the expected output
- At decision points, it evaluates the condition and branches accordingly
- It reports progress step-by-step back to BFF
Best Practices
- Be explicit — AI agents follow instructions literally
- Define clear inputs and outputs for each step
- Use decision points for error handling
- Test with a dry run before deploying live
Important: When a structured Work Instruction is updated, any AI agents using it are automatically notified via webhook so they always execute with the latest instructions.