Skip to main content

Human Approvals

Require a human decision before high-risk agent actions execute.

How it works

  1. Agent calls guard.evaluate("charge_card", {...})
  2. Policy matches — action is escalate
  3. Polaxis sends a Slack notification to your team
  4. SDK pauses and waits (up to 10 minutes by default)
  5. Human clicks Approve or Reject in Slack
  6. Agent proceeds or BlockedError is raised
No code change needed beyond the initial evaluate() call.

Set up Slack notifications

  1. Go to Dashboard → Settings → Slack
  2. Click Connect Slack
  3. Choose the channel where approvals should appear
  4. Test with the Send test notification button
Or via API:

What the Slack message looks like

One click. The agent either continues or stops.

Handle approval in your code

Approval timeout

Default timeout is 10 minutes. Configure per agent:

View approval history

Every approval and rejection is logged with timestamp, approver, and reason.