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 initial setup, Policy Agent evaluates recent expenses and notifies you on your homepage when the results are ready. Once you publish an update, Policy Agent immediately uses it for future transactions, although Ramp may take up to five minutes to finish processing the update.


View and manage version history

The Policy Agent editor includes a full version history.

Version history showing two published policy versions, an inline Changes comparison, and the Restore action.

To view history:

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

Version history shows:

FAQ – How can I see what changes were made to Policy Agent’s knowledge center? Use the three-dot menu → See version history, then select Changes to compare a version with the previous version.


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 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 are one input Policy Agent considers alongside your written policy and expense context; they do not override applicable policy evaluations. Ramp submission requirements control whether Policy Agent evaluates rules for fields such as receipts, attendees, and memos. If Ramp does not require a field, Policy Agent treats policy requirements for that field as optional.


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 publishing a policy update, you can choose to refresh assessments for up to 200 related unreviewed expenses. This is optional.

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.