OpenClaw + n8n — The Honest Integration Guide (REST, Webhooks, Who Does What)

n8n is not an OpenClaw channel. The two overlap heavily — here is the honest split of responsibilities, plus the REST endpoints and webhook trigger that connect them.

⚡ Skip the boilerplate

A ready-made SOUL.md already knows the n8n playbook — copy it, start your agent, ship today.

Want every guide + every template? Complete Bundle — $29 best value

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

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

🔐 Scope it down. The n8n API key is instance-wide and effectively admin. If the agent can call the REST API it can, for example, activate workflows. Keep the instance dedicated, or put the agent behind a narrower wrapper endpoint.

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

  1. Test webhooks lie. Calling a webhook's test URL returns a stub and runs nothing. Only the production path executes the workflow.
  2. 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.
  3. Execution status is asynchronous. Triggering a workflow returns immediately; the result arrives later. Poll /rest/executions or use the webhook's response mode to wait.
  4. 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.
  5. 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.

Before 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.

🔥 Get All 10 Premium Products for $29 Save 70% with the Complete Bundle
Get Bundle → Free Deployment Checklist →