Approval policy for an e-commerce operations agent
An e-commerce agent changes prices, makes discount codes, edits listings and adjusts stock across a whole catalogue. One wrong number reaches every basket before anyone notices, so changes to what shoppers see and pay wait for a person, and anything that cannot be undone waits for two. It writes rules for the generator's kinds of action; the guide asks two people for bulk price changes and bulk cancels under their own names, 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. - Change customer or CRM records
records.*Waits for a person to approve.Price, discount, listing and stock changes reach every shopper at once, and in the EU a sale must be measured from the lowest price of the last 30 days. Ask them under records.* names, and a person checks each one. - Email or message customers
email.*Waits for a person to approve.Messages to shoppers speak for the shop about prices, delivery and refunds. A person reads them first. - Post in public
post.*Waits for a person to approve.Listing copy, sale banners and replies to reviews are public claims about the product and its price. A person approves each one. - Refund customers
refund.*Runs on its own up to €50.00 each, and no more than €300.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.Up to €50 runs on its own, at most €300 a day in total; above that a person decides, and above €1,000 two people. - Delete data
delete.*Waits until two different people approve. One no stops it.A deleted product or order takes its history with it. Two different people approve; archiving is the safer path. - Grant or remove access
access.*Never. The request is refused at once.Adding staff, apps or API keys to the store is never the agent's call. The request is refused at once, so a person does it.
The rules
These are the 9 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": "post.*",
"effect": "ask"
},
{
"action": "refund.*",
"effect": "allow",
"limit_amount": "50.00",
"limit_currency": "EUR",
"budget_amount": "300.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"
},
{
"action": "delete.*",
"approvals": 2,
"effect": "ask"
},
{
"action": "access.*",
"effect": "deny"
}
]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.