Use Cases
- Compliance checking: Define rules and red/green flags for reviewing documents against regulatory requirements
- Document classification: Create disposition categories for agents to classify documents into
- Structured extraction: Provide hierarchical guidelines that agents follow when extracting information
- Audit workflows: Maintain versioned policies for traceability and rollback capabilities
How Policies Work
- Create a policy at the organization level with a name and description
- Add versions to the policy, each containing structured content (guidelines, instructions, dispositions)
- Link the policy to one or more agents via the agent’s engine configuration
- Run agent jobs - agents apply the policy’s current version when processing documents
- Update policies by creating new versions without breaking existing agent configurations
Policy Versioning
Policies use a versioning model similar to agents:- Each policy has multiple versions containing the actual content
- One version is marked as the current version
- Agents reference a specific policy version via
policy_version_id - Creating a new version automatically sets it as current
- You can switch back to previous versions at any time
Policy Content Structure
Each policy version contains structured JSON content with four optional sections:Guidelines
A hierarchical structure for organizing rules:| Field | Description |
|---|---|
categories | Top-level groupings of related rules |
rules | Individual rules within a category |
sub_rules | Nested rules for additional detail |
flag | Optional GREEN_FLAG or RED_FLAG indicator |
Instructions
Free-form text instructions for the agent:Dispositions
Classification options for agent outputs:Summary Template
A Handlebars-style template for generating structured summaries:Linking Policies to Agents
Policies are linked to agents through the agent’s engine configuration. When creating or updating an agent version, specify thepolicy_version_id to use:
Policies cannot be deleted while they are in use by any agent. You must first unlink all agents before deleting a policy.