Skip to main content
Guides

Claude Code Built a Seven-Workflow Shop System in n8n. The Money Never Touches the AI

Blockframe Labs Content Team4 min read

One prompt, seven workflows, and a shop that takes an order in chat and delivers it without a human touching the till.


What you end up with

A chat front desk, an order pipeline, and a nightly report, all running on a spreadsheet.

  • 7 workflows in n8n, 4 of them AI agents: Front Desk, Order, Support, Manager
  • Google Sheets as the database, 9 tabs from Products to Report Requests
  • Demo data: 10 products, 3 riders. A customer orders in chat, the system invoices, dispatches, and reports at 9pm
  • Claude is the chat model, connected through the n8n MCP server so Claude Code builds the workflows directly

Set up the pieces before you prompt

Claude builds fast, but only if the pieces it needs already exist.

  • Create the Google Sheet first, with the 9 tabs named exactly as the prompt will reference them
  • Add named credentials for Google Sheets and Gmail, plus Claude on Anthropic. Claude picks credentials by name
  • Enable the n8n MCP server in n8n settings, then connect Claude Code to it
  • Keep a test sheet apart from anything real: the first build writes rows, sends emails, and changes stock

Write one master prompt, in the right order

The prompt is the architecture. Get the order wrong and the agents call workflows that do not exist yet.

  • Ask for a plan first, then the build, so you can read the shape before anything is created
  • Build the plumbing first, Inventory, Billing, and Dispatch, because the agents call them as tools
  • Put the hard rules in the prompt: no AI for money or stock, prices from Products, totals from Code nodes, and a pass/fail test list

Example master prompt, in our own wording:

javascript
Build 7 n8n workflows for a small shop, using Google Sheets as the
database. Build Inventory, Billing and Dispatch first, then the
Front Desk, Order, Support and Manager agents. Never let the AI
compute a price, a total or an invoice number: those come from the
Products sheet and Code nodes. Test every workflow and show a
pass/fail list.

The four agents, and what each may touch

Each agent gets the smallest set of tools that lets it do its job.

  • Front Desk: the chat front door. Takes order details, never invents a price, never saves an order itself
  • Order: turns chat into a clean order, SKU and quantity, fixed shape via a Structured Output Parser, then a Code node does the maths
  • Support: read-only tools only. Finds an order, answers status from real rows, never changes data
  • Manager: runs at 9pm, plus a send-now form. Totals the sheets in a Code node, AI writes the email from those numbers only

The money workflows have no AI in them

This is the design decision that makes the whole thing safe to run.

  • Inventory: no AI. Reads items, converts Sheets numbers stored as text, updates the row matched on SKU, flags low stock
  • Billing: a Code node makes the next invoice number, due date 7 days out, status unpaid, appends to Invoices, Gmail sends it
  • Dispatch: a Code node picks the first free rider, adds a Dispatch row, marks the rider busy, emails the customer. All 3 riders out, the order waits
  • Rider form: the rider taps delivered on a phone, the order closes, the customer gets the final email, the rider is free again

Watch one order go through end to end

The demo order is the test that matters: rice and oil, total 6,100.

  • Customer orders in chat, agent reads back 6,100. Order 1001 lands, rice stock drops 40 to 38, Invoice 101 is emailed, Rider 1 is booked
  • Rider taps delivered, customer is updated, and the 9pm report lands: two orders, 7,900 in sales, washing powder low at 4, one unpaid invoice of 1,800

Test it like a shop, not a demo

A workflow that passes once on happy path data is not tested.

  • Read the pass/fail list instead of assuming it passed, then run the awkward cases: a low-stock order, the rider form, a status question
  • Check the rows changed as expected, not just that the chat looked right
  • Debug in Executions: click the red node, read its input and output, paste the error back to Claude, then re-run. A fix never re-run is still broken

Warnings before you run it for real

Sheets is a spreadsheet, not a database, and the demo proves it.

  • Two orders in the same second can clash on one number, because Sheets has no transactions. Small-shop system, not real checkout volume
  • Form links are public by default: turn on basic auth on the payment and rider forms, and check the Sheet sharing settings
  • Keep the test sheet and the real sheet apart, and do not connect a real Gmail account until the test runs are clean
  • Costs: n8n can be self-hosted, Claude Code usage is metered, so the build is not free even if the tools are

Our verdict

  • The design is sound: agents talk, Code nodes count, and the spreadsheet holds the state
  • The weak points are all at the edges: Sheets concurrency, public forms, and credentials picked by name
  • It fits a small shop, a side business, or a prototype for a real ordering system, and it does not fit real order volume

Build it in an afternoon, run it on fake data for a week, and only then point it at real customers.

Source: n8n AI Agent Tutorial: Claude Code Built a Complete Order to Delivery System (n8n MCP)

BlockFrame Wire

Get Daily AI Trends

Weekly breakdowns of autonomous agents and live benchmarks.

Blockframe Labs Content Team

The content team at BlockFrame Labs writes about AI systems and services we actually ship: automation pipelines, agent infrastructure, and the web engineering behind them. Every guide comes from a system running in production.

Work with us

This blog runs itself. Our Blog OS publishes daily from Notion with zero manual edits, and we build the same system for clients.

Related Articles