Approval policy for a customer support agent

A support agent reads messages written by strangers and can change accounts and send money back. A ticket that says “refund the full order” is text the model reads like any other, so the money and the account changes need a limit and a person.

Signs you in or up first. You see every rule in your workspace before any is added.

Or change it in the policy generator first: names, limits and how long a request waits. Two-person approval needs Team or above; the other rules need Pro. On Free every request waits for one person instead.

What it decides

Each kind of action the agent takes, the names it sends for it, what happens, and why.

  • Look things upread.*Runs on its own and is recorded.Looking things up changes nothing, so it runs on its own and is still recorded.
  • Change customer or CRM recordsrecords.*Waits for a person to approve.Changing an email address or a plan is how account takeovers start, so a person checks who asked.
  • Email or message customersemail.*Waits for a person to approve.Replies go out under your name. Start with a person reading them; once Insights shows a kind of reply approved unchanged week after week, make that one kind a rule.
  • Refund customersrefund.*Runs on its own up to €50.00 each, and no more than €500.00 in total per day (UTC). Anything above waits for a person. Above €1,000.00, or without an amount, two different people must approve.Small refunds are routine and slow to queue. Up to €50 runs on its own, at most €500 a day in total; above that a person decides, and above €1,000 two people.

The rules

These are the 6 rules the button adds, for every agent or the one agent key you pick. Every “never” and “ask” goes in before any “allow”, and rules you already have stay. When rules disagree the most cautious wins.

[
  {
    "action": "read.*",
    "effect": "allow"
  },
  {
    "action": "records.*",
    "effect": "ask"
  },
  {
    "action": "email.*",
    "effect": "ask"
  },
  {
    "action": "refund.*",
    "effect": "allow",
    "limit_amount": "50.00",
    "limit_currency": "EUR",
    "budget_amount": "500.00",
    "budget_currency": "EUR",
    "budget_period": "day"
  },
  {
    "action": "refund.*",
    "effect": "ask",
    "limit_amount": "50.00",
    "limit_currency": "EUR"
  },
  {
    "action": "refund.*",
    "approvals": 2,
    "effect": "ask",
    "limit_amount": "1000.00",
    "limit_currency": "EUR"
  }
]

The agent’s side

The agent asks before each action under one of these names, such as refund.create, with the amount and currency where money moves, and acts only when the answer says allowed: true. An amount it leaves out never gets past a limit. The requests docs show the call, and the playground lets you try one without signing up.