Search tools, AI agents, MCP servers
Submit a tool

Search iThub

Search tools, categories and collections. Type at least two characters.

Explore all tools
↑ ↓ to explore resultsEnter to open · Esc to close

Workflow Automation

n8n: workflow automation, AI agents and hosting options

n8n is fair-code workflow automation with a visual canvas and JavaScript or Python code nodes: examples, AI agents, self-hosting vs Cloud, Zapier and Make.

n8n: workflow automation, AI agents and hosting options cover

Affiliate disclosure: this article contains a tracked partner link. iThub may receive a commission if you sign up through it, at no extra cost to you. Editorial methodology.

Try n8n - Affiliate partner
On this page
  1. What is n8n?
  2. Core concepts: nodes, triggers, and workflows
  3. Concrete workflow examples
  4. AI agents in n8n
  5. MCP support
  6. Self-hosting versus n8n Cloud
  7. n8n vs Zapier vs Make
  8. Who should use n8n
  9. Getting started
  10. Summary
  11. Official sources and review

n8n (pronounced "nodemation") is a widely used workflow automation project. At the October 3, 2026 source check, its official GitHub repository showed more than 206,000 stars. It solves a problem that Zapier and Make struggle with: how do you build automation that handles real-world complexity without writing a separate microservice every time you hit an edge case?

This guide covers what n8n is, how it works, concrete workflow examples you can replicate, and when you should choose n8n over the alternatives.

What is n8n?

n8n describes itself as a fair-code workflow automation platform. Its source is public, while the Sustainable Use License sets conditions for commercial use. The Community Edition documentation explains which features are included and which require a paid tier.

A workflow in n8n is a directed graph of nodes. Each node either triggers the workflow (a Webhook, a Schedule, a new row in a database) or takes an action (calls an API, transforms data, sends a message). Data flows between nodes as JSON arrays, and every execution is logged and replayable from the UI.

What makes n8n different from Zapier or Make is that anywhere in that graph, you can use a Code node with JavaScript or Python. There is no wall where no-code ends and you have to go elsewhere. The visual canvas and the code editor coexist, and switching between them is a single click.

Core concepts: nodes, triggers, and workflows

Trigger nodes start a workflow. Common triggers include an incoming webhook, a cron schedule, a new message in Slack, a new row in a PostgreSQL table, a new email in Gmail, or a manual test run.

Action nodes do something with the data. They read from or write to external systems: send a Slack message, create a HubSpot contact, execute a SQL query, call a REST API, or transform data with JavaScript.

Workflows chain nodes together. Outputs of one node become inputs of the next. Branching, merging, looping, and error handling are built into the canvas. You can test a single node with pinned data without triggering the entire workflow.

Credentials are stored separately from workflows and referenced by name. Review the official security configuration documentation, set a stable encryption key and validate secret handling in your own deployment before production use.

Concrete workflow examples

GitHub issue to Slack alert

A Webhook node listens for GitHub push events. A Set node extracts the repository name and author. An IF node checks whether the commit message contains "BREAKING". If true, a Slack node posts to #engineering-alerts. If false, the workflow ends silently. Use this as a test scenario and record the build time, error path and maintenance effort in your own environment.

Nightly lead enrichment

A Schedule trigger fires at 02:00 each night. A PostgreSQL node pulls leads created in the past 24 hours that have no enrichment data. An HTTP node calls the Clearbit Enrichment API for each lead. A Code node restructures the response into the CRM format. A HubSpot node updates each contact record. A Slack node posts a summary to #sales-ops.

AI security incident enrichment

A webhook from a SIEM fires when a medium or high severity alert is created. An HTTP node fetches the IP addresses from the alert payload. A loop iterates over each IP: an HTTP node queries VirusTotal, an AI Agent node (using Claude or GPT-4) summarises the threat context in plain English, and an HTTP node patches the incident ticket in Jira with the enriched description. Measure enrichment latency, rate limits, error handling and analyst review time with production-like alerts before adopting the workflow.

Employee onboarding sequence

HR submits a form when a new hire is confirmed. n8n creates the user account in Okta, provisions a GitHub organization invite, creates a Notion onboarding page from a template, schedules a welcome email for their first Monday, and posts a welcome message in the team Slack channel, all from a single workflow triggered by the form submission.

AI agents in n8n

n8n AI agent nodes let you build workflows where a language model makes decisions, not just transforms data. An agent node receives a goal, a list of available tools (nodes it can call), and optional memory. It reasons through the goal, calls tools in sequence, and returns a structured result.

Unlike prompt chains, agent workflows are reactive: the model decides which tools to call and in what order based on what it learns at each step. n8n makes every step of that reasoning visible on the canvas, including the prompt sent, the response received, and what tool was called next.

n8n supports OpenAI, Anthropic Claude, Mistral, Ollama (for local/offline models), and any model accessible via a compatible API. Switching models is a dropdown change; the workflow structure does not change.

Human-in-the-loop nodes pause execution until a person approves or rejects the next action. This is particularly useful in security workflows where an AI may flag a suspicious user account: the workflow pauses, sends the context to a Slack channel, and waits for an analyst to confirm before proceeding with a disable action.

MCP support

n8n added Model Context Protocol (MCP) support in 2025. This allows n8n workflows to connect to any MCP-compatible tool server, including database connectors, file systems, and custom internal tools, using the same protocol that Claude, Cursor, and other AI clients use. Teams that have already built MCP servers for their internal systems can reuse them directly in n8n agent workflows without rebuilding integrations.

