Home / Insights / Business Operations and Integration
Business Operations and Integration
When n8n Fits a Business Workflow and When Custom Code Is Safer
n8n lets teams automate business workflows quickly, self-hosted or in the cloud. It is not the right home for every process. This guide explains where n8n fits, its licence terms, how to build workflows that fail safely and when to move logic into custom code, with a worked quotation follow-up example.
TopicsBusiness Operations and IntegrationAI Agents and AutomationArchitecture and Modernization
Key takeaways
- n8n is a workflow automation tool with a visual editor, many integrations and code steps, available self-hosted or as a cloud service.
- It fits integration-heavy workflows that change often and can tolerate occasional delays, such as notifications, data syncs and follow-ups.
- Custom code is safer for core business logic, high-volume or low-latency processing, complex transactions and anything customers configure themselves.
- Check the licence: n8n’s self-hosted edition uses the Sustainable Use License, which allows internal business use but restricts offering n8n to others as a service.
- Production workflows need error handling, idempotency, credentials management, version control, monitoring and an owner.
On this page
Workflow automation tools promise to connect your systems without a development project. n8n is a popular choice among technical teams because it combines a visual editor with code steps and can be self-hosted. Used well, it removes hours of manual work. Used for the wrong job, it becomes a hidden application with no tests, no owner and no one who remembers how it works.
This guide helps you decide where n8n fits, explains the licence questions and shows how to build a workflow that fails safely, using a quotation follow-up process as the example.
What n8n is
n8n builds workflows from nodes: triggers (a schedule, a webhook, a new record), actions in other systems (send email, update a CRM, create an invoice), logic (conditions, loops, merges) and code steps in JavaScript or Python. It also offers AI nodes for calling language models. It can run on n8n’s cloud service or on your own infrastructure.
Whether a particular process should use AI at all is a separate question; our guide to AI or rules in workflow automation covers it.
Licence and hosting
n8n describes its model as fair-code. The self-hosted edition is under the Sustainable Use License. n8n’s own licence FAQ explains the practical boundary: internal business use is free, including running workflows for your clients when only your organisation builds and edits the workflows, and using n8n behind the scenes in a product where users trigger pre-built automations. It is not permitted to host n8n as a service where your customers build or configure their own workflows, or to white-label it. Enterprise features require a commercial licence.
If your plan involves customers designing automations inside your product, check with n8n before building on it, or plan a custom or differently licensed engine. This is not legal advice; read the current licence terms for your case.
| Hosting | Advantages | Responsibilities |
|---|---|---|
| — | — | — |
| n8n Cloud | No servers to run; updates handled | Data processed in n8n’s cloud; plan limits; some features differ from self-hosted |
| Self-hosted | Data stays in your infrastructure; full control | You run upgrades, backups, scaling, security and monitoring |
Pricing and plan limits change; check n8n’s current pricing page before deciding.
Where n8n fits and where it does not
| Workflow characteristic | n8n is a good fit | Custom code is safer |
|---|---|---|
| — | — | — |
| Purpose | Connecting systems, notifications, data syncs, internal approvals | Core product logic, pricing engines, transaction processing |
| Change frequency | Changes often; business teams want to adjust it | Stable logic that needs rigorous testing |
| Volume and latency | Moderate volume; seconds or minutes of delay acceptable | High volume, low latency, strict throughput |
| Consistency | Each step can be retried or compensated | Multi-step transactions needing strong consistency |
| Users | Internal staff | Customers configuring their own automations |
| Testing needs | Manual and sample-based testing acceptable | Automated tests, code review, audit trail required |
| Ownership | A named operations or IT owner | A product engineering team |
Many organisations use both: n8n for glue and orchestration, code for core logic exposed through APIs.
A useful pattern is to keep business rules in a service with an API and tests, and let n8n orchestrate the steps around it. If the rules change, they change in one tested place.
Worked example: quotation follow-up
An illustrative maintenance company sends quotes from its job management system. Many quotes are never followed up. The goal: remind the customer after three days, alert the salesperson after seven and record outcomes, without spamming customers or losing track when something fails.
The workflow
- Trigger: every hour, fetch quotes sent more than three days ago, not accepted, not declined and not already reminded.
- Check opt-outs: skip customers who asked not to receive reminders.
- Send reminder by email using an approved template.
- Record the reminder in the job management system with a timestamp, so it is not sent twice.
- Day seven: create a task for the salesperson in the CRM with the quote details.
- Outcome: when the customer accepts or declines, a webhook from the job management system closes the follow-up.
Making it fail safely
| Risk | Safeguard |
|---|---|
| — | — |
| Email sent twice after a retry | Record “reminder sent” before or atomically with sending, and check it first; use a unique reminder ID |
| Job system API down | Retry with backoff; after a limit, move the item to an error queue |
| Bad data (no email address) | Route to the error queue with the reason instead of failing the whole run |
| Customer changed their mind mid-flow | Re-check quote status immediately before sending |
| Salesperson needs to stop reminders | Manual override flag on the quote that the workflow respects |
| Silent failure | Error workflow sends alerts to the owner; daily summary of items in the error queue |
Each safeguard addresses a failure that would otherwise reach a customer or go unnoticed.
The error queue and manual override
Failed items go to a simple queue, such as a database table or a list in the job management system, with the quote, the step that failed, the error and the time. A named person reviews it daily and either fixes the data and retries or closes the item. The manual override lets sales staff pause reminders for a quote they are handling personally. Both are small additions that make the automation trustworthy.
Running n8n in production
- Owner: each workflow has a named owner and a description of what it does and why.
- Version control: export workflows to a repository or use available source-control features, so changes are reviewed and reversible.
- Environments: develop and test in a non-production instance with test credentials.
- Credentials: use the credential store, least-privilege service accounts and rotation; never paste secrets into code nodes.
- Error workflows: configure an error workflow that alerts the owner.
- Monitoring: track executions, failures and duration; alert on unusual patterns.
- Upgrades and backups: for self-hosted instances, schedule upgrades, back up the database and test restores.
- Inventory: keep a list of workflows, the systems they touch and the data they process.
Signs a workflow has outgrown n8n
- Code nodes have grown into hundreds of lines that nobody reviews.
- The workflow needs automated tests to be safe to change.
- Volume or latency requirements are straining the instance.
- Customers or partners need to configure it.
- Several workflows duplicate the same business rules.
When these appear, move the logic into a service with an API and keep n8n for orchestration, or replace the workflow entirely. Our build vs buy framework helps compare the options.
Frequently asked questions
Is n8n open source?
Its source code is available, but the self-hosted edition is under the Sustainable Use License, which restricts some commercial uses. n8n describes the model as fair-code.
Can we use n8n to automate work for our clients?
Running workflows you build and maintain for clients is generally permitted; letting clients build their own workflows on your instance is not. Check the current licence for your case.
Is n8n secure enough for business data?
It can be, with proper hosting, access control, credential management and monitoring. Self-hosting gives control but makes security your responsibility.
n8n or Zapier or Make?
Compare by hosting needs, data location, pricing model, integrations you need and your team’s technical skills. Self-hosting is a key difference for n8n.
Sources and methodology
Facts in this article were checked against the sources below. Directory data (ratings, review counts, rate bands and team sizes) changes over time and is shown as published on the date accessed. Illustrative examples are labelled as such and are not quotes.
- n8n Docs: Sustainable Use License FAQ — What the self-hosted licence permits and restricts, with examples
- AltexSoft: n8n Pros and Cons — Reviewed as a baseline; covers features, pros, cons and tool comparison without a production operating model or failure handling
Related reading
Continue your research
Considering n8n or custom automation?
Share the workflow you want to automate. We will help you decide what belongs in n8n, what belongs in code and how to make it fail safely.
