Edit your policy when using Policy Agent

Once Policy Agent is set up, you can refine your policy at any time. The agent-facing policy is fully versioned, supports draft and published states, and allows complex rules—including entity-specific logic, department-based rules, card-specific requirements, and hidden exceptions. This article explains how to safely update your policy, manage versions, and ensure the agent interprets your rules correctly.



How drafts and publishing work

All edits to your agent-facing policy begin as drafts. Drafts allow you to modify rules without affecting existing or new expense evaluations.

In a draft, you can:

Draft changes do not take effect until you select Publish.

Publishing:

After saving the agent’s knowledge, Policy Agent evaluates recent expenses. This process can take up to 24 hours. You will be notified on your homepage when it’s ready.


View and manage publish history

The Policy Agent editor includes a full version history.

Version history showing updates to Hharelson's Company's Policy, including general rules, travel and lodging standards, an...

To view history:

  1. Open the policy editor
  2. Click the three-dot menu in the top-right corner
  3. Select See publish history

Publish history shows:

FAQ – How can I see what changes were made to Policy Agent’s knowledge center? Use the three-dot menu → See publish history to view detailed version history and diffs.


Edit rules, exceptions, and hidden notes

Your agent-facing policy should reflect the exact rules you want enforced. When writing or editing rules:

State rules in plain English

Clearly describe:

Avoid vague terms like “reasonable” or “after hours” without definitions.

Write explicit exceptions

Exceptions may apply to teams, roles, offices, departments, or specific people.

Example:

Note: “Sales team may expense alcohol when dining with customers.”

Team or department names must match exactly how they appear in Ramp.

Use hidden notes for sensitive exceptions

Hidden notes:

Travel & Lodging article detailing air travel standards with a highlighted hidden note for admins only.

FAQ – Can I add hidden notes or exceptions? Yes. Hidden notes allow you to include exceptions or rules visible only to admins and the agent.


Write group-specific rules (entities, departments, roles, locations)

Policy Agent can apply different rules to different groups as long as you express them clearly.

Multi-entity logic

Write entity-specific rules directly within the relevant section.

Example:

Note: “For US Entity, economy class is required for domestic flights. For UK Entity, premium economy is allowed for all flights over 3 hours.”

Entity names must match exactly what appears in Ramp.

FAQ – How can I set up multiple entities? Specify rules for each entity in plain English within the same thematic section. Do not split them into separate documents.

Department-, role-, or location-based rules

Policy Agent supports tailoring rules using HRIS or custom fields already in Ramp.

Example:

Note: “Employees in the Engineering department may spend up to $100 per month on home office supplies.”

If you reference "role," "department," or “location,” those fields must exist in Ramp.


Use custom fields correctly

Custom fields allow you to encode structured criteria such as job level, region, team type, or travel tier.

To use them:

  1. Create custom fields in Company → Settings → Custom data
  2. Use exact field names in your policy text
  3. Add a clear description when creating the field—this helps both admins and the agent interpret the field reliably

Example:

Note: “Employees with Level = L4 may book premium economy on flights over 5 hours.”

FAQ – Does Policy Agent know my HRIS data? Policy Agent only knows HRIS data that already exists in Ramp. Add custom fields to introduce additional employee data.


Write card-specific purchase rules

Policy Agent can enforce rules that require purchases to be made on specific cards or Spend Programs. These must be written in plain English in your agent-facing policy.

Examples:

When creating these rules:

How the agent enforces card-specific rules

Policy Agent evaluates:

If a purchase violates a card requirement:

FAQ – Will the agent flag a purchase made on the wrong card? Yes. If your policy specifies that purchases must be made on specific cards or programs, Policy Agent will flag violations accordingly.

FAQ – Do I need workflows or flags for card-specific rules? For assessments, policy text is sufficient. For automatic enforcement, pair your policy with workflows and keep any necessary deterministic flags.


Align submission requirements with rules

If your policy relies on context—like attendees, trip details, or specific memo fields—your submission requirements must ensure that information is collected.

Examples:

Flags and submission requirements act as hard overrides over Policy Agent. If required information is missing, the flag/requirement supersedes the agent’s recommendation.


Formatting requirements: what the agent can and cannot read

Policy Agent can only interpret plain text.

Always rewrite important rules into text, even if your original policy uses tables or visual layouts.


Refresh assessments after edits (optional)

When saving a policy update, you can choose to refresh assessments on unreviewed expenses linked to the edited section. This is optional and subject to a system-defined cap.

Refreshing:


Who can see drafts

Only admins can view or edit drafts of the agent-facing policy.

Reviewers and employees:

FAQ – Who can see drafts? Only admins can see drafts in the policy editor.


Policy page overview

The Policy page provides a snapshot of the agent’s policy knowledge, including: