AI workflow automation is easy to start and hard to run. For a long time we built ours in n8n, and for prototypes it was excellent. In production it was not. Today we still let designers sketch flows in n8n, but every flow that goes live is rebuilt in code, and with modern LLM coding tools that rebuild takes very little time.
The short version
- n8n is a great prototyping tool. Our UX designers could connect real accounts and test an idea in an afternoon, with no code.
- It did not hold up in production. No code review, hard debugging, unexpected errors and upgrades that sat outside the engineering team.
- An n8n workflow is just JSON. We export it, give it to an LLM coding harness, and get a faithful first version in code.
- Engineers own what goes live. Code gives us reviews, tests, version history and proper alerting.
Why n8n was everywhere at first
When we started building AI products, n8n was in almost everything we touched: content pipelines, the assistant chat inside an internal CMS, and many small integrations between tools. The reason was simple. It let people who do not write code build working automations.
Our UX designers loved it. They could connect an account on almost any service, drag a few blocks together, add an LLM step and see a real result the same day. That is a great way to learn what is possible before anyone writes a line of code. A prototype that runs against real services answers questions that a static design never can.
The designers were tweaking and exploring. That is exactly what a prototype is for. The trouble started when the prototype had to become a product.
Why n8n did not work for us in production
In our team, designers explore and engineers carry the responsibility. Once a flow serves real users, someone has to make sure it works every time, fails loudly when it does not, and can be changed safely. When we tried to make our n8n flows production grade, we kept running into the same walls.
- 1No code reviewChanges went live from the editor. There was no pull request, no second pair of eyes and no clear history of who changed what and why.
- 2Hard to debugSome runs failed with unexpected errors that were hard to reproduce. Tracing data through dozens of blocks took far longer than reading a stack trace.
- 3Upgrades outside our controlWe used a hosted cloud plan owned by one account outside the delivery team. When a fix needed a newer version, we had to wait, and the work stopped.
- 4Weak alertingWe could not plug the flows into the monitoring and alerting we use for everything else, so failures were found late.
The same flow, before and after
Where a change goes and who hears about a failure.
Before: n8n in production
- Edit in the browseranyone with access, no review
- Hosted n8n workspaceone plan owner, upgrades wait
- Live flowunexpected errors, hard to trace
- Failure found latewhen someone checks the logs
After: code in production
- Engineer and LLM harnessrebuild from the exported JSON
- Pull requestcode review and version history
- CI and deploytests, our cloud, our versions
- Monitoring and alertsthe owning team hears first
Source: Bettor Faster delivery process, 2026.
None of this makes n8n a bad tool. It makes it the wrong home for software that a business depends on. The tipping point came when we noticed that each time a flow broke, fixing it in code was faster than fixing it in the editor.
How we moved n8n workflows to code
We did not plan a big migration. We started small: the next flow that broke was rewritten as a service, then the next one. It worked so well that we decided to move everything that mattered.
The step that made this cheap is a detail many teams miss. An n8n workflow is a JSON document. You can download it from the editor, copy it from the canvas, or export it from the command line. That JSON holds every node, every connection and every setting, so it is a complete specification of what the flow does.
From prototype to production
Designers own the first step. Engineers own everything after the export.
- Prototypedesigners build it in n8n
- Exportworkflow JSON, no secrets
- Rebuildan LLM harness writes the code
- Reviewpull request and tests
- Rundeployed with alerting
Source: Bettor Faster delivery process, 2026.
We give that JSON to an LLM coding harness, such as Claude Code, together with our usual project rules: language, framework, how we handle secrets, retries and logging. The harness recreates the flow as ordinary code in our own stack. In our experience it reproduces the logic faithfully, block by block, and the result reads like code an engineer wrote.
From there it is normal engineering. The code goes through a pull request, gets tests for the steps that matter, runs in our own cloud project and reports to the same alerting as the rest of our services. If something breaks at night, the right person hears about it, and the fix ships through the same review as any other change.
One practical warning: exported workflows can include credential names, IDs and, for some request nodes, authentication headers. Strip those before the JSON goes anywhere, including into an AI tool.
Prototype in n8n, ship in code: our workflow today
We kept the part of n8n that worked. Designers still prototype in it when they want to test an idea against real services without waiting for an engineer. When the idea is approved, the export becomes the starting point of the implementation ticket. We rebuild it in code, and engineers support it from then on.
| n8n prototype | Production code | |
|---|---|---|
| Who builds it | Designers and product people | Engineers, with an LLM harness |
| Change control | Edits in the editor | Pull requests, review and version history |
| Debugging | Execution logs per block | Logs, traces, tests and local runs |
| Failures | Found when someone looks | Alerts to the owning team |
| Upgrades | Depend on the plan and its owner | Our own dependencies, our own schedule |
| Best for | Answering "is this possible?" | Running it for real users every day |
LLM harnesses changed the cost of a proof of concept
The other reason we rely on n8n less is that writing code is no longer the slow part. With today's LLMs and agent harnesses, an engineer can build a proof of concept in code almost as fast as a designer can drag blocks. The POC then starts in the right place: in the repository, with the real stack, ready to grow into the product.
That changes the trade-off. A visual builder used to save days of engineering work. Now it mainly saves the need to know how to code. That is still valuable for designers and product people, so n8n keeps its place as a sketchpad. But for anyone who can describe the flow to a harness, the shortest way to a reliable product is to skip the sketch and write the code.
We apply the same thinking to the AI agents for business we build for clients. If you are weighing a visual automation tool against custom code, our AI automation agency can help you prototype quickly and ship something you own. For an example of code-first automation at scale, see how we replicated a 12-person content team with AI agents, and how we turn data into content that publishes at scale.
Frequently asked questions about AI workflow automation
Is n8n good enough for production AI workflow automation?
n8n can run simple production integrations, but for AI workflow automation that a business depends on, Bettor Faster moves the flow to code. Code gives pull request review, tests, version history and proper alerting, which were hard to get from n8n flows edited in the browser.
How do you convert an n8n workflow to code?
To convert an n8n workflow to code, export the workflow as JSON, remove any credentials, and give the JSON to an LLM coding harness with your project rules. The harness recreates each node as code in your stack, and engineers then review, test and deploy it.
What is n8n still useful for in a product team?
n8n is still useful for fast prototypes by people who do not write code, such as UX designers and product managers. They can connect real accounts and test what is possible in hours, and the exported workflow becomes the specification for the production version.
Should you build AI agents for business in n8n or in custom code?
AI agents for business that serve real users belong in custom code, because the team responsible needs reviews, tests and alerting it controls. A visual tool like n8n is a good way to explore the idea first, and an LLM harness makes the move to code quick.
Our AI automation agency builds both the prototype and the production version.
Is it safe to give an exported n8n workflow to an LLM?
Giving an exported n8n workflow to an LLM is safe once you remove sensitive data. The n8n documentation warns that exported JSON can include credential names, IDs and authentication headers, so strip those first and keep real secrets in your own secret store.
Sources
- n8n, "Export and import workflows", n8n documentation, docs.n8n.io/workflows/export-import.



