Skip to main content

Answer WhatsApp support queries with OpenAI, 2Chat and Google Sheets

Workflow preview

Workflow preview
100%
Answer WhatsApp support queries with OpenAI, 2Chat and Google Sheets preview
Open on n8n.io

1. Workflow Overview

This n8n template demonstrates how to build an AI powered WhatsApp customer support chatbot using 2Chat for WhatsApp integration and OpenAI for natural language understanding. The chatbot is design...

Best for

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

Tools used

@2chat/n8n-nodes-twochat.twochattrigger, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.memorybufferwindow, @2chat/n8n-nodes-twochat.twochat, n8n-nodes-base.stickynote, n8n-nodes-base.googlesheetstool

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Answer WhatsApp support queries with OpenAI, 2Chat and Google Sheets
Workflow name
Answer WhatsApp support queries with OpenAI, 2Chat and Google Sheets

This n8n template demonstrates how to build an AI-powered WhatsApp customer support chatbot using 2Chat for WhatsApp integration and OpenAI for natural language understanding. The chatbot is designed to answer customer inquiries about products and business information by querying Google Sheets for relevant data.

Good to know

  • This workflow uses 2Chat to connect with WhatsApp, so you’ll need a 2Chat account and a connected WhatsApp number.
  • OpenAI’s API is used for AI responses, so you’ll need an OpenAI API key.
  • The chatbot retrieves product and business information from Google Sheets, so ensure your sheets are properly formatted and accessible.
  • Costs depend on your OpenAI usage, 2Chat pricing tier, and Google Sheets access.

How it works

  • Trigger: The workflow starts when a new WhatsApp message is received via 2Chat.
  • AI Agent: The chatbot uses an AI Agent powered by OpenAI to understand the customer’s query and determine the context (product or business-related).
  • Data Lookup:
  • If the query is about products, the AI Agent searches a designated Google Sheet for relevant product information.
  • If the query is about business information, the AI Agent searches another Google Sheet for the most appropriate response.
  • Response Generation: The AI Agent crafts a response based on the retrieved data.
  • Reply: The response is sent back to the customer via WhatsApp using 2Chat’s Send WhatsApp Message node.

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 - 2Chat Trigger

Type / Role
@2chat/n8n-nodes-twochat.twoChatTrigger - twoChatTrigger
Config choices
Version 1

Block 2 - AI Agent

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

Block 3 - OpenAI Chat Model

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

Block 4 - Simple Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 5 - Send a whatsapp message

Type / Role
@2chat/n8n-nodes-twochat.twoChat - twoChat
Config choices
Version 1

Block 6 - Sticky Note

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

Block 7 - Sticky Note1

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

Block 8 - Sticky Note2

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

Block 9 - Sticky Note3

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

Block 10 - Get Product Catalog

Type / Role
n8n-nodes-base.googleSheetsTool - googleSheetsTool
Config choices
Version 4.7

Block 11 - Get FAQ answers

Type / Role
n8n-nodes-base.googleSheetsTool - googleSheetsTool
Config choices
Version 4.7

3. Summary Table

Workflow Answer WhatsApp support queries with OpenAI, 2Chat and Google Sheets
Complexity intermediate
Nodes 11
Categories Support Chatbot, AI Chatbot
Author 2Chat
Published 21 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/9968/9968.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 Answer WhatsApp support queries with OpenAI, 2Chat and Google Sheets do?

This n8n template demonstrates how to build an AI powered WhatsApp customer support chatbot using 2Chat for WhatsApp integration and OpenAI for natural language understanding. The chatbot is design...

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.