Human-in-the-loop AI agents for B2B SaaS
Put a policy gate in front of the agent baked into your product. Routine writes go straight through; plan downgrades, bulk edits and customer-facing sends wait for a named person. One integration, rules that bend per tenant.
The problem
You shipped a copilot inside your SaaS. It edits records, runs bulk jobs, swaps people between plans, drafts and sends mail on a customer's behalf. Useful, until the day it downgrades a paying account it misread, runs `data.write` across the wrong segment, or fires `email.send` to a tenant's entire end-user list with a discount that never existed. In multi-tenant software, one bad action doesn't stay a bug ticket. It's a churn call, a support fire, and a customer who now reads every release note wondering what else the agent can touch.
So you reach for the blunt fixes: make the agent read-only, or stick a confirm dialog in front of every write. Read-only defeats the point of an agent. A confirm-on-everything modal just teaches admins to click through without reading. The version that actually works is narrower than both: let the safe, reversible stuff land on its own, and stop only the actions that carry weight — irreversible writes, anything bulk, anything that leaves your product and reaches a real customer — with the threshold set per tenant.
How ClearedBy handles it
-
01
The agent checks in before it writes
At the point your in-product agent is about to act, it calls ClearedBy with the action and the context that decides risk: tenant, plan tier, how many rows, who receives the email. The call holds until there's a verdict, so nothing lands while it waits.
-
02
Routine actions clear on policy, per tenant
A single field edit or a draft saved but not sent clears in milliseconds. A downgrade on a paying account, a write above your row threshold, or mail addressed to a tenant's end-users gets held. Thresholds can vary by tier, so a trial and an enterprise account never play by the same rules.
-
03
A named person handles what's held
Held actions drop into a fast queue, Slack, or a phone — routed to your team or the customer's own admin, depending on whose account is on the line. They clear, reject, or send it back. Only after a clear does the agent get a short-lived credential to go act.
-
04
Each verdict is sealed to the record
Cleared, auto-cleared or rejected, every action lands in a tamper-evident, hash-linked record bound to the human who signed it. When a customer asks who changed their plan three weeks ago, the answer is one lookup — and it holds up in a security review.
plan.update · Enterprise → Starter · tenant acme-corp · product-copilot → held: downgrade on a paying account · routed to account owner
FAQ
Can the policy behave differently for each tenant or plan?
Yes. The gate reads from policy, so an enterprise tenant can sit behind tighter thresholds than a trial, and rules can key off tenant, plan and action type. You integrate once and the behaviour changes per customer.
Who signs off a held action — my staff or the customer?
Whichever fits. Route holds to your own team, or to the customer's admins so they approve changes to their own account. The signer is recorded either way, so the trail names the right person.
Does this slow down every action the agent takes inside our product?
No, only held ones wait. In-policy actions clear in milliseconds with nobody in the loop, so the common path stays as quick as it was before you added the gate.
How do we turn this on without risking the live feature?
Begin in shadow mode, no card needed: ClearedBy watches and reports what it would have held while blocking nothing. When the policy looks right, switch enforcement on. As the evidence stacks up it suggests loosening rules, so the share that needs review keeps shrinking.
Is the record good enough for SOC 2 and enterprise security reviews?
That's what it's built for. Every action, auto-cleared or human-approved, is sealed into a hash-linked record tied to the signer's WebAuthn passkey — the kind of human-in-the-loop AI agent evidence B2B SaaS buyers and auditors ask to see.
Related use cases
Let your agents run. Inside the rules you set.
Put a policy gate in front of the agent baked into your product. Routine writes go straight through; plan downgrades, bulk edits and customer-facing sends wait for a named person. One integration, rules that bend per tenant.