Skip to main content
Integrations · n8n
A Guild agent can create and publish n8n workflows, monitor executions, manage users and projects, and generate security audits on your n8n Cloud instance. Guild stores the n8n API key server-side and injects it on every request, so agent code never sees it. Credential policies let you restrict which operations each agent can call, and every request is logged for audit.

Book a demo

See how teams govern agents that use n8n.

Talk to sales

Get access to Guild, then connect n8n to your first agent.

What the n8n integration exposes

The integration wraps the n8n Cloud public API as agent-callable tools prefixed with n8n_. Tools cover workflows (create, publish, archive, transfer, version history), executions (retrieve, retry, stop, delete), credentials, projects, folders, data tables, variables, tags, users, roles, log streaming destinations, source control, promotion environments, security audits, and LDAP/OIDC/SAML configuration. Some tools are marked Preview or Beta in n8n and may change without a major version bump.

How it works

1

Get an n8n API key

In n8n, go to Settings > n8n API and create an API key. Copy it for the next step.
2

Connect n8n in Guild

In Guild, open Access & setup > Credentials, click Connect, select n8n, and paste the key into the API Key field.
3

Add tools to your agent

Import N8nTools from the integration package and spread it into your agent’s tools object. Use pick() to include only the tools your agent needs.

Why n8n access needs governing

n8n agents can create and delete workflows, manage instance credentials, change user roles, and trigger security audits. Guild’s credential policies let you write ALLOW and DENY rules that the credential proxy enforces before any request leaves Guild. You can scope rules to specific agents or workspaces, limit access to read-only operations with a methods constraint, or block destructive tools like n8n_delete_workflow by name or pattern. Guild stores the API key server-side and adds it as the X-N8N-API-KEY header on each call. Agent code never receives the key. You can scope the credential to a single workspace, a single member, or a dedicated agent using credential scoping, so a workspace-specific n8n instance is never accessible from other workspaces.

About the n8n integration

This integration lets agents create, run, and manage n8n workflows and monitor their executions. Agents can also manage credentials, projects, data tables, variables, tags, and users on an n8n Cloud instance. Administrative tasks such as security audits, log streaming, and role management are also available. The integration is guildai~n8n.

Authentication

  • Type: API key
  • Header: Guild sends the key as X-N8N-API-KEY: <key>

Setup

1

Get an API key

Create an API key in n8n under Settings > n8n API, and paste it here.
2

Connect n8n

In Guild, go to Access & setup > Credentials, click Connect, select n8n, and paste the key into API Key.
See Credentials for workspace, member, and agent-scoped credentials.

Usage

Selecting specific tools

Tools are named with the n8n_ prefix. Use pick() to include only what your agent needs.

Tools

Tools in the latest published version of guildai~n8n:

Frequently asked questions

No. The catalog entry for guildai~n8n lists no webhook events, so the integration does not deliver n8n events to agents. Agents can poll executions and workflows using the retrieval tools.
Guild injects the key as the X-N8N-API-KEY header server-side after the credential policy check passes. The key is never passed to agent code.
Yes. A credential policy with a methods resource constraint set to GET blocks mutating calls. You can also list specific operations like n8n_get_workflows or use a pattern such as n8n_get_* in an ALLOW rule and deny everything else.
Yes. Connect a second n8n credential scoped to that workspace from the workspace’s Credentials page. Guild resolves workspace-scoped credentials ahead of the account default, so agents in that workspace use the workspace credential. See Credentials for the full resolution order.

Put a governed agent on n8n this week

Book a demo

See how teams govern agents that use n8n.

Talk to sales

Get access to Guild, then connect n8n to your first agent.
Also runs on Guild: Calendly · Coda · Confluence · Fathom Read: Docs: Credential policies · Credentials · Tools in agents
Last modified on December 1, 2026