Search

Guides / Build · Agents

AI automation with n8n

A self-hosting guide for IT teams. Deploy n8n for AI workflows and agents on your own infrastructure: architecture, hardening, risk tiers, operations and your first week.

For IT directors, platform teamsAbout 16 min readSection 1 freeUnlocked on your plan

If you work in IT at a Canadian mid-size organization, there is a fair chance someone has already wired corporate data into a public AI tool with a free automation account. You do not want to crush their initiative, because they are usually solving real operational bottlenecks. You just want the data to stay inside your perimeter, the credentials out of plain text, and the audit logs somewhere you can actually read them.

This guide is part of the 808 Data implementation series alongside The AI Strategy Playbook and our companion guides on Ollama and the Model Context Protocol (MCP). It walks you through deploying a production-grade, self-hosted n8n instance tailored for AI workflows and agents, without the marketing fluff.


1. What It Is and When to Use It (and When Not To)

n8n is a workflow automation platform that you can self-host or run on cloud plans (Starter, Pro, Business—which is self-hosted only—and Enterprise) [N1, N11, N14]. In the context of AI, it acts as the orchestration layer: it connects triggers, business applications, data sources, and large language models (LLMs) [N13]. Out of the box, n8n connects to LLM providers such as OpenAI, Anthropic, and Google, and its pricing page lists an AI Agent node, an MCP Server Trigger, an MCP Client, and human approval for tool calls on all cloud plans (check this for your self-hosted version/edition) [N13].

Relative to emerging protocols, it is already an established tool: over a 12-month worldwide period, Google Trends averaged 53–60 for n8n compared to 24–28 for "MCP server" [M9].

When to use it:

  • You need to glue internal systems together with LLMs and require human-in-the-loop approvals before an AI agent executes a tool call [N13].
  • You want to consume external tools via the MCP Client or expose n8n workflows as standardized tools to other AI applications using the MCP Server Trigger [N13, M1].
  • You want control over where execution data lives by hosting the platform on your own Linux infrastructure backed by PostgreSQL [N4, N5].

When not to use it (or at least not the free tier):

  • You need enterprise governance on a zero-dollar budget. Without a licence key, n8n runs as the free Community edition [N11]. While registering your Community instance with an email unlocks folders, debugging in the editor, and custom execution data, the Community edition lacks SSO (SAML/LDAP), external secrets, environments, custom variables, external binary storage, log streaming, projects, sharing, multi-main setups, and Git version control [N11]. If your security policy mandates SAML, external secret vaults, or log streaming, you must budget for the self-hosted Business or Enterprise plans [N11, N14]. Read n8n's current licence terms (the Sustainable Use License) before you deploy, especially if you plan to offer workflows to anyone outside your organization.
  • You expect a casual single-container setup to handle heavy multi-user production. The default SQLite database is not recommended for multi-user production and is not supported in queue mode [N5].

Sources

Every fact in this guide comes from the official documentation below, checked on 19 Nov 2026. A code like [N4] in the text links to its source here.

  1. N1 n8n docs: hosting options
    docs.n8n.io/hosting
  2. N2, N3, N10 n8n docs: Docker installation (versions, updates, tunnel warning)
    docs.n8n.io/hosting/installation/docker
  3. N4, N5, N6, N7 n8n docs: production requirements (ports, database, encryption key, reverse proxy)
    docs.n8n.io/deploy/host-n8n/install-options/production-requirements
  4. N8 n8n docs: security environment variables
    docs.n8n.io/deploy/host-n8n/configure-n8n/basic-configuration/use-environment-variables/security
  5. N9 n8n docs: nodes environment variables
    docs.n8n.io/deploy/host-n8n/configure-n8n/basic-configuration/use-environment-variables/nodes
  6. N11 n8n docs: Community edition features
    docs.n8n.io/deploy/host-n8n/community-edition-features
  7. N12 n8n docs: queue mode environment variables
    docs.n8n.io/deploy/host-n8n/configure-n8n/basic-configuration/use-environment-variables/queue-mode
  8. N13, N14 n8n docs: advanced AI, and the n8n pricing page
    docs.n8n.io/advanced-ai · n8n.io/pricing
  9. O1 Ollama: download page and FAQ
    ollama.com/download · docs.ollama.com/faq
  10. O2 Ollama docs: GPU support
    docs.ollama.com/gpu
  11. O3, O4, O6, O10 Ollama docs: FAQ (context length, network, model storage, tuning, local-only mode)
    docs.ollama.com/faq
  12. O7 Ollama docs: API and OpenAI compatibility
    docs.ollama.com/api · docs.ollama.com/openai
  13. O8 Ollama docs: Modelfile and importing models
    docs.ollama.com/modelfile · docs.ollama.com/import
  14. O9 Ollama on GitHub (MIT licence)
    github.com/ollama/ollama
  15. O11 Ollama latest release on GitHub
    github.com/ollama/ollama/releases/latest
  16. M1 Model Context Protocol: home page
    modelcontextprotocol.io
  17. M2, M3 MCP docs: architecture, and the 2026-07-28 specification
    modelcontextprotocol.io/docs/learn/architecture
  18. M4 MCP specification: transports
    modelcontextprotocol.io/specification/latest/basic/transports
  19. M5 MCP specification: authorization
    modelcontextprotocol.io/specification/latest/basic/authorization
  20. M6 MCP specification: security best practices
    modelcontextprotocol.io/specification/latest/basic/security_best_practices
  21. M8 MCP on GitHub: the official MCP Registry
    github.com/modelcontextprotocol/registry
  22. M9 Demand data: pypistats for the mcp package (Google Trends comparisons run 19 Nov 2026)
    pypistats.org/packages/mcp