We may earn a commission through partner links. Our reviews are independent. Learn how we review

HOW-TOINTERMEDIATE

Build an AI Customer Service Bot with n8n + Claude + Airtable

Step-by-step tutorial: from zero to a production-ready conversational AI agent that handles customer inquiries, logs conversations, and escalates when needed.

SC
Sarah ChenAI Editor
Updated March 10, 202618 min read

What You’ll Need

n
n8n
Cloud or self-hosted
Free tierSign Up
C
Claude API Key
Anthropic API access
Usage-basedSign Up
A
Airtable
For conversation logging
Free tierSign Up
1

Set Up Your n8n Instance

First, you’ll need a running n8n instance. The fastest way is n8n Cloud, which gives you a managed instance with zero DevOps. If you prefer self-hosting, Docker is the recommended approach.

For this tutorial, we’ll use n8n Cloud since it handles SSL, updates, and uptime automatically. Create your account and navigate to the workflow editor.

bash
# Self-hosted alternative (Docker)
docker run -it --rm \
  --name n8n \
  -p 5678:5678 \
  -v n8n_data:/home/node/.n8n \
  n8nio/n8n

Tip:

If you’re on the free n8n Cloud plan, you get 2,500 workflow executions per month — more than enough for testing. Scale to Pro when you go live.

2

Create the Webhook Trigger

Every n8n workflow starts with a trigger. For our chatbot, we’ll use a Webhook node that listens for incoming messages. This webhook URL is what your frontend chat widget will POST to.

In your workflow editor, click the + button and search for “Webhook.” Set the HTTP method to POST and note the production URL — you’ll need this later.

Screenshot: n8n Webhook node configuration

Important:

Use the Production URL, not the Test URL. The test URL only works while the workflow editor is open. The production URL is always active once you activate the workflow.

3

Add the Claude AI Node

Now the core of the bot: connecting Claude. n8n’s native Anthropic node supports Claude Opus, Sonnet, and Haiku. Add it after the Webhook node and configure your system prompt.

The system prompt is critical — it defines your bot’s personality, knowledge boundaries, and escalation behavior. Here’s a production-tested template:

system-prompt.txt
You are a helpful customer service assistant for
[Company Name]. Your role is to:

1. Answer questions about our products and services
2. Help troubleshoot common issues
3. Escalate complex issues to human agents

Rules:
- Never make up information you don't have
- If unsure, say "Let me connect you with a
  human agent who can help with that."
- Keep responses concise (under 3 sentences)
- Be warm but professional

Download the Complete Workflow

Get the n8n JSON file with all nodes pre-configured. Import and customize.

Ready to Build Your Own AI Bot?

Start with n8n’s free tier and have a working AI chatbot in under an hour.

Tutorial Steps

1Set Up Your n8n Instance
2Create the Webhook Trigger
3Add the Claude AI Node
4Build the Response Logic
5Connect to Airtable for Logging
6Test & Deploy

Tools in This Guide

n
n8n
Visit
C
Claude API Key
Visit
A
Airtable
Visit

Stay in the loop

Weekly AI tool reviews, news digests, and how-to guides.

Join 12,000+ builders