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:
- Excessive functionality: the agent has tools it doesn't need, like a "read orders" integration that can also delete them.
- Excessive permissions: its credentials allow more than its job, like write access for a reporting agent.
- Excessive autonomy: high-impact actions run without anyone checking them.
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:
- One Shopify app (one token) per agent, so you can revoke one without breaking the others.
- Reporting, alerting and drafting agents get
read_scopes only. A P&L digest or low-stock alert never needs write access. - Give an agent a
write_scope only when writing is its job, and only for that resource. - Remove tools you tried and dropped. OWASP specifically calls out leftover plugins from development.
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:
- Safe and reversible: adding an internal tag, creating a draft, writing a note. Can usually run on its own, but log it.
- Reversible but visible: changing a price, editing a product, adjusting inventory. Needs approval, or auto-approval inside tight limits.
- Irreversible or external: refunds, customer emails, deleting anything, cancelling orders. Always needs a human. n8n's docs list exactly these kinds of actions, like deleting data, sending external communications and making purchases, as the cases for human review.
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:
- Refunds under an amount you pick, only for orders that haven't shipped, at most a few per day.
- Price changes within a small percentage of the current price, never below cost.
- Inventory corrections only when they match a supplier file.
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:
- It lives outside the agents, in the layer that performs writes, so no prompt can switch it back on.
- Anyone on the team can flip it in seconds from their phone, for example with a Slack or Telegram command.
- Flipping it is logged, and turning it back on needs a deliberate action.
- You test it monthly by flipping it and confirming a queued write is refused.
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.