Skip to main content
RapidDev - Software Development Agency

How to Install and Use n8n in OpenClaw

To trigger and monitor n8n workflows from OpenClaw, run `clawhub install n8n` in your terminal, add your N8N_BASE_URL and N8N_API_KEY to OpenClaw's config, and start issuing workflow commands in OpenClaw chat. Once configured, you can trigger any active n8n workflow, check execution status, and receive results — all through natural language prompts without leaving OpenClaw.

What you'll learn

  • How to install the n8n ClawHub skill and connect it to your n8n instance
  • How to generate an n8n API key and configure it in OpenClaw
  • How to trigger n8n workflows by name or ID from OpenClaw chat
  • How to check the status and results of workflow executions from OpenClaw
  • The difference between the n8n skill (trigger/monitor) and the n8n-workflow-automation skill (templates)
Book a free consultation
4.9Clutch rating
600+Happy partners
17+Countries served
190+Team members
Beginner12 min read10 minutesDeveloper ToolsMarch 2026RapidDev Engineering Team
TL;DR

To trigger and monitor n8n workflows from OpenClaw, run `clawhub install n8n` in your terminal, add your N8N_BASE_URL and N8N_API_KEY to OpenClaw's config, and start issuing workflow commands in OpenClaw chat. Once configured, you can trigger any active n8n workflow, check execution status, and receive results — all through natural language prompts without leaving OpenClaw.

Why Trigger n8n Workflows from OpenClaw?

n8n is one of the most powerful automation platforms available, handling everything from simple data syncs to complex multi-step AI pipelines. But triggering workflows typically requires navigating the n8n dashboard, using webhook URLs, or setting up external triggers. The OpenClaw n8n skill collapses this overhead: once configured, you can trigger any active n8n workflow by describing what you want in natural language, without remembering workflow IDs, webhook URLs, or trigger conditions.

This is particularly valuable when n8n workflows are used as building blocks for larger AI-assisted operations. For example, you might have an n8n workflow that processes leads from your CRM, sends a Slack notification, and creates a follow-up task in Asana. Rather than triggering this manually through the n8n dashboard or a webhook call, you can simply tell OpenClaw 'run the lead processing workflow for the new leads from today' and OpenClaw routes the command to n8n, waits for completion, and reports back the result.

The n8n skill covers the core trigger-and-monitor use case: install, trigger, and check execution status. For teams who want to use pre-built workflow templates or manage workflows programmatically, the companion n8n-workflow-automation skill adds template management and bulk workflow deployment capabilities on top of this foundation.

Integration method

ClawHub Skill

The n8n skill is available as a native ClawHub skill, installed with a single `clawhub install n8n` command. It connects to your n8n instance via its REST API, meaning it works whether you run n8n self-hosted (on your own server) or via n8n Cloud. OpenClaw authenticates with your n8n API key and can trigger workflows, list executions, and fetch execution results directly from chat. No separate server or proxy is required on the OpenClaw side.

Prerequisites

  • OpenClaw installed and running (see openclaw.ai for installation instructions)
  • ClawHub CLI available in your terminal (comes bundled with OpenClaw)
  • A running n8n instance — either self-hosted (n8n.io/docs/hosting) or n8n Cloud (app.n8n.cloud)
  • n8n API access enabled in your n8n instance settings (Settings > API > Enable API)
  • At least one active n8n workflow to test against

Step-by-step guide

1

Install the n8n Skill via ClawHub

Open your terminal and run the ClawHub install command. ClawHub is OpenClaw's official skill registry — the single-command way to add capabilities to your OpenClaw instance. The n8n skill installs the ability to communicate with your n8n instance's REST API directly from OpenClaw chat. After installation, the skill registers itself with OpenClaw and shows you which configuration keys it requires. The two required keys are N8N_BASE_URL (the URL of your n8n instance) and N8N_API_KEY (a personal API key generated in n8n settings). The skill will not activate until both are configured — attempting to use it early will produce a clear error pointing to the missing credentials. If the install command fails with `clawhub: command not found`, verify that OpenClaw is fully installed and that the ClawHub binary is on your system PATH. On macOS/Linux this is typically `/usr/local/bin/clawhub` or `~/.openclaw/bin/clawhub`.

terminal
1clawhub install n8n

Pro tip: Run `clawhub info n8n` after installation to see all available configuration options for the skill, including optional settings like timeout and SSL verification behavior.

Expected result: Terminal shows: 'n8n@X.X.X installed successfully. Required config: N8N_BASE_URL, N8N_API_KEY'. The skill appears in `clawhub list` output.

2

Enable the n8n API and Generate an API Key

