First, the honest part: is n8n an OpenClaw channel?
n8n is not a native OpenClaw channel. There is no channels.n8n. n8n is reached through its REST API with an API key, or by pointing n8n at OpenClaw (and vice versa) over webhooks.
Most “OpenClaw + X” write-ups online get this wrong: they paste a channels: block for a tool OpenClaw has no adapter for. OpenClaw accepts that key silently (its config schema allows extra channel keys) and then nothing happens — no token, no webhook, no error. That is the single most common reason a “connected” agent stays silent.
What you can actually build with n8n
- Let n8n handle the triggers and the API calls, and OpenClaw handle the judgement-heavy steps
- Send an n8n webhook payload to OpenClaw for a decision, and post the answer back
- Trigger an OpenClaw agent from a scheduled n8n workflow and store the result in a sheet
- Let n8n own the deterministic plumbing (enrich, dedupe, write to DB) around an agent's output
- Send agent output into an n8n workflow for multi-step fan-out across channels
How OpenClaw connects to n8n
n8n runs the workflow: triggers, connectors and deterministic steps. OpenClaw runs the agent: judgement, language, ambiguity. The clean integration lets each side do what it is good at and hands work across a webhook.
Whichever path you take, the agent still needs a personality and a job description. A bare API key tells OpenClaw it may call n8n; a SOUL.md tells it when to call it and what a good answer looks like. Skipping that step is why most integrations produce impressive demos and nothing else.
Credentials
N8N_API_KEY— an instance-level API key created in n8n under Settings → n8n APIN8N_BASE_URL— the base URL of your n8n instance (local, or https://host.n8n.cloud)
Setup
Step 1 — Create the API key
In n8n: Settings → n8n API → Create an API key. Copy it into the environment as N8N_API_KEY and record the base URL.
Step 2 — Pick the direction of the handshake
Two directions work. n8n → OpenClaw: add a Webhook node that POSTs to your gateway. OpenClaw → n8n: the agent calls the n8n REST API to create or trigger work. Most setups start with the second and add the first later.
Step 3 — Use production webhooks, not test ones
A webhook node has a Test and a Production URL, and they are different paths. Triggering the test URL from outside n8n returns a stub response instead of running the workflow — a classic false success.
Copy-paste config
# 1. list workflows
curl -s "$N8N_BASE_URL/rest/workflows" \
-H "X-N8N-API-KEY: $N8N_API_KEY" | head -c 300
# 2. trigger a workflow through its production webhook
curl -s -X POST "$N8N_BASE_URL/webhook/triage-inbound" \
-H "Content-Type: application/json" \
-d '{"lead":{"email":"[email protected]","text":"need a quote"}}'
# 3. read the executions of one workflow
curl -s "$N8N_BASE_URL/rest/executions?workflowId=<WORKFLOW_ID>" \
-H "X-N8N-API-KEY: $N8N_API_KEY" | head -c 300
The raw API call underneath
Execution results are how you verify the agent's work actually ran inside n8n:
curl -s "$N8N_BASE_URL/rest/executions/<EXECUTION_ID>" \
-H "X-N8N-API-KEY: $N8N_API_KEY" \
| python3 -c "import json,sys; d=json.load(sys.stdin); \
print('status:', d.get('finished'), '| mode:', d.get('mode'))"
Gotchas that cost people an afternoon
- Test webhooks lie. Calling a webhook's test URL returns a stub and runs nothing. Only the production path executes the workflow.
- The API key is admin-level. It can create, activate and delete workflows. Consider giving the agent a dedicated instance, or exposing a narrow wrapper endpoint instead of the key itself.
- Execution status is asynchronous. Triggering a workflow returns immediately; the result arrives later. Poll
/rest/executionsor use the webhook's response mode to wait. - Both sides can trigger each other. A naive setup lets n8n call the agent which calls n8n, and you get an infinite loop. Give one direction a guard: a marker field, or a workflow that only runs on explicit input.
- Credentials live inside n8n, not in OpenClaw. n8n's own credential store is where the third-party keys belong — that is exactly the boundary that keeps the agent from holding every secret.
FAQ
Should I use n8n or OpenClaw for a task?
Deterministic steps with known APIs belong in n8n; anything requiring judgement, language or ambiguity belongs in the agent. Most good setups use both.
Can the agent create a workflow?
Yes, through the REST API, but the JSON is unforgiving. Generating the workflow definition is usually better done offline and imported.
Is there an OpenClaw channel for n8n?
No. n8n is an automation server and is connected with an API key or webhooks.
Where to start
Three paths, cheapest first. The free pack is the fastest way to see the whole agent workflow end to end; the bundle is where the multi-channel setup patterns live.
🔥 Ready to Build Your AI Agent?
SOUL.md Mega Pack Complete Bundle ($29) Get SOUL.md Mega Pack → Download 5 Free TemplatesBefore you wire anything up, work through the free deployment checklist — it is the rollout order that keeps a half-configured agent from eating your quota.