LeashgateDocs
Concepts

Policies

Rules that decide, for every action, whether it runs, waits or is blocked.

Every workspace starts with three rules. Edit them in Console → Policies; changes apply to the next call, with no deploy.

RuleMatches action names containingConditionEffect
P-04 Destructive actiondelete, drop, truncate, destroy, wipe, purge, removeAlwaysBlock
P-03 Payment above thresholdpay, payment, transfer, refund, payout, charge, wireAmount above $1,000Ask a human
P-05 Mass messagingemail, mail, sms, broadcast, newsletter, notify, messageMore than 500 recipientsAsk a human

The amount is read from the first of these arguments that exists: amount, value, total, sum, price. The number of people is read from recipients, to, audience, count, emails; a list counts its items.

When several rules match, Block wins over Ask a human.

Conditions

A rule with no condition applies every time its words match. Add one or more conditions; any one of them triggers the rule.

ConditionExampleReason given to the agent
Amount aboveRefunds above $200amount $4,800 is above $200
Daily capPayouts above $10,000 per agent per day (UTC)today's total would reach $10,600, above the $10,000 daily cap
Allowed beneficiariesTransfers only to listed IBANs, emails or domainsFR76… is not on the allowed list
HoursDeploys only from 8:00 to 19:00outside allowed hours (8:00 to 19:00)

Beneficiaries are read from to, recipient, beneficiary, iban, account, payee, destination, email, domain. An email matches its exact address or its domain.

Templates and plain language

Templates add ready-made rules for e-commerce, finance, support, sales or engineering. Describe a rule turns a sentence such as “Ask me before any refund above $300” into a rule you review before adding.

Observe mode

In observe mode nothing is blocked or held. Every action that would have been stopped is recorded with the decision observed, so you can measure the impact of your rules on real traffic before switching to enforce. Change the mode at the top of the Policies page.