Agentvendo

Approval queues and kill switches for AI agents that run your store

How to let AI agents issue refunds, change prices and email customers without losing control: least-privilege Shopify scopes, human approval in n8n, auto-approve limits, audit logs and a kill switch.

By Adrian Cristache · · 8 min read

Short version: give each agent only the access it needs, make every high-impact action wait for a human tap, auto-approve only small, reversible actions within limits you set, log everything, and keep one switch that blocks all agent writes. Enforce those rules outside the model, in the system that actually performs the write.

Why agents need an approval layer

An AI agent that can only read your Shopify data can give you a bad report. An agent that can write can refund the wrong order, push a wrong price to your whole catalog or email a customer something you'd never say. The OWASP Top 10 for LLM Applications calls this risk Excessive Agency (LLM06:2025): damaging actions taken in response to unexpected, ambiguous or manipulated model output.

OWASP lists two common triggers: hallucination from a poorly engineered prompt or a weak model, and prompt injection, for example an instruction hidden in a customer message or product review that the agent reads. It traces the root cause to three things, which make a useful audit for any store agent:

The rest of this guide takes those three in order.

1. Cut permissions to the job

Start with Shopify's access scopes. Scopes come in pairs: read_orders gives read access, and write_orders gives read and write access. The same pattern applies to products, customers, inventory and more. Even reads are limited by default: read_all_orders is needed to reach orders older than 60 days.

Practical rules:

This is how our own templates 01–08 work: they request read scopes, and anything that writes, like blog posts, is saved as a draft for you to review.

2. Sort every action by blast radius

Before you build the approval flow, list every write your agents could make and put each in one of three buckets:

3. Build the approval queue

OWASP's mitigation is human-in-the-loop control: a human approves high-impact actions before they happen. If you build agents in n8n, this is now built in. You can require human review for specific tools on an AI Agent node. When the agent tries to call one of those tools, the workflow pauses and sends an approval request. The tool runs only if someone approves, and a denial is reported back to the agent.

The review can go to a different channel than the conversation. n8n supports Slack, Telegram, Discord, Microsoft Teams, Gmail, Outlook, WhatsApp Business Cloud, Google Chat and its own chat. In the message you can use $tool.name and $tool.parameters to show exactly what the agent wants to do:

Agent wants to run {{ $tool.name }}
with: {{ JSON.stringify($tool.parameters, null, 2) }}

A good approval message answers four questions at a glance: what (refund $42.00 on order #1234), why (the agent's one-line reason), what it touches (customer, amount, products), and how to undo it. Also tell the agent in its system prompt which tools need approval and what to do after a denial, as n8n recommends.

4. Add auto-approve limits, carefully

Approving every tiny action gets old fast, and people start tapping "approve" without reading. Auto-approval for low-risk actions keeps the queue meaningful. Some examples you might choose:

These numbers are business decisions, not industry standards, so start strict. Enforce the limits in code or in your workflow, never only in the prompt. OWASP calls this complete mediation: authorisation happens in the downstream system, not because the model decided an action was allowed.

5. Start in watch-only mode

For the first week, let agents propose actions but execute none of them, a dry run. You see what they would have done, adjust prompts and limits, and only then switch individual action types to live. This is our own practice rather than a formal standard, but it's the cheapest way to build the trust n8n's docs describe: start with review on, then reduce oversight as confidence grows.

6. Log everything and rate-limit writes

OWASP notes that logging and rate limiting don't prevent excessive agency, but they limit the damage. Record every proposed action, who approved it, when and the result. A Google Sheet or a database table is enough to start. Cap how many writes each agent can make per hour, so a runaway loop hits a wall long before it hits your whole catalog.

7. Install one kill switch

Your kill switch is a single flag that every write path checks before acting, for example a row in a sheet, a key in a store or an environment variable your workflows read. Flip it, and every agent write is refused while reads keep working. Rules for a switch that actually works:

For the bluntest option, revoking an agent's Shopify app token stops it completely, which is another reason to give each agent its own app.

Where this fits with agentic commerce

Shoppers' agents now buy from Shopify stores too. Since October 13, 2026 Shop MCP lets agents build carts and complete Shop Pay checkout, with the shopper confirming the total and payment method before purchase. That's the same pattern on the buyer's side: the agent prepares, a human confirms. If you're getting your store ready for those agents, read Agentic commerce for Shopify.

Skip the build

Our Approval Queue & Kill Switch (template 09) packages this pattern for Shopify: every agent refund, price change, product edit or customer email waits for an Approve/Reject tap in Slack or Telegram, with auto-approve limits, a watch-only first week, a full audit log and one kill switch. It ships as n8n workflows and Python, and runs in dry-run mode by default. It's part of the Complete pack.

Sources

  1. OWASP LLM06:2025 Excessive Agency
  2. n8n docs: Human-in-the-loop for tools
  3. Shopify Dev: Access scopes
  4. Shopify changelog: Shop MCP (Oct 13, 2026)

All sources checked on October 26, 2026. Agentvendo isn't affiliated with Shopify, OWASP or n8n.

Keep reading