Skip to main content
Velor
All posts
EngineeringMay 2026 · 5 min read

How to scope AI agent actions so they don't do more than intended

By Caden Boatright


One of the less-discussed risks in AI customer service deployments isn't wrong answers — it's over-capability. An agent that can look up an order can, with the wrong configuration, also cancel it, modify the shipping address, or issue a full refund without a second thought. Not because the agent decided to — because the action schema let it.

Action scoping is the discipline of defining exactly what an agent is allowed to do, how it validates the parameters before it does it, and what level of confirmation is required before anything irreversible happens. It's not glamorous, but it's what separates a responsible AI deployment from an expensive incident.

Read actions vs write actions

The most important boundary to draw first is between read and write. Read actions — order lookup, account status check, shipping tracking — are safe to run without confirmation. The worst case is that the agent looks something up and it wasn't necessary.

Write actions — cancellations, refunds, address changes, subscription modifications — mutate state. They have side effects. They may be irreversible. These require a different treatment.

Define read and write separately. Give read actions a relaxed rate limit (the agent can call them freely). Give write actions an explicit confirmation requirement and a tighter rate limit. Don't blend them into a single “order management” action with a mode parameter.

Schema tightness is a safety property

Every action has a JSON schema that describes what parameters the agent can pass. The schema is not just documentation — it's a constraint on what the agent is allowed to infer.

A loose schema looks like this:

{
  "action": "string",
  "params": "object"
}

That schema lets the agent pass anything. A tight schema looks like this:

{
  "order_id": { "type": "string", "pattern": "^[0-9]{5,10}$" },
  "reason": {
    "type": "string",
    "enum": ["customer_request", "damage", "wrong_item"]
  }
}

The tight schema tells the agent exactly what it can and can't pass. It prevents the agent from inferring a reason that isn't in your system. It validates the order ID format before the request leaves the agent. It makes the action predictable.

Tight schemas take longer to write. They are worth it. Every field you leave untyped is a surface for unexpected behavior.

Destructive actions require explicit confirmation

Any action that modifies billing state, cancels a service, or cannot be easily undone should be marked destructive. A destructive action never fires without the customer confirming it on a card in the chat widget or a teammate approving it.

The confirmation step should state the consequence specifically — not “are you sure?” but “This will cancel your subscription, effective immediately. You will lose access at midnight tonight.” The confirmation card is built from the action parameters, not from a generic template, and the customer taps Confirm on it — typing “confirm” does nothing. The customer is confirming a specific action with specific consequences, not a vague intent.

A voice call has no card to tap, so the obvious move is to put the same step in the audio and act on whatever the caller says back. Velor does not do that. An action that needs confirmation is not resolved on the call at all: it is held, queued for a teammate to approve or decline, and the caller is told someone will review it and follow up. A misrecognised yes on an irreversible action is a worse failure than a short delay, and transcription is the one part of the stack we do not control.

Scoping at the organization level, not the action level

The most scalable approach is to scope at the organization level: a set of allowed actions per org, with per-action schemas and confirmation requirements. The agent can only call actions in its org's allowed set. This means you can safely add an action to your catalog — it isn't available to any agent until explicitly enabled for that org.

Pair this with row-level security on any data the action touches. The action should only be able to modify records that belong to the customer in the current conversation — not any record it can construct a valid ID for. An agent that can look up any order ID, not just the customer's own, is a different risk surface than one that's scoped to the current session's customer.

Action scoping is not a feature you configure once and forget. Audit your action catalog regularly. Remove actions that are no longer needed. Tighten schemas when you observe unexpected parameter values in your action logs. The discipline compounds over time.

Numbers in this post that cite no source are rules of thumb, not Velor measurements. Velor has no customer deployment to measure yet.

Velor

Want to see how this applies to your support queue?

Send us your recent tickets — at least 300, ideally 500 — and get a resolution rate, before you commit to anything.

14-day free trial · no credit card