Concepts
Human approvals
How a held action reaches a person and gets back to the agent.
- An action matches a rule whose effect is Ask a human.
- Leashgate creates a request (
apr_xxxxxxxx) and sends it to Telegram, Slack, email and your webhook, if configured, with Approve and Deny links. - The agent receives a message: the action needs approval and can be retried once approved.
- You decide from Slack, the email or Console → Approvals.
- Once approved, the agent can run the exact same action (same name and arguments) once, within one hour.
An approval covers one run of one action with the same arguments. A different amount creates a new request.
Notifications
Set channels up in Settings → Notifications, then use Send a test request.
- Telegram: create a bot with @BotFather, paste its token, send
/startto the bot, click Connect. Requests arrive with Approve and Deny buttons. - Webhook: any HTTPS URL. Use it with Make, n8n, Zapier or Twilio to reach WhatsApp or SMS.
- Slack: an incoming webhook URL.
- Email: requests go to the workspace owner's email.
Turn on Alert on blocked actions to also receive a message on Telegram and the webhook when an action is blocked.
Webhook payload
{
"event": "approval.requested", // or "action.blocked"
"workspace": "Acme",
"agent": "refunds-bot",
"action": "refund",
"args": { "amount": 4800, "order": "A-2291" },
"rule": "P-03",
"reason": "amount $4,800 is above $1,000",
"approve_url": "https://gw.leashgate.com/a/apr_…?d=approve",
"deny_url": "https://gw.leashgate.com/a/apr_…?d=deny"
}Monthly report
Console → Value report summarises a month on one page: money held or blocked, approvals and decision time, incidents, personal data masked and the audit log check. Print it as a PDF or copy the summary. The same data is available at GET /api/report?month=2026-12.