Skip to main content

WhatsApp support bot with keyword routing & GPT-4.1-mini responses

Workflow preview

Workflow preview
100%
WhatsApp support bot with keyword routing & GPT-4.1-mini responses preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Description: Deliver instant answers and automate customer support on WhatsApp with this intelligent n8n workflow template! The system routes incoming messages using keyword based logic and provide...

Best for

  • Support Chatbot automation workflows
  • AI Chatbot automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.if, n8n-nodes-base.whatsapp, n8n-nodes-base.whatsapptrigger, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.agent, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Rahul Joshi.

Original n8n.io source

1.1 Workflow description

Title
WhatsApp support bot with keyword routing & GPT-4.1-mini responses
Workflow name
WhatsApp support bot with keyword routing & GPT-4.1-mini responses

Description:

Deliver instant answers and automate customer support on WhatsApp with this intelligent n8n workflow template! The system routes incoming messages using keyword-based logic and provides dynamic, AI-powered responses for greetings, FAQs, and complex queries—ensuring your customers always get the right reply without manual effort.

This automation is designed for businesses, service providers, and support teams who want to streamline WhatsApp engagement, reduce manual workload, and provide consistent, conversational answers that scale with demand.

What This Template Does (Step-by-Step):

📲 Capture Incoming WhatsApp Messages Triggers on every new message received via WhatsApp API. 🔄 Keyword-Based Routing Sequential IF conditions check for predefined keywords (e.g., “hi”, “pricing”, “support”). 💬 Send Tailored Keyword Responses Returns fast, pre-written responses for greetings, FAQs, or common scenarios. 🤖 AI-Powered Fallback with OpenAI Chat Model For advanced or unrecognized queries, the workflow generates context-aware, conversational answers using AI. 🚀 Deliver Automated Replies in Real Time Replies are instantly sent back to WhatsApp for seamless customer communication. 📊 Optional: Conversation Logging Extend the template to log chats in Notion, Airtable, or your CRM for tracking and insights.

Perfect For:

Customer support teams handling repetitive queries Businesses wanting instant replies for FAQs & greetings Service providers delivering personalized, scalable engagement Anyone looking to combine rule-based automation with AI intelligence

Built With:

WhatsApp API (message triggers & replies) n8n IF Node (keyword routing) OpenAI Chat Model (AI fallback for complex queries) Extendable storage (Notion, Google Sheets, Airtable, etc.)

Key Benefits:

✅ Faster, automated customer support on WhatsApp 🔍 Accurate, human-like replies for complex questions 🧠 Hybrid system: keyword rules + AI intelligence 📒 Centralized chat logging for insights (optional) 🛠 100% no-code and customizable in n8n

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Check Greeting

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2

Block 2 - Send Greeting Response

Type / Role
n8n-nodes-base.whatsApp - whatsApp
Config choices
Version 1

Block 3 - WhatsApp Trigger1

Type / Role
n8n-nodes-base.whatsAppTrigger - whatsAppTrigger
Config choices
Version 1

Block 4 - Send message1

Type / Role
n8n-nodes-base.whatsApp - whatsApp
Config choices
Version 1

Block 5 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 6 - AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.1

Block 7 - If

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 8 - Send Greeting Response1

Type / Role
n8n-nodes-base.whatsApp - whatsApp
Config choices
Version 1

Block 9 - Send Greeting Response2

Type / Role
n8n-nodes-base.whatsApp - whatsApp
Config choices
Version 1

Block 10 - If1

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 11 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 17 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 18 - Sticky Note7

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 19 - Sticky Note8

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow WhatsApp support bot with keyword routing & GPT-4.1-mini responses
Complexity advanced
Nodes 19
Categories Support Chatbot, AI Chatbot
Author Rahul Joshi
Published 02 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8178/8178.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does WhatsApp support bot with keyword routing & GPT-4.1-mini responses do?

Description: Deliver instant answers and automate customer support on WhatsApp with this intelligent n8n workflow template! The system routes incoming messages using keyword based logic and provide...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Support Chatbot, AI Chatbot use case.