> ## Documentation Index
> Fetch the complete documentation index at: https://docs.duvo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Policy Variables

> Keep the rules a process follows, such as approval thresholds, tolerances, mailboxes and approvers, as typed answers your team can change without editing an Agent.

Policy variables are the rules every Run of an Automation follows: the thresholds Duvo works inside, the approvals it waits for, and who it comes back to. They live on the Automation's **Policy variables** tab, outside the AOPs, so the people who own a rule can change it without touching an Agent. Change an answer and the Agents read the new one on their next Run.

![Policy variables for Invoice Processing grouped into Approvals, Matching rules, Inputs and Supplier communication, with answers such as an auto-approve threshold of 2500 and a price tolerance of 2](https://mintcdn.com/duvo-d8027998/huqI5JuROcROFtIE/images/user-guide/automations/policy-variables.png?fit=max\&auto=format\&n=huqI5JuROcROFtIE\&q=85\&s=23de4c44dfad130ab9f7b21fed1625e6)

## When to use a Policy variable

Put a value in Policy when your team expects to tune it, or when someone other than the Agent's builder owns it:

* **Thresholds and limits.** Auto-approve up to EUR 2,500; flag a price difference above 2%.
* **Inputs and destinations.** The mailbox invoices arrive in; the folder reports go to.
* **Lists.** Suppliers that always need review; customers who get a same-day reply.
* **Routing.** Who approves invoices for each cost centre.
* **Preferences.** The tone of supplier emails.

Keep the steps themselves in the AOP.

## Give an Agent a variable

An Agent receives only the variables it's given. There are two ways to give it one:

* **Mention it in the AOP.** Type `@` in the AOP and pick the variable, for example "post the invoice if the total is at or below @Auto-approve threshold". The mention gives the Agent the variable, and its **Policy** section shows it as on.
* **Choose it in the Policy section.** Open the Agent and turn the variable on in the **Policy** section of its setup. Use this for a variable the Agent needs that the AOP doesn't name.

Typing a variable's name in the AOP as plain text, without `@`, doesn't give the Agent its value. See [Writing effective AOPs](https://docs.duvo.ai/best-practices/writing-effective-aops.md).

## Answer types

Each variable has a type, which decides what an answer looks like:

| Type | Example |
| - | - |
| **Text** | A short instruction or note |
| **Identifier** | `ap@northwind-foods.example`, an account number or a folder path |
| **Number** | `2500` |
| **One choice** | **Formal**, **Friendly** or **Brief** |
| **Several choices** | Any of a fixed set of options |
| **List** | Danube Cold Chain, Nordic Fish Imports |
| **Ranked list** | A list in order of priority |
| **People** | The people to notify or escalate to |
| **Table** | Rows with fixed columns, such as **Cost centre** and **Approver** |

## Add a variable

**1. Open the dialog**

Click **Add variable** at the top of the tab.

**2. Describe it**

Give it a **Label**, such as *Approval threshold*, and the question it answers, such as *Above what amount does a claim need approval?* Add guidance or an example answer if the question could be read more than one way.

**3. Choose the type and section**

Pick the **Type**. For **One choice** and **Several choices**, add the **Options**; for **Table**, add the **Columns**. Put it in a **Section**, or create a **New section…** to group related variables.

**4. Save and answer it**

The variable appears in its section. Click its answer to fill it in.

## Change an answer

Click an answer, change it and save. A variable without an answer shows a prompt, such as **Select an option**, until someone fills it in.

> [!WARNING]
>
> An answer takes effect on the Automation's next Run. There's no draft or review step, so check the value before you save.

Use **Search variables** to find a variable on a long list. A variable's menu lets you edit its question or delete it; a section's menu renames, reorders or removes the section.

## Who can change Policy

Policy variables follow the same rule as editing an Agent: the person who created the Automation needs the **Builder** role or above, and everyone else needs a role that can edit other people's Agents, such as **Manager**. See [Roles and permissions](https://docs.duvo.ai/user-guide/teams/roles-and-permissions.md).

> [!TIP]
>
> You can read and set Policy variables from the terminal too. See [Policy in the CLI](https://docs.duvo.ai/cli/policy.md).

## Related

> [card] [Agents and Queues](https://docs.duvo.ai/user-guide/automations/agents-and-queues.md)
>
> Refer to Policy variables from an Agent's AOP.

> [card] [People and roles](https://docs.duvo.ai/user-guide/automations/people-and-roles.md)
>
> Decide who works with the process.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.