Self-hosting versus n8n Cloud

The self-hosted community edition can run in your own environment; confirm the current feature set in the official edition comparison. You manage infrastructure, updates, backups, and availability. Suitable for teams with existing DevOps capacity.

n8n Cloud is fully managed. No server to operate, automatic updates, guaranteed uptime SLAs. Priced per workflow execution and active workflow count. Suitable for teams that want automation without infrastructure overhead.

The enterprise self-hosted tier adds SSO, RBAC, audit logs, SIEM integration, Git-based deployment, isolated environments, and dedicated support.

The decision is straightforward: if your organization has a no-external-data policy, self-hosting is the only viable option. If your team does not want to manage one more service, n8n Cloud removes the operational burden.

n8n vs Zapier vs Make

Zapier and n8n publish changing integration catalogs, so compare the exact connectors and operations required by your workload rather than relying on a total count. Make sits in the middle. n8n wins on data control, custom logic, AI agent depth, and cost at volume. The tradeoff is operational complexity if you self-host.

Teams replacing Zapier with n8n typically cite three reasons: customer data cannot leave their infrastructure, per-execution costs at scale are significant, and they keep running into workflows where Zapier cannot handle the required logic without adding a middleware service.

Who should use n8n

n8n is a strong fit for technical teams: developers, DevOps engineers, IT operators, and security analysts who need automation that handles complex branching, custom data transformation, or privacy constraints. It is also well suited to organizations running high-volume pipelines where per-execution SaaS costs add up, and to teams building AI agent workflows that need full visibility into model decisions.

n8n is not the best choice for non-technical users who need simple app-to-app automation without custom logic. Zapier's user experience is more accessible for that use case. It is also not ideal for teams with no capacity to maintain a self-hosted service who have low automation volume, where n8n Cloud becomes expensive relative to Zapier's free tier.

Getting started

The official Docker installation guide provides the current image, persistence and deployment instructions.

Run docker pull docker.n8n.io/n8nio/n8n then docker run -it -p 5678:5678 -v n8n_data:/home/node/.n8n docker.n8n.io/n8nio/n8n. Open localhost:5678, create your account, and build your first workflow. The canvas is self-explanatory: drag a trigger node, connect an action node, click Execute to test.

For production self-hosting, the n8n documentation recommends running behind a reverse proxy with a PostgreSQL database instead of the default SQLite, and enabling a public domain for webhook URLs. The community forum has guides covering most common deployment patterns including Docker Compose, Kubernetes, and Coolify.

Summary

n8n occupies a specific and valuable position in the automation landscape: visual workflow orchestration with no limits on custom logic, self-hostable with enterprise controls, and increasingly capable as an AI agent runtime. For IT and engineering teams that have hit the limits of Zapier or Make, whether on data privacy, code flexibility, or cost, n8n is worth evaluating. Use the Community Edition for a time-boxed proof of concept and follow the current official deployment documentation.

Official sources and review

Reviewed by Emanuel DE ALMEIDA on October 3, 2026. Product behavior, editions and plan limits change. The main references used for this update were the official repository, workflow documentation, Code node documentation, Community Edition feature page and Docker installation guide.

Frequently asked questions

Is n8n free to use?

n8n's community edition is free to self-host with no execution limits. n8n Cloud has a free trial and paid plans based on workflow execution volume. Enterprise licensing adding SSO, RBAC, and audit logs is available for self-hosted deployments.

Can n8n replace Zapier?

For technical teams, yes, especially if data privacy, custom logic, or high execution volume is a concern. n8n has fewer native integrations than Zapier but supports any REST API via a generic HTTP node, covers most common tools natively, and allows JavaScript or Python code in any workflow step.

Does n8n support AI agents?

Yes. n8n has native AI agent nodes that connect to OpenAI, Anthropic Claude, Mistral, Ollama, and other models. Agents can use workflow nodes as tools, maintain memory across steps, and include human-in-the-loop approval checkpoints. MCP support is also available.

How do you self-host n8n?

The simplest method is Docker. Pull the n8n image from docker.n8n.io and run it with a volume mount for persistence. For production, use Docker Compose or Kubernetes with a PostgreSQL database, a reverse proxy, and a public webhook URL. Full deployment guides are in the n8n documentation.

What is n8n's fair-code license?

Fair-code means n8n source code is publicly available and free to use internally. Restrictions apply only to offering n8n as a hosted service to third parties. For teams automating their own operations, there are no license constraints.

Share this article

Facts link to their official sources. Product details can change after publication: report an error or read the editorial methodology.

Emanuel DE ALMEIDA

Written by

Emanuel DE ALMEIDA

Entrepreneur · IT consultant · Software creator

Geneva-based entrepreneur, IT consultant and creator of SuniPDF and SuniCapture. Emanuel shares practical IT, cybersecurity and software insights on iThub.

Keep reading

More guides and analysis from the iThub editors.

All insights
What is an MCP server? A practical guide to AI connectionsLearn what an MCP server does, how tools and resources connect to AI clients, and how to choose a maintained integration for a practical workflow.How to build an MCP server in TypeScript and PythonBuild an MCP server with the 2026 TypeScript and Python SDKs: tools, stdio and Streamable HTTP, OAuth, security, Inspector tests and publishing.What is Domain Rating (DR)? How it works and how to use itDomain Rating (DR) is Ahrefs' 0 to 100 score for a site's backlink strength. How it is calculated, how it differs from DA, and why Google does not use it.