# Procedures

> Tell the agent how you work in one situation, such as a return or a first visit, and what to keep in mind while it lasts.

Source: https://docs.komplian.com/ai-agent/procedures

Where: AI Agent → Procedures
Who: Owners and admins.

A procedure tells the agent how you work in one situation: what starts it, what to keep in mind while it lasts and which of your tools to reach for. Outside that situation, the agent follows its general instructions.

## Create a procedure

### 1. Open Procedures
Go to **AI Agent → Procedures** and press **New procedure**.

### 2. Name it
Write a **Name** you will recognise, for example "Returns".

### 3. Say what starts it
In **Starts when the customer says**, write words or phrases separated by commas. A single word matches that whole word. A phrase matches the whole phrase.

### 4. Write what the agent should do
In **While it runs, the agent should**, write what to ask, check or explain, in your own words. The agent gets these instructions only in the replies this procedure covers.

### 5. Pick what it reaches for
Under **Reach for**, select the lookups the agent should use first, such as order lookup or product search. The list shows only the lookups your workspace has.

### 6. Save
Leave **Active** on and press **Save**.

## Edit, pause or delete

In the list, press **Edit** to change a procedure. Switch off **Active** to pause it: it stays in the list marked **paused**. Press **Delete** and confirm **Delete it?** to remove it.

## What a procedure cannot do

A procedure steers the conversation. It never books, cancels, sends or charges anything on its own. Those actions still happen only when the agent and the customer agree on them, under the agent's normal rules.

## Check it works

Open [Test the agent](https://docs.komplian.com/ai-agent/test-agent) and write a message with one of the trigger words. The **Turn trace** shows the **Procedure** that ran.

## Example

| Field | Example |
| --- | --- |
| **Name** | Returns |
| **Starts when the customer says** | return, refund, send it back, exchange |
| **While it runs, the agent should** | Ask for the order number and the reason. Explain that returns are accepted within 30 days in original condition. Offer an exchange first. |
| **Reach for** | Order lookup |

Write it the way you would brief a new colleague: what to ask, in what order, and what never to promise.

## Limits

| Limit | Value |
| --- | --- |
| Procedures per workspace | 10. Delete one to add another. |
| Plans | All plans |

## Related

- [How the agent works](https://docs.komplian.com/ai-agent/overview): The lookups and actions a procedure can reach for.
- [Knowledge](https://docs.komplian.com/ai-agent/knowledge-base): The facts the agent answers with.
- [Performance](https://docs.komplian.com/ai-agent/performance): See how it does with real customers.
