Build n8n Automations With Claude Code

Updated: July 25, 2026

This setup helps you build automation systems using:

  • Cursor

• Claude Code

• n8n

• MCP

• AI agents

The goal is simple:

→ You describe the workflow

→ Claude Code builds the structure

→ n8n runs the automation


What This Means

n8n is an automation tool.

It connects apps like:

  • Gmail

• Google Sheets

• Slack

• Notion

• CRMs

• Forms

• Webhooks

• AI tools

Claude Code helps you create and manage these workflows faster.

MCP acts like the bridge between Claude Code and n8n.


Step 1, Download Cursor

Go to Cursor and install it on your laptop.

Cursor is the workspace where you will run Claude Code and manage the setup.


Step 2, Install Claude Code

Open Cursor.

Go to extensions.

Search for Claude Code.

Install it.

Sign in or connect your Claude account if required.


Step 3, Clone the GitHub Repo

Open the GitHub repo shared in the full guide.

Copy the repo link.

In Cursor:

→ Open command palette

→ Select clone repository

→ Paste the GitHub repo link

→ Open the cloned folder

This repo contains the setup files needed to connect Claude Code with n8n.


Step 4, Open n8n

Create or open your n8n account.

You can use:

  • n8n cloud

• self hosted n8n

For beginners, n8n cloud is easier.


Step 5, Copy Your n8n API Key

Inside n8n:

→ Go to settings

→ Find API section

→ Create or copy your API key

Keep this key private.

Do not share it publicly.


Step 6, Paste API Key Into Claude Code Setup

Go back to Cursor.

Find the config or environment file from the repo.

Paste your n8n API key where required.

This allows Claude Code to talk to your n8n account.


Step 7, Check MCP Status

After setup, check if MCP shows a green check.

Green check means:

✓ Claude Code is connected

✓ n8n is reachable

✓ Your automation setup is ready

If MCP is not green, check:

  • API key

• repo setup

• n8n URL

• permissions

• missing install steps


Step 8, Describe What You Want To Build

Now you give Claude Code a clear workflow prompt.

Example:

“Create an n8n workflow for lead generation.

When a new lead fills a form, add the lead to Google Sheets, enrich the company data, send a Slack alert, and draft a follow up email.”

Claude Code will help create the automation structure.


Good Beginner Workflows To Build

  1. Lead generation system → Form submission → Save lead in Google Sheets → Send Slack alert → Draft email follow up
  2. Client onboarding system → New client form → Create Notion page → Send welcome email → Create internal task list
  3. Content workflow → Add topic to Google Sheet → Generate content ideas → Create drafts with AI → Send for review
  4. Sales follow up system → New prospect added → Wait 2 days → Send follow up email → Update CRM
  5. Support ticket system → New support request → Classify issue with AI → Send to correct team → Log status in database

Beginner Prompt Template

Use this:

“Build an n8n workflow for [goal].

Trigger: [What starts the workflow]

Inputs: [What data comes in]

Steps:

  1. [First action]
  2. [Second action]
  3. [Third action]

Tools: [List apps like Gmail, Sheets, Slack, Notion, CRM]

Output: [What should happen at the end]

Add error handling and explain how I should test it.”


Example Prompt

“Build an n8n workflow for client onboarding.

Trigger: A new client fills a Typeform.

Steps:

  1. Add client details to Google Sheets.
  2. Create a Notion client page.
  3. Send a welcome email through Gmail.
  4. Send an internal Slack alert.
  5. Create a task for the team.

Output: A complete onboarding system ready to test.

Add error handling and explain every n8n node in simple language.”


How To Turn This Into A Business

Start with simple offers.

Do not sell “AI automation.”

Sell a clear business outcome.

Examples:

  • I will automate your lead follow up

• I will build your client onboarding system

• I will connect your form, CRM, and email workflow

• I will automate your weekly reporting

• I will build an AI lead qualification system

Businesses pay for saved time and fewer manual tasks.


Best First Clients

Start with businesses that repeat the same admin work every week.

Good targets:

  • coaches

• agencies

• real estate teams

• clinics

• consultants

• recruiters

• local service businesses

• education businesses

Ask them:

→ What task do you repeat every day?

→ Where do leads get lost?

