Approvals
Policies pause a run before a risky tool call: a large refund, an email to thousands, a SQL write. The right person approves, rejects or edits the arguments, and the agent carries on.
Refund Assistant
Policy: Refunds over $250
Issue refund $420 to customer #8812
issue_refund({"payment_id":"pi_8812x4010", "amount":420, "currency":"usd", "reason":"damaged_item", "customer":"#8812"})“The order arrived damaged 6 days ago and the customer attached a photo. Policy §2.1 allows a full refund within 30 days, so I want to refund $420 to the original card.”
What you get
If tool = issue_refund and amount > $250, require a Support Lead. Change thresholds without a deploy.
Fix the arguments before approving: lower the amount, trim the recipient list, scope the SQL.
The agent's reasoning, the customer history and the trace, right next to the decision.
Every request has a deadline. Unanswered requests escalate to a backup approver.
Approvers get a message with the context and buttons. No context switch needed.
Who approved what, when and why, exportable for your auditors.
How it works
fernline.policy({
tool: "issue_refund",
when: (args) => args.amount > 250,
approver: "role:support-lead",
sla: "2h",
});Pick a tool, a condition and an approver role, in the console or in code.
When a call matches, the SDK holds the run and creates a request with full context.
Refund Assistant
Policy: Refunds over $250
Issue refund $420 to customer #8812
issue_refund({"payment_id":"pi_8812x4010", "amount":420, "currency":"usd", "reason":"damaged_item", "customer":"#8812"})“The order arrived damaged 6 days ago and the customer attached a photo. Policy §2.1 allows a full refund within 30 days, so I want to refund $420 to the original card.”
Approve, reject with a reason, or edit the arguments. The run resumes in milliseconds.
Customers
“We had a refund agent quietly approving duplicates for two weeks. With Fernline the second one would have hit an approval and stopped.”
FAQ
Can't find what you're looking for? Write to us and a human answers within a day.
Free for your first 100k spans. Set up in ten minutes, see your first trace in two.
No card needed · SOC 2 Type II · Cancel anytime