flagship project
E-commerce Automation · Order and Support Workflows
LumaCart Commerce — E-commerce Order & Support Automation
LumaCart's small team did everything by hand: copying orders into a spreadsheet, checking stock when they remembered, typing confirmation emails, and building the weekly report. I built a system of five n8n workflows, plus an error handler and two helpers, that handles orders, stock alerts, AI-assisted support, payment confirmation, and weekly reporting.
Note: Self-directed simulation — LumaCart Commerce is a fictional business. All orders, customers and payments are test data, the sales channels are simulated, and Stripe ran in test mode only. No real client or real money was involved.
n8n
Google Sheets
Gmail
Slack
Notion
Zoho Forms
Groq AI
Stripe (test mode)
The Challenge
LumaCart Commerce is an imaginary small online store selling home and lifestyle products, such as desk organizers, LED lamps and kitchen gadgets. A team of three runs it: an owner, a part-time support person, and a part-time order packer. It sells through its own website and a TikTok Shop-style channel, both simulated here.
As orders grew, the manual work caused mistakes and delays. Orders copied by hand led to typos, duplicates and missed orders. Stock was checked only when someone remembered, so items sold out before anyone noticed. Confirmation emails were typed one by one, simple questions waited as long as urgent complaints, and the owner built the weekly sales summary by hand every Monday.
The goal was to remove this repetitive work without losing control over important decisions like refunds. These are goals for the case study; because the business is simulated, I did not measure real business results.
The Solution
I built the system in n8n Cloud and connected it to Google Sheets (the database), Gmail, Slack, Notion, Zoho Forms, Groq for AI, Stripe in test mode, and the free DummyJSON API. Because there is no real TikTok Shop or website, a small helper workflow creates fake orders and sends them to the order webhook, labeled by simulated channel.
How it works
Order intake - A webhook receives the order, checks the fields, catches duplicates by order ID, and confirms the product exists with enough stock. It then saves the order, reduces stock, sends a confirmation email, and alerts the team in Slack. Every outcome gets a clear response, and rejected orders are logged in a Failed Items tab.
Low-stock alert - A daily schedule finds products at or below their reorder level, posts a Slack alert, and creates a Gmail draft restock email. It is a draft on purpose, so a person reviews it first.
AI support triage - A Zoho Form feeds a webhook. After a duplicate check, Groq classifies the message and drafts a reply using only the store policies kept in Notion. Refunds and complaints go to a person in Slack, and other tickets get a Gmail reply draft.
Weekly sales summary - Every Monday a Code node calculates the last 7 days of orders, revenue, units per product and orders per channel. Groq writes a short summary from those numbers, and Gmail sends it to the owner with the calculated figures listed underneath.
Payment confirmation - A Stripe test Payment Link carries the order ID. A Stripe Trigger marks the order paid only if it exists, is still waiting for payment, the status is paid, and the amount matches. Anything else is flagged in Slack and logged for review.
Error handler and helpers - A separate error workflow posts failures to Slack and logs them. A product catalog loader fetches sample products from DummyJSON and updates them by SKU, so running it twice creates no duplicates.
The Results
Because the business is simulated, these are tested behaviors, not measured business results.
✦ Every order processed only once
Each order ID is checked before anything is saved. In testing, a duplicate order was saved only once, and nothing was emailed or alerted a second time.
✦ Stock alerts with a person in the loop
Low stock triggers a Slack alert and a Gmail draft, not an automatic send, so someone reviews every restock email.
✦ AI support that keeps people in control
Groq answers only from the store policies. Refunds and complaints always go to a person, and if the AI step fails, the ticket goes to a human instead of being lost.
✦ Report numbers that don't depend on the AI
The weekly figures come from a Code node, and the AI only writes the wording. In testing, the summary figures matched the Orders tab.
✦ Payments checked before an order is marked paid
An end-to-end test payment marked the order as paid, and a payment with the wrong amount was caught and logged for review.
How It's Built
This section is for the technically curious. If you just care about the results, you've already seen them above.
Platform
n8n Cloud (14-day free trial): five main workflows, an error handler, and two helpers
Database
Google Sheets with Orders, Products, Support Tickets and Failed Items tabs
Intake
Webhook nodes for orders and for the Zoho Forms support form; a fake order generator simulates the sales channels
Notifications
Slack for team alerts; Gmail for confirmations, threaded replies, reply and restock drafts, and the weekly summary
AI layer
Groq through the HTTP Request node: classifies support messages, drafts replies from the Notion store policies, and writes the weekly summary
Payments
Stripe test Payment Link plus Stripe Trigger; the signing secret is saved in the credential so only genuine Stripe events are accepted
Logic
Code nodes for validation and for the 7-day sales calculations; DummyJSON supplies sample product data
Key engineering decisions
Process the same thing only once
Every order has a unique ID that is checked before anything is saved. The same idea protects the product loader (matching on SKU), payments (an order already paid is not processed again), and the support form, where duplicates are recorded as duplicate_ignored so nothing disappears silently.
Give the AI only facts, and keep people in charge
The AI works only with the Notion policies or numbers the workflow calculated. The prompts tell it never to promise refunds, to treat customer messages as untrusted text, and to say the team will follow up when the answer is not in the policies. Refunds and complaints go to a person, and supplier emails are drafts.
Numbers from code, wording from AI
In the weekly report, a Code node calculates the figures and Groq only writes the summary. The calculated numbers are listed under the AI text, so the figures never depend on the AI wording.
Strict payment checks
An order is marked paid only if it exists, is still waiting for payment, the payment status is paid, and the amount paid matches the order total. Anything that does not match is flagged in Slack and logged for review.
Fail loudly, never silently
Bad input is rejected early with a clear response and logged. Calls to outside services have retry settings, and if the AI step still fails the ticket goes to a human. A central error workflow posts the workflow name, failing step, error message and run link to Slack, and a Failed Items tab keeps a record of everything that went wrong.
What's Tested and What's Not
I tested each workflow while building it, then ran extra checks on the finished system. Here is what passed, what I did not run, and the limits I know about.
Tested and passed
Order intake: a new order, a duplicate, an out-of-stock order, an invalid order, and use through the published Production URL. Error handler: a forced failure produced a Slack alert and a Failed Items row. Low-stock alert, AI support triage (new tickets, duplicates, routing, an AI failure, policy-based replies), weekly summary, Stripe payments (including a wrong amount), the threaded payment thank-you email, and running the product loader twice with no duplicates.
Not run
The scheduled runs of the low-stock alert and the weekly summary (both were run manually), the Zoho Form sending to the Production URL of the support workflow, and the duplicate order response message on the published order workflow.
Known limits
A Google Sheets lookup can miss two duplicates that arrive at the same moment, and the order total is trusted as received. The Stripe Payment Link has a fixed amount, so it only matches orders of exactly that amount. The low-stock alert repeats daily until restocked, and invalid AI JSON is not covered by the retry settings. I also did not check the free-plan limits in detail or what happens when the n8n trial ends.
What I would improve next
Create a Stripe checkout page for each order with its own amount, recalculate order totals from the product price, and move the data from Google Sheets to a real database with unique constraints. Add a reminder-already-sent flag to the low-stock alert, and run the tests listed above as not run.
A Note from the Builder
The part I cared about most was reliability: making sure the same order is never processed twice, no message is lost, and the team gets a clear alert when something breaks.
Testing taught me things building did not. Forcing a failure in the error handler revealed a mapping mistake, which I fixed and retested. I also caught the AI adding a dollar sign that was not in the data, and fixed it by changing the prompt.
This project shows that I can plan an automation project from a business problem, choose tools sensibly, build connected n8n workflows, add safeguards like idempotency and error handling, use AI with clear limits, and be honest about what is simulated and what is not.
