Skip to content

Commit 675c1b9

Browse files
Merge pull request #97941 from Expensify/helpsite-add-agent-suggested-rules
[No QA] Create Suggested agent rules reference doc
2 parents a7533a7 + 4f5ef59 commit 675c1b9

2 files changed

Lines changed: 159 additions & 7 deletions

File tree

docs/articles/new-expensify/ai-agents/Create-Agent-Rules.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Create Agent Rules
33
description: Create AI-powered workspace rules using natural-language instructions to automate report reviews, routing, approvals, and other actions.
4-
keywords: [agent rules, RuleBot, AI rules, automated approvals, report routing, workspace automation, approval automation, edit agent rule, agent rule history, admins room audit trail]
4+
keywords: [agent rules, RuleBot, AI rules, automated approvals, report routing, workspace automation, approval automation, edit agent rule, agent rule history, admins room audit trail, suggested rule, pre-written rule, rule template]
55
internalScope: Audience is Workspace Admins. Covers creating, managing, and understanding Agent Rules and how RuleBot enforces them. Does not cover Agent management, personal AI features, or Concierge AI.
66
---
77

@@ -15,12 +15,9 @@ When you create your first Agent rule, Expensify automatically creates RuleBot,
1515

1616
## Who can use Agent rules
1717

18-
Agent Rules are currently available through an open beta program. If you'd like to try Agent rules and provide feedback, contact Concierge to request access.
19-
2018
To create an Agent rule:
2119

2220
- You must be a Workspace Admin.
23-
- The workspace must have access to the Agent Rules beta.
2421
- **Rules** must be enabled for the workspace.
2522

2623
---
@@ -29,9 +26,14 @@ To create an Agent rule:
2926

3027
1. In the navigation tabs (on the left on web, on the bottom on mobile), select **Workspaces > [Your Workspace]**
3128
2. Click **Rules**.
32-
3. In the **Agent rules** section, click **Add AI rule**.
33-
4. Enter a natural-language description of the behavior you want.
34-
5. Click **Save**.
29+
3. In the **Agent rules** section, click **Add agent rule**. The **Suggested** tab opens with a list of recommended rules.
30+
4. Do one of the following:
31+
- Select a suggested rule, then click **Next** to open it in the **Edit** tab. Use **Find a rule** to search the suggestions.
32+
- Open the **Edit** tab to write your own rule from scratch.
33+
5. On the **Edit** tab, review or edit the natural-language description of the behavior you want.
34+
6. Click **Save**.
35+
36+
For a list of the available suggested rules, see [Use Suggested Agent Rules](/articles/new-expensify/ai-agents/Use-Suggested-Agent-Rules).
3537