Before configuring OpenClaw, you need to enable the REST API in your n8n instance and generate a personal API key. Log in to your n8n instance — either at your self-hosted URL or at app.n8n.cloud. Navigate to Settings (gear icon in the lower-left sidebar) > API. Toggle 'Enable API' to on. This enables n8n's built-in REST API, which the OpenClaw skill uses to communicate with your instance. Scroll down to the 'API Keys' section and click 'Create an API key'. Give it a descriptive name like 'OpenClaw Integration'. n8n generates the key immediately — it starts with `n8n_api_`. Copy the full key now. Like most API keys, n8n may not display the full key again after you navigate away, though you can always generate a new one. For self-hosted n8n instances, make sure your instance is accessible from the machine running OpenClaw. If n8n is on the same machine, the URL is typically `http://localhost:5678`. If it is on a remote server, use the server's IP or domain name with port 5678 (or whichever port you configured). Note your n8n base URL — this is your N8N_BASE_URL. Do not include a trailing slash.

Pro tip: For n8n Cloud accounts, your base URL is in the format `https://your-org.app.n8n.cloud`. You can find the exact URL in your n8n Cloud dashboard. Self-hosted instances default to port 5678.

Expected result: You have an n8n API key starting with `n8n_api_` and your n8n base URL, both ready to add to OpenClaw's configuration.

3

Configure N8N_BASE_URL and N8N_API_KEY in OpenClaw

With your credentials ready, add them to OpenClaw's configuration. The recommended approach is to set both values in your OpenClaw `.env` file at `~/.openclaw/.env`, or use the `clawhub config set` command for a guided experience. N8N_BASE_URL should be the root URL of your n8n instance without a trailing slash — for example `http://localhost:5678` or `https://myorg.app.n8n.cloud`. The skill appends the correct API path (`/api/v1`) automatically, so do not include the API path in the base URL. After saving the configuration, run `clawhub reload` to apply the changes. OpenClaw will validate the credentials on first use by making a test request to the n8n `/api/v1/workflows` endpoint. If the credentials are correct, you will see a count of active workflows in the OpenClaw log.

.env
1# Option A: Add to ~/.openclaw/.env
2N8N_BASE_URL=http://localhost:5678
3N8N_API_KEY=n8n_api_your-api-key-here
4
5# Option B: Set via clawhub config commands
6clawhub config set N8N_BASE_URL http://localhost:5678
7clawhub config set N8N_API_KEY n8n_api_your-api-key-here
8
9# Verify both are set
10clawhub config get N8N_BASE_URL
11clawhub config get N8N_API_KEY

Pro tip: If your n8n instance uses a self-signed SSL certificate, add `n8n: ssl_verify: false` to your skill config in `~/.openclaw/skills/n8n.yaml` to prevent connection failures. Only do this on private/trusted networks.

Expected result: Both config values are confirmed with `clawhub config get`. Running `clawhub reload` shows no errors and confirms the n8n skill is active.

4

Test the Skill by Listing and Triggering a Workflow

Open OpenClaw chat and test the connection by asking it to list your active workflows. This confirms the skill can authenticate with your n8n instance and retrieve workflow data. The n8n skill recognizes natural language instructions for the most common operations: listing workflows, triggering a workflow by name or ID, checking the status of a specific execution, and listing recent executions with their outcomes. For triggering workflows, the skill matches your description against workflow names in your n8n instance. If you have a workflow named 'Send Weekly Report', asking OpenClaw to 'trigger the weekly report workflow' is sufficient — the skill fuzzy-matches the name. For exact targeting, you can provide the workflow ID directly. Note that n8n workflows must be active (not in draft/inactive state) to be triggered via the API. If a workflow is inactive, the API returns a 400 error. Activate workflows in the n8n dashboard before attempting to trigger them from OpenClaw.

OpenClaw Prompt

List all my active n8n workflows and show me their names and IDs.

Paste this in OpenClaw chat

Pro tip: If OpenClaw lists fewer workflows than you expect, check that the workflows are set to 'Active' in n8n. Inactive/draft workflows are excluded from the API response by default.

Expected result: OpenClaw returns a list of your active n8n workflows with their names and IDs. The response confirms the authentication is working correctly.

5

Monitor Execution Results and Handle Errors

