Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions docs/articles/new-expensify/ai-agents/AI-Agent-Capabilities.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ To accomplish this, include phrases like:

## How to write instructions that reject expense reports

**Goal:** Sends an Outstanding (submitted) expense report back to the submitter with a user-facing rejection comment explaining why.
**Goal:** Sends an entire Outstanding (submitted) expense report back to the submitter with a user-facing rejection comment explaining why.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Terminology violation: Use Expensify's standard term "member" instead of "user". Consider "with a member-facing rejection comment" to match the required terminology (Member, not User) in HELP_AUTHORING_GUIDELINES.md.


To accomplish this, include phrases like:
- Reject reports that have violations
Expand All @@ -64,6 +64,18 @@ To accomplish this, include phrases like:

---

## How to write instructions that reject individual expenses

**Goal:** Rejects selected expenses from an Outstanding (submitted) report individually, giving the submitter a reason for each expense while compliant expenses continue through approval.

To accomplish this, include phrases like:
- Reject each expense over $500 and approve the rest
- Reject individual expenses that are not reimbursable and were not paid with a company card
- Reject every duplicate expense with a reason specific to that expense
- Reject noncompliant expenses without rejecting the whole report

---

## How to write instructions that un-submit expense reports

**Goal:** Unsubmits a submitted expense report, returning it to Draft so the submitter can edit it.
Expand Down Expand Up @@ -257,4 +269,4 @@ To accomplish this, include phrases like:

---

*This reference covers all 19 AI Agent capabilities.*
*This reference covers all 20 AI Agent capabilities.*
18 changes: 15 additions & 3 deletions docs/articles/new-expensify/ai-agents/AI-Agent-Triggers.md
Original file line number Diff line number Diff line change
Expand Up @@ -304,10 +304,10 @@ To react to this event, include phrases like:
- When a manager or admin removes a receipt from a submitted expense
- When a receipt is detached from an expense after the report has already been submitted

**SmartScan (receipt OCR) finished reading a receipt on a submitted expense, so the merchant, amount, date, and itemized line items are now available. This is the earliest point at which the contents of a receipt can be checked against a rule — including a receipt that was matched onto an expense imported from a credit card.**
**SmartScan (receipt OCR) finished reading a receipt, so the merchant, amount, date, and itemized line items are now available. This is the earliest point at which the contents of a receipt can be checked against a rule — including a receipt that was matched onto an expense imported from a credit card. It fires whether the report is still a draft or already submitted.**

To react to this event, include phrases like:
- When a receipt finishes scanning on a submitted expense
- When a receipt finishes scanning on an expense
- When SmartScan finishes reading an itemized receipt
- When a scanned receipt is matched onto an existing credit card expense
- When receipt details need to be checked against workspace rules once the scan completes
Expand Down Expand Up @@ -741,6 +741,18 @@ To react to this event, include phrases like:
- When a member's final approver (forward-to) is changed
- When expense report forwarding is updated for an employee

**A workspace admin changed which person approves a specific workspace member's reports above a set amount, or removed that approver.**

To react to this event, include phrases like:
- When a member's approver for reports over a set amount is changed
- When large expense reports from a specific employee will now go to a different approver

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Terminology violation: Use "member" instead of "employee" to match Expensify's standard terminology (Member, not User/employee). Suggest "reports from a specific member".


**A workspace admin changed the amount above which a specific workspace member's reports need an extra approver.**

To react to this event, include phrases like:
- When the approval amount for a specific member is changed
- When the amount that sends an employee's reports to an extra approver is updated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Terminology violation: Use "member" instead of "employee" to match Expensify's standard terminology. Suggest "sends a member's reports to an extra approver".


**A workspace admin created a new conditional approval rule (e.g., expenses over a certain amount go to a specific approver).**

To react to this event, include phrases like:
Expand Down Expand Up @@ -887,4 +899,4 @@ To react to this event, include phrases like:

---

*This reference covers all 121 events AI Agents can react to.*
*This reference covers all 123 events AI Agents can react to.*
Loading