3638
---
3739

Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
1+
---
2+
title: Use Suggested Agent Rules
3+
description: Learn what each suggested Agent rule does and when to use it to automate common workspace workflows.
4+
keywords: [suggested Agent rules, Agent rules, RuleBot, AI rules, workspace automation, approval rules]
5+
internalScope: Audience is Workspace Admins. Covers the available suggested Agent rules, what each one does, and when to use it. Does not cover creating custom Agent rules, personal Agents, or writing Agent instructions.
6+
retrievalIntent: Which suggested Agent rule should I use?
7+
contentType: topic
8+
---
9+
10+
# Use Suggested Agent Rules
11+
12+
Suggested Agent rules are pre-written Agent rules for common workspace workflows. Instead of writing a rule from scratch, you can start with a suggested rule, review its instructions, and edit them before saving.
13+
14+
Suggested Agent rules are enforced by RuleBot like any other Agent rule.
15+
16+
To learn how to create Agent rules, see [Create Agent Rules](/articles/new-expensify/ai-agents/Create-Agent-Rules).
17+
18+
---
19+
20+
## How Suggested Agent rules work
21+
22+
Each suggested Agent rule includes a predefined set of natural-language instructions for a common expense review or approval workflow.
23+
24+
When you create a rule from a suggestion, you can review and edit its instructions before saving. After it's created, you can continue editing it like any other Agent rule.
25+
26+
For guidance on writing clear, effective instructions, see [How to Write Agent Rules](/articles/new-expensify/ai-agents/How-to-Write-Agent-Rules).
27+
28+
---
29+
30+
## What amount and spending rules are available
31+
32+
| Suggested Agent rule | What it does | Default instruction |
33+
| --- | --- | --- |
34+
| **Per-expense amount over a cap** | Rejects expenses that meet or exceed a specified amount. | Reject any single expense of $75 or more. |
35+
| **Per-expense amount within a flagged band** | Rejects expenses whose amount falls within a specified range. | Reject expenses with an amount between $500 and $1000 inclusive. |
36+
| **Report total over a cap** | Rejects reports whose total exceeds a specified amount. | Reject reports whose total is over $2,500. |
37+
38+
---
39+
40+
## What category rules are available
41+
42+
| Suggested Agent rule | What it does | Default instruction |
43+
| --- | --- | --- |
44+
| **Category is a specific value** | Only approves expenses assigned to one category. | Only approve expenses categorized as "Travel". Reject expenses in any other category. |
45+
| **Category is in an allowed set** | Only approves expenses assigned to approved categories. | Approve expenses categorized as "Travel" or "Meals & Entertainment". Reject expenses in any other category. |
46+
| **Category is empty** | Rejects expenses that don't have a category assigned. | Reject any expense that has no category assigned. Approve expenses that have a category. |
47+
48+
---
49+
50+
## What merchant rules are available
51+
52+
| Suggested Agent rule | What it does | Default instruction |
53+
| --- | --- | --- |
54+
| **Merchant is a specific vendor** | Only approves expenses from a specific merchant. | Only approve expenses from the vendor "Acme Corp". If an expense is from any other merchant, reject it with a brief one-sentence reason. |
55+
| **Merchant name contains a banned word** | Rejects expenses whose merchant name contains a specified word. | Reject any expense whose merchant name contains the word "casino" (in any capitalization). Approve all other expenses. |
56+
| **Merchant is on the allowed list** | Only approves expenses from approved vendors. | Approve expenses only from these approved vendors: Staples, Amazon, or Uber. Reject expenses from any merchant not on that list. |
57+
| **Merchant is on the blocked list** | Rejects expenses from blocked vendors. | Reject expenses from these blocked vendors: SketchyVendor Inc, BadActor LLC. Approve expenses from every other merchant. |
58+
59+
---
60+
61+
## What currency and tax rules are available
62+
63+
| Suggested Agent rule | What it does | Default instruction |
64+
| --- | --- | --- |
65+
| **Currency is a specific value** | Only approves expenses submitted in one currency. | Only approve expenses submitted in US Dollars (USD). Reject expenses in any other currency. |
66+
| **Currency is in an allowed set** | Only approves expenses submitted in approved currencies. | Approve expenses in USD or GBP only. Reject expenses in any other currency. |
67+
| **Tax rate applied** | Rejects expenses that don't have a tax rate applied. | Reject expenses that have no tax rate applied. Approve expenses with a tax rate. |
68+
69+
---
70+
71+
## What tag and description rules are available
72+
73+
| Suggested Agent rule | What it does | Default instruction |
74+
| --- | --- | --- |
75+
| **Billable status** | Approves or rejects expenses based on whether they're billable. | Only approve non-billable expenses. Reject any expense marked as billable to a client. |
76+
| **Description is empty** | Rejects expenses that don't include a description. | Reject expenses that have no description. Approve expenses that include a description. |
77+
| **Tag is a specific value** | Only approves expenses tagged to a specific project. | Only approve expenses tagged to the project "Apollo". Reject expenses tagged to any other project. |
78+
| **Tag is empty** | Rejects expenses missing a required tag. | Reject expenses that are missing a project tag. Approve expenses that have a tag. |
79+
80+
---
81+
82+
## What date and time rules are available
83+
84+
| Suggested Agent rule | What it does | Default instruction |
85+
| --- | --- | --- |
86+
| **Expense age over a threshold** | Rejects expenses older than a specified number of days. | Reject expenses whose transaction date is more than 14 days ago. Approve recent expenses. |
87+
| **Expense within the submission deadline** | Rejects expenses submitted outside your organization's submission window. | Our policy requires expenses to be submitted within 30 days of the transaction date. Reject expenses dated more than 30 days ago; approve the rest. |
88+
| **Weekend spending** | Rejects expenses dated on Saturday or Sunday. | Reject expenses dated on a weekend (Saturday or Sunday). Approve weekday expenses. |
89+
| **Within an event date window** | Only approves expenses that occurred during a specified date range. | We are only reimbursing expenses dated during our company offsite, October 7 through October 11, 2025. Reject expenses dated outside that window. |
90+
91+
---
92+
93+
## What report-level rules are available
94+
95+
| Suggested Agent rule | What it does | Default instruction |
96+
| --- | --- | --- |
97+
| **Unusually large report (expense count)** | Rejects reports containing more than a specified number of expenses. | Reject reports that contain more than 5 expenses; they must be split into smaller reports. Approve reports with 5 or fewer expenses. |
98+
| **Report mixes billable and non-billable expenses** | Rejects reports that contain both billable and non-billable expenses. | A report must be either all billable or all non-billable. Reject reports that mix billable and non-billable expenses. |
99+
| **Report mixes expense categories** | Rejects reports containing expenses from multiple categories. | Every expense on a report must be in the same category. Reject reports whose expenses span different categories. |
100+
| **Report mixes expenses tagged to different projects** | Rejects reports containing expenses assigned to multiple projects. | Every expense on a report must be tagged to the same project. Reject reports mixing projects. |
101+
102+
---
103+
104+
## What receipt intelligence rules are available
105+
106+
| Suggested Agent rule | What it does | Default instruction |
107+
| --- | --- | --- |
108+
| **Alcohol detected on receipt** | Rejects receipts containing alcohol purchases. | Reject any expense whose receipt shows alcohol (beer, wine, or liquor), with a one-sentence comment naming the alcohol. Approve receipts with no alcohol. |
109+
| **Excessive tip percentage** | Rejects meal receipts whose tip exceeds a specified percentage. | Reject any meal expense whose receipt tip is more than 20% of the subtotal, noting the tip percentage. Approve tips of 20% or less. |
110+
| **Receipt does not match transaction** | Rejects expenses whose receipt total doesn't match the expense amount. | Reject an expense when the total shown on its receipt does not match the expense amount, noting the discrepancy. Approve when the receipt total matches the expense amount. |
111+
| **Gift card detected on receipt** | Rejects gift card purchases. | Reject expenses where the receipt is for a gift card purchase, noting that it is a gift card. Approve normal purchases. |
112+
| **Incorrect receipt type submitted** | Rejects non-itemized receipts. | Only approve expenses backed by an itemized receipt. If the receipt is just a credit-card payment slip with no itemized purchases, reject it and ask for an itemized receipt. |
113+
| **Receipt content does not match stated purpose** | Rejects expenses whose receipt doesn't match the stated purpose. | Reject an expense when the receipt contents clearly do not match the expense's stated purpose in its description, noting the mismatch. Approve when they are consistent. |
114+
| **Currency mismatch on receipt** | Rejects receipts whose currency differs from the expense currency. | The expense amounts are in US dollars. Reject an expense when its receipt is denominated in a different currency, noting the currency mismatch. Approve when the receipt is in US dollars. |
115+
| **Itemized split recommended (mixed items)** | Rejects mixed business and personal receipts. | When a single receipt mixes clearly business items with clearly personal items, reject it and ask the submitter to split out the personal items. Approve all-business receipts. |
116+
| **Receipt language mismatch** | Rejects non-English receipts. | Reject an expense when its receipt is not written in English, asking for an English-language receipt. Approve English receipts. |
117+
| **Receipt date vs expense date mismatch** | Rejects expenses whose receipt date differs from the expense date. | Reject an expense when the date printed on its receipt differs from the expense date, noting both dates. Approve when they match. |
118+
| **Suspected personal expense from receipt items** | Rejects receipts that appear to contain personal purchases. | Reject an expense whose receipt is clearly a personal, non-business purchase, noting why it looks personal. Approve plausible business expenses. |
119+
| **Receipt likely AI-generated** | Rejects receipts that appear fabricated or AI-generated. | Reject an expense whose receipt looks fake or AI-generated — garbled or nonsensical item names, a fabricated layout, or totals that do not add up — with a one-sentence comment saying why. Approve receipts that look like genuine printed receipts. |
120+
| **Handwritten receipt detected** | Rejects handwritten receipts. | Reject an expense whose receipt is handwritten rather than a printed/computer-generated receipt, and ask the submitter for a printed itemized receipt. Approve normal printed receipts. |
121+
122+
---
123+
124+
## What happens after you create a Suggested Agent rule
125+
126+
After you save a Suggested Agent rule:
127+
128+
- RuleBot begins enforcing it immediately.
129+
- You can edit the rule's instructions at any time.
130+
- The rule behaves like any other Agent rule.
131+
132+
---
133+
134+
# FAQ
135+
136+
## Can I edit a Suggested Agent rule?
137+
138+
Yes. Suggested Agent rules are starting points. You can review and edit the instructions before saving the rule, and you can update the instructions at any time after it's created.
139+
140+
## Do Suggested Agent rules work differently from custom Agent rules?
141+
142+
No. After you save a Suggested Agent rule, it behaves like any other Agent rule. RuleBot enforces it using the instructions you've configured.
143+
144+
## Can I create multiple Suggested Agent rules?
145+
146+
Yes. You can create as many Agent rules as your workspace needs. Each rule evaluates the conditions described in its own instructions.
147+
148+
## What if none of the Suggested Agent rules matches my workflow?
149+
150+
Create a custom Agent rule instead. You can write your own natural-language instructions to automate workflows that aren't covered by the suggested rules.

0 commit comments

Comments
 (0)