Once you have triggered a workflow, you can ask OpenClaw to monitor the execution and report back the result. The n8n skill polls the execution status endpoint and surfaces success or failure information, including error messages from failed nodes. For long-running workflows, the skill supports both synchronous waiting (OpenClaw waits for completion before responding) and asynchronous checking (trigger the workflow and ask for status later). For workflows expected to run longer than 30 seconds, asynchronous mode is recommended to avoid timeouts in the OpenClaw chat interface. You can also configure the skill to proactively alert you when a monitored workflow fails. This is set in the skill's YAML config file and uses OpenClaw's internal notification system. RapidDev recommends this for production workflows where failures need immediate attention — it turns OpenClaw into a lightweight workflow monitoring dashboard without requiring a separate alerting tool. The skill stores the last N execution results in memory so you can ask follow-up questions like 'what was the output of the last execution of that workflow?' without re-triggering it.

OpenClaw Prompt

Check the status of my last 5 n8n workflow executions and tell me if any of them failed and why.

Paste this in OpenClaw chat

~/.openclaw/skills/n8n.yaml
1# ~/.openclaw/skills/n8n.yaml optional advanced configuration
2n8n:
3 base_url: "http://localhost:5678" # Can also be set via N8N_BASE_URL env var
4 api_key: "" # Set via N8N_API_KEY env var (leave blank here)
5 execution_wait_timeout: 30 # Seconds to wait for execution before going async
6 max_executions_history: 20 # Number of recent executions to cache
7 alert_on_failure: true # Notify in OpenClaw when a monitored workflow fails
8 ssl_verify: true # Set false only for self-signed certs on private networks

Pro tip: Use OpenClaw's scheduling capabilities alongside the n8n skill to run 'check for failed n8n executions' queries on a schedule — for example, every morning — to get a daily health summary of your n8n automation suite.

Expected result: OpenClaw reports execution status including success/failure, node-level error messages for failures, and output data from completed executions.

Common use cases

On-Demand Workflow Triggering

Trigger specific n8n workflows on demand from OpenClaw chat without navigating to the n8n dashboard. Useful for workflows that run occasionally and do not warrant a dedicated schedule — like one-time data exports, report generation, or ad-hoc integration syncs.

OpenClaw Prompt

Trigger my n8n workflow called 'weekly-report-generator' and tell me when it completes and whether it succeeded.

Copy this prompt to try it in OpenClaw

Execution Status Monitoring

Ask OpenClaw to check the status of recent n8n workflow executions — how many succeeded, which ones failed, and what error messages appeared. This replaces manual checking in the n8n Executions tab.

OpenClaw Prompt

Check my n8n instance for any failed workflow executions in the last 24 hours. List which workflows failed and what error messages were logged.

Copy this prompt to try it in OpenClaw

AI-Driven Conditional Workflow Chains

Use OpenClaw's reasoning to decide which n8n workflow to trigger based on context — for example, choosing between a 'high-priority alert' workflow and a 'standard notification' workflow based on the severity of an event you describe.

OpenClaw Prompt

I have a new enterprise lead from Acme Corp. Based on that, trigger the correct onboarding workflow in n8n — either 'enterprise-onboarding' or 'smb-onboarding' depending on company size.

Copy this prompt to try it in OpenClaw

Troubleshooting

OpenClaw returns 'n8n: authentication failed' or '401 Unauthorized' when trying to list workflows

Cause: The N8N_API_KEY is not set correctly in OpenClaw's config, or the key was revoked/regenerated in n8n's settings after it was added to OpenClaw.

Solution: Run `clawhub config get N8N_API_KEY` to verify the key is set. If missing, re-run `clawhub config set N8N_API_KEY n8n_api_your-key`. If it is set but still failing, log in to n8n, go to Settings > API > API Keys, and verify the key is still active — regenerate and update if needed.

typescript
1# Check and re-set API key
2clawhub config get N8N_API_KEY
3clawhub config set N8N_API_KEY n8n_api_XXXXXXXXXXXX
4clawhub reload

clawhub install n8n fails with '429 Too Many Requests' or the download times out

Cause: ClawHub's skill registry is experiencing high traffic, or your network connection is throttled. This is a temporary registry issue.

Solution: Wait 2-3 minutes and retry the install command. If the error persists after multiple retries, check the OpenClaw community forums for registry status. Use `clawhub install n8n --force` to clear any partial download state before retrying.

typescript
1# Force a clean reinstall
2clawhub install n8n --force

OpenClaw can list workflows but triggering one returns 'Workflow is not active'

Cause: n8n workflows must be set to Active status before they can be triggered via the API. Draft or inactive workflows reject API trigger requests with a 400 error.

Solution: Open the n8n dashboard, find the workflow, and toggle it to Active using the switch in the top-right of the workflow editor. Only active workflows can be triggered externally via the API.

OpenClaw cannot reach the n8n instance — 'ECONNREFUSED' or 'connection timed out'

