Skip to main content
Policies allow you to create versioned, structured rulesets that agents use for document processing, compliance checking, and classification tasks. Instead of embedding rules directly in agent prompts, policies provide a centralized way to manage guidelines, instructions, and classification dispositions.

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

  1. Create a policy at the organization level with a name and description
  2. Add versions to the policy, each containing structured content (guidelines, instructions, dispositions)
  3. Link the policy to one or more agents via the agent’s engine configuration
  4. Run agent jobs - agents apply the policy’s current version when processing documents
  5. 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:

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 the policy_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.

API Reference

List Policies

Get all policies in your organization

Create Policy

Create a new policy with initial version

Create Version

Add a new version to an existing policy

Set Current Version

Change which version is active