→ What do you copy paste often?

→ What follow ups do you forget?

→ Which reports take too much time?

Their answers become automation ideas.


Important Rule

Do not launch any automation without testing.

Test with fake data first.

Check:

  • trigger works

• data goes to the right place

• emails look correct

• Slack alerts fire

• errors are handled

• no private data leaks


Simple Learning Path

Day 1: Set up Cursor, Claude Code, n8n, and MCP.

Day 2: Build a simple form to Google Sheets workflow.

Day 3: Add Gmail or Slack.

Day 4: Add AI summarization or lead scoring.

Day 5: Build one complete client onboarding workflow.

Day 6: Record a demo.

Day 7: Pitch it to 5 businesses.


Final Takeaway

You do not need to start with complex AI agents.

Start with boring workflows.

Lead capture.

Follow ups.

Onboarding.

Reports.

Internal alerts.

That is where businesses feel pain, and that is where n8n plus Claude Code becomes useful fast.

This setup helps you build automation systems using:

  • Cursor

• Claude Code

• n8n

• MCP

• AI agents

The goal is simple:

→ You describe the workflow

→ Claude Code builds the structure

→ n8n runs the automation


What This Means

n8n is an automation tool.

It connects apps like:

  • Gmail

• Google Sheets

• Slack

• Notion

• CRMs

• Forms

• Webhooks

• AI tools

Claude Code helps you create and manage these workflows faster.

MCP acts like the bridge between Claude Code and n8n.


Step 1, Download Cursor

Go to Cursor and install it on your laptop.

Cursor is the workspace where you will run Claude Code and manage the setup.


Step 2, Install Claude Code

Open Cursor.

Go to extensions.

Search for Claude Code.

Install it.

Sign in or connect your Claude account if required.


Step 3, Clone the GitHub Repo

Open the GitHub repo shared in the full guide.

Copy the repo link.

In Cursor:

→ Open command palette

→ Select clone repository

→ Paste the GitHub repo link

→ Open the cloned folder

This repo contains the setup files needed to connect Claude Code with n8n.


Step 4, Open n8n

Create or open your n8n account.

You can use:

  • n8n cloud

• self hosted n8n

For beginners, n8n cloud is easier.


Step 5, Copy Your n8n API Key

Inside n8n:

→ Go to settings

→ Find API section

→ Create or copy your API key

Keep this key private.

Do not share it publicly.


Step 6, Paste API Key Into Claude Code Setup

Go back to Cursor.

Find the config or environment file from the repo.

Paste your n8n API key where required.

This allows Claude Code to talk to your n8n account.


Step 7, Check MCP Status

After setup, check if MCP shows a green check.

Green check means:

✓ Claude Code is connected

✓ n8n is reachable

✓ Your automation setup is ready

If MCP is not green, check:

  • API key

• repo setup

• n8n URL

• permissions

• missing install steps


Step 8, Describe What You Want To Build

Now you give Claude Code a clear workflow prompt.

Example:

“Create an n8n workflow for lead generation.

When a new lead fills a form, add the lead to Google Sheets, enrich the company data, send a Slack alert, and draft a follow up email.”

Claude Code will help create the automation structure.


Good Beginner Workflows To Build

  1. Lead generation system → Form submission → Save lead in Google Sheets → Send Slack alert → Draft email follow up
  2. Client onboarding system → New client form → Create Notion page → Send welcome email → Create internal task list
  3. Content workflow → Add topic to Google Sheet → Generate content ideas → Create drafts with AI → Send for review
  4. Sales follow up system → New prospect added → Wait 2 days → Send follow up email → Update CRM
  5. Support ticket system → New support request → Classify issue with AI → Send to correct team → Log status in database

Beginner Prompt Template

Use this:

“Build an n8n workflow for [goal].

Trigger: [What starts the workflow]

Inputs: [What data comes in]

Steps:

  1. [First action]
  2. [Second action]
  3. [Third action]

Tools: [List apps like Gmail, Sheets, Slack, Notion, CRM]

Output: [What should happen at the end]

Add error handling and explain how I should test it.”


Example Prompt

“Build an n8n workflow for client onboarding.

Trigger: A new client fills a Typeform.

