Learn with Asadulelah · Lesson 10
n8n or Claude Code: which should I use for business automation?
By Asadulelah, a Kerala-based builder of custom software and AI systems for businesses. I build by directing a fleet of AI agents, and this is how I actually do it.
WHO THIS IS FORBusiness owners, freelancers and automation builders choosing between a visual workflow tool and AI-written code for real client work.
WHAT YOU'LL HAVE AT THE ENDA clear rule for which jobs belong in n8n and which belong in owned code, plus what a code-first setup looks like day to day.
Use n8n for simple, visible connections between apps that a non-technical person may need to change; use Claude Code to write real, owned code when the automation carries business logic, money or data that must never be dropped or duplicated. They aren't the same kind of tool: n8n is a place where workflows run, while Claude Code is an agent that writes the program and can be the AI step inside it.
I started on n8n. I learned it in two nights in 2025, built a library of workflows that's still public on my GitHub, and ran two self-hosted n8n servers. In 2026 I moved my business work to code written by AI agents, and in September I stopped both servers. Here's why, and when I'd still pick n8n.
Why I moved off n8n
My path was n8n, then Python, then TypeScript, then I stopped building plain automations at all, because automations have become the baseline. Clients don't want a workflow. They want a system that runs their operation.
Three reasons drove it:
- Ownership. Custom code is fully owned. No subscription a client has to keep paying, no editor they have to learn, no platform change that breaks them.
- Reliability. In the visual tools I used, one failed API call could drop a lead, duplicates went unnoticed, and retries were dumb. In code, I write the business logic as plain deterministic steps, put a unique key on anything that must happen once, and use the AI only where judgment is needed (routing, reading, drafting).
- Speed once you have patterns. Code is slower to start. Once templates and rules exist, an agent reusing them iterates faster than I could drag nodes.
The thing that made code realistic for one person: I don't type it. "We're just prompting the AI, it will find the best languages to work with by itself." My job is the design, the rules and the checks.
When n8n is still the right answer
- The flow is a simple trigger and a few app-to-app steps (a form fills a sheet, a new row sends an email).
- Someone non-technical on the team needs to see and change the flow themselves.
- It's a prototype to prove the idea before anything is built properly.
- Nothing bad happens if a run is dropped once in a while.
If two or more of those are true, n8n (or a tool like it) is cheaper and faster. Don't build software to move a row.
When I write code with Claude Code instead
- Money, invoices, fees or stock are involved, so every action must happen exactly once.
- The logic has many rules and exceptions that would turn into a wall of nodes.
- It needs a real screen for staff, roles and permissions.
- It must keep working for years without a platform subscription.
- An AI step needs guardrails: it drafts, a person approves.
The same job, both ways
Take a simple one: a lead fills a form and should get a follow-up.
In a visual tool: form trigger, add a row to a sheet, send an email. It works in the demo. Then the email API times out once, the run fails, and that lead never hears back. Nobody notices, because nothing shows a missing row. The same person submits twice and gets two emails.
In code: the form posts to a small endpoint that saves the lead first, with a unique key on email and phone, so nothing is lost and nothing is doubled. A worker sends the follow-up from a queue with retries and backoff. The AI drafts the message from what the lead wrote; a person approves before anything is sent. After three failures, I get an alert. Same idea, but the failure cases are designed, not discovered.
What runs my automation now
Scheduled jobs are plain system timers on my server. Some run a small script; some wake a headless Claude Code session to read, summarise and draft. Example: a watcher wakes every two minutes, reads new messages with a read-only key, and posts a one-line summary and a draft reply for me to approve. Bigger jobs go to a fleet of Claude Code workers through a small launcher. Business logic lives in versioned code with tests, not in a visual editor.
One honest catch: scheduled AI jobs depend on your usage limit. When an account hits its cap, a scheduled run can die in two seconds without telling anyone. So every AI job that matters has a failure alert, and the ones that don't need AI don't use it.
Mistakes I made with n8n
- I left two n8n editors reachable from the internet on raw ports over plain HTTP. An automation editor can run arbitrary code by design, so that is a door, not a dashboard.
- When I moved servers, community nodes didn't come along because their installed packages weren't copied, three workflows wouldn't activate, and webhooks still pointed at an old domain.
- Before I turned the servers off, I exported every workflow to JSON first. Do that before you shut anything down; it's the only part I got right the first time.
What I'd do next
If you're choosing today: list the automations you want and mark each one "money or data that must not be lost" or "convenience". Put the convenience ones in n8n now. For the others, write a one-page description of the rules and have Claude Code build it as a small service with tests, and keep a human approval on anything that sends messages or moves money. If you want to see what a code-first system looks like for a real business, my answers on custom software walk through it.
Keep learning
- How do I send automated WhatsApp messages without getting my number banned?
- Can I use Claude Code if I'm not a programmer?
- Answer: Should I buy software or build custom software for my business?
- The AI builder's glossary (25 terms in plain words)
All lessons · All answers · About Asadulelah
Want a system like this built for your business? Book a 30-minute call or email hello@asadulelah.com.