Cause: N8N_BASE_URL is incorrect (wrong IP, wrong port, or trailing slash included), the n8n instance is not running, or a firewall is blocking the connection.

Solution: Verify n8n is running and accessible by opening the n8n URL in a browser from the same machine running OpenClaw. Check that N8N_BASE_URL does not have a trailing slash. For self-hosted instances, confirm port 5678 is open in your server's firewall rules.

typescript
1# Test connectivity manually
2curl -H "X-N8N-API-KEY: your-api-key" http://localhost:5678/api/v1/workflows
3
4# Check N8N_BASE_URL for trailing slash (should NOT have one)
5clawhub config get N8N_BASE_URL

Best practices

  • Always activate workflows in n8n before attempting to trigger them from OpenClaw — inactive workflows reject API trigger requests and the error message can be confusing.
  • Give your n8n workflows clear, descriptive names — OpenClaw uses fuzzy matching on workflow names, so 'send-weekly-report' is far easier to reference than 'workflow_147'.
  • Store N8N_API_KEY in your OpenClaw `.env` file rather than the skill YAML file — the `.env` file is easier to manage and keeps credentials consistent with other integrations.
  • Use asynchronous execution mode for long-running n8n workflows to avoid OpenClaw chat timeouts — trigger the workflow, note the execution ID, and check status in a follow-up prompt.
  • Set `alert_on_failure: true` in the n8n skill config if you use n8n for production workflows — this turns OpenClaw into a passive monitoring layer at zero additional cost.
  • Combine the n8n skill with OpenClaw's reasoning to build intelligent routing: describe a situation and let OpenClaw decide which workflow to trigger, rather than hard-coding trigger conditions.
  • For teams sharing an OpenClaw instance, generate separate n8n API keys per user or environment (dev/prod) so you can track which OpenClaw session triggered which workflow.

Alternatives

Frequently asked questions

How do I install the n8n skill in OpenClaw?

Run `clawhub install n8n` in your terminal. Then enable the API in your n8n instance (Settings > API), generate an API key, and add it to OpenClaw with `clawhub config set N8N_API_KEY your-key` and `clawhub config set N8N_BASE_URL http://your-n8n-url`. Run `clawhub reload` and start using n8n commands in OpenClaw chat.

What is the difference between the n8n skill and the n8n-workflow-automation skill in OpenClaw?

The n8n skill covers the core trigger-and-monitor use case: trigger any active workflow, check execution status, and list recent execution history. The n8n-workflow-automation skill adds pre-built workflow templates, bulk deployment, and workflow management features. Start with the n8n skill; install n8n-workflow-automation if you need templating or bulk operations.

How do I configure the OpenClaw n8n API key?

Run `clawhub config set N8N_API_KEY n8n_api_your-key-here` in the terminal, or add `N8N_API_KEY=n8n_api_your-key` to `~/.openclaw/.env`. Also set `N8N_BASE_URL` to your n8n instance URL. Run `clawhub reload` after making changes.

ClawHub install n8n is not working — what should I do?

Verify the skill name is exactly `n8n` (lowercase, no spaces). If the install fails with a network error, wait a few minutes and try again — ClawHub's registry occasionally has brief rate limits. Run `clawhub install n8n --force` to clear any partial installation state before retrying.

Why does OpenClaw say my n8n workflow is not active?

n8n workflows must be explicitly activated before they can be triggered via the API. Open the n8n dashboard, find the workflow, and toggle it to Active using the switch in the workflow editor header. Inactive and draft workflows reject API trigger requests.

Does RapidDev offer help configuring OpenClaw with n8n?

Yes — RapidDev can assist teams integrating OpenClaw with n8n as part of a broader AI automation setup, particularly when combining multiple skills or building conditional workflow routing. The self-serve setup described on this page handles most individual use cases, but teams with complex multi-workflow architectures can reach out for configuration support.

Does the n8n skill work with self-hosted n8n instances?

Yes — the n8n skill works with any n8n instance that has the API enabled, whether self-hosted or on n8n Cloud. For self-hosted instances, set N8N_BASE_URL to your server's address (e.g., `http://192.168.1.100:5678`). Ensure port 5678 is accessible from the machine running OpenClaw.

RapidDev

Talk to an Expert

Our team has built 600+ apps. Get personalized help with your project.

Book a free consultation

Need help with your project?

Our experts have built 600+ apps and can accelerate your development. Book a free consultation — no strings attached.

Book a free consultation

We put the rapid in RapidDev

Need a dedicated strategic tech and growth partner? Discover what RapidDev can do for your business! Book a call with our team to schedule a free, no-obligation consultation. We'll discuss your project and provide a custom quote at no cost.