Steps:

  1. Add client details to Google Sheets.
  2. Create a Notion client page.
  3. Send a welcome email through Gmail.
  4. Send an internal Slack alert.
  5. Create a task for the team.

Output: A complete onboarding system ready to test.

Add error handling and explain every n8n node in simple language.”


How To Turn This Into A Business

Start with simple offers.

Do not sell “AI automation.”

Sell a clear business outcome.

Examples:

  • I will automate your lead follow up

• I will build your client onboarding system

• I will connect your form, CRM, and email workflow

• I will automate your weekly reporting

• I will build an AI lead qualification system

Businesses pay for saved time and fewer manual tasks.


Best First Clients

Start with businesses that repeat the same admin work every week.

Good targets:

  • coaches

• agencies

• real estate teams

• clinics

• consultants

• recruiters

• local service businesses

• education businesses

Ask them:

→ What task do you repeat every day?

→ Where do leads get lost?

→ What do you copy paste often?

→ What follow ups do you forget?

→ Which reports take too much time?

Their answers become automation ideas.


Important Rule

Do not launch any automation without testing.

Test with fake data first.

Check:

  • trigger works

• data goes to the right place

• emails look correct

• Slack alerts fire

• errors are handled

• no private data leaks


Simple Learning Path

Day 1: Set up Cursor, Claude Code, n8n, and MCP.

Day 2: Build a simple form to Google Sheets workflow.

Day 3: Add Gmail or Slack.

Day 4: Add AI summarization or lead scoring.

Day 5: Build one complete client onboarding workflow.

Day 6: Record a demo.

Day 7: Pitch it to 5 businesses.


Final Takeaway

You do not need to start with complex AI agents.

Start with boring workflows.

Lead capture.

Follow ups.

Onboarding.

Reports.

Internal alerts.

That is where businesses feel pain, and that is where n8n plus Claude Code becomes useful fast.

Author
Written By
Vikash Kumar
Building AI agents, n8n workflows and end-to-end automation for 30+ Brands across India, the US, Europe, Dubai & Australia. 7+ years of Experience saving founders real hours every week - no code required.
Ask more Questions about this Blog with AI:

Our AI Articles

Learn from our AI Articles to excel in your profession ;)

10 Best n8n Workflows Every Business Should Automate

Manual work is killing business speed. In 2026, companies that still copy-paste data between apps are already behind. This is...

Automating the First 14 Days After Someone Buys From You

How to automate the first 14 days after a sale closes — welcome messages, account setup, kickoff booking, and day-7/day-14...

10 Questions to Ask Before Hiring an n8n Automation Agency

Before hiring an n8n automation agency, ask about their pricing model (per-workflow vs retainer), who owns the finished workflows, how...

n8n vs Zapier vs Make: Which Automation Tool is Best for Business

n8n is the best fit for businesses that want self-hosting, unlimited executions, and deep AI-agent capability and have some technical...

How to Use OpenRouter with n8n: Free AI Workflows (No Card Needed)

You keep hearing about AI automation but every option seems to cost money. ChatGPT Plus is $20 a month. Claude...

How to Automate Lead Follow-Up Calls with AI: A Step-by-Step Guide

Here is a number that should worry every business owner: leads that are called within five minutes of showing interest...

10 Claude Tips: From Using 10% of Claude to Actually Using It

A practical guide to getting more out of Claude, this post shares 10 tips from beginner to advanced, including choosing...

How Claude Killed Prompt Engineering (And What To Do Instead)

Anthropic’s latest Claude updates suggest a shift away from long, rule-heavy prompts toward minimal, goal-first context. This post explains Record...

Why AI Recommends the Business With Recent Reviews, Not Just More of Them

Why AI search tools like ChatGPT and Google AI Overviews weigh review recency and response rate above raw review count...

Build a Second Brain for Your Business With Claude Code and Obsidian

This guide shows how to build a business second brain with Claude Code and Obsidian in under 10 minutes. Using...

Does AI Actually Care How Old Your Content Is?

Does content freshness really affect AI citations? Yes, but it's one of 23 factors, not the deciding one, and the...

Does Your “About Us” Page Actually Help AI Trust Your Business?

Does an About Us page actually help AI trust your business? Yes, it's a core E-E-A-T signal Google's own quality...
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.