Approval policy for a procurement agent
A procurement agent raises orders, renews contracts and writes to suppliers. Supplier emails are where invoice fraud starts, so anything that changes who gets paid needs two people, and orders above a small amount wait for the person your authority matrix names. It writes rules for the generator's kinds of action; the guide also asks two people for new suppliers and contact changes under supplier.*, so add its rules for those names too.
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 up
read.*Runs on its own and is recorded.Looking things up changes nothing, so it runs on its own and is still recorded. - Email or message customers
email.*Waits for a person to approve.Messages to suppliers can agree a price or a delivery date. A person reads them first, and a supplier's reply is never taken as an instruction. - Pay suppliers or move money
payment.*Waits until two different people approve. One no stops it.Paying a supplier or changing its bank details decides where money goes, and a changed account in a supplier email is the classic fraud. Two different people approve every one, after a call-back on a number already on file. Ask bank-detail changes under a payment.* name too, so they need two people as well. - Buy things or start subscriptions
purchase.*Runs on its own up to €20.00 each, and no more than €200.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 catalog purchases up to €20 run on their own, at most €200 a day. Above that a person decides, and above €1,000, or without an amount, 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": "email.*",
"effect": "ask"
},
{
"action": "payment.*",
"approvals": 2,
"effect": "ask"
},
{
"action": "purchase.*",
"effect": "allow",
"limit_amount": "20.00",
"limit_currency": "EUR",
"budget_amount": "200.00",
"budget_currency": "EUR",
"budget_period": "day"
},
{
"action": "purchase.*",
"effect": "ask",
"limit_amount": "20.00",
"limit_currency": "EUR"
},
{
"action": "purchase.*",
"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 payment.send, 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.