Skip to main content

Automate product training & customer support via WhatsApp, GPT-4 & Google Sheets

Workflow preview

Workflow preview
100%
Automate product training & customer support via WhatsApp, GPT-4 & Google Sheets preview
Open on n8n.io

Important notice

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

1. Workflow Overview

WhatsApp AI Agent: Auto Train Product Data & Handle Customer Support Who Is This For This workflow is ideal for eComme...

Best for

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

Tools used

n8n-nodes-base.whatsapp, n8n-nodes-base.stickynote, n8n-nodes-base.whatsapptrigger, n8n-nodes-base.switch, n8n-nodes-base.code, n8n-nodes-base.httprequest, n8n-nodes-base.googlesheets, @n8n/n8n-nodes-langchain.lmchatopenai

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Automate product training & customer support via WhatsApp, GPT-4 & Google Sheets
Workflow name
Automate product training & customer support via WhatsApp, GPT-4 & Google Sheets

WhatsApp AI Agent: Auto-Train Product Data & Handle Customer Support

Who Is This For

This workflow is ideal for eCommerce founders, product managers, customer support teams, and automation builders who rely on WhatsApp to manage product information and interact with clients.

It’s perfect for businesses that want to automate product data entry and support responses directly from WhatsApp messages using GPT-4 and Google Sheets.

What Problem Does This Workflow Solve

  • Manual Product Data Entry: Collecting and organizing product data from links is tedious and error-prone.
  • Slow Customer Response Times: Responding to client questions manually leads to delays and inconsistent support.
  • No Logging System for Issues: Without automation, support issues often go undocumented, making it harder to learn and improve.

What This Workflow Does

Step 1 – Incoming Message Detection

  • Listens for incoming messages via WhatsApp.
  • If the message starts with train:, it routes to the product training process.
  • Otherwise, it routes to the customer support assistant.

Step 2 – Product Data Training

  • Extracts URL from the message using a regex script.
  • Fetches HTML content from the URL.
  • Cleans HTML data to extract readable product description.
  • Saves raw data (URL + description) into Google Sheets.
  • Uses GPT-4 to enhance product data:
    → Name, price (one-time or subscription), topic, and FAQs.
  • Updates the product row in Google Sheets with structured information.

Step 3 – Customer Support Flow

  • Analyzes user messages with GPT-4 to understand the request or issue.
  • Looks up relevant product info in Google Sheets.
  • Detects potential problems (e.g. payment, login, delivery).
  • Suggests an appropriate solution.
  • Logs the problem, solution, and category to the Customer Issues sheet.
  • Sends a response back to the client via WhatsApp.

Step 4 – Client Response

  • Sends the AI-generated response to the client via WhatsApp.
  • Keeps the communication fast, clear, and professional.

Setup Guide

Prerequisites

  • WhatsApp Business API access
  • OpenAI API Key
  • Google Account with Google Sheets access
  • A hosted instance of n8n (Cloud or self-hosted)

Setup Steps

  1. Import the Workflow into your n8n instance.
  2. Connect your credentials for WhatsApp, OpenAI, and Google Sheets.
  3. Customize Google Sheet IDs and names as needed.
  4. Test by sending a train: message or a regular customer message to WhatsApp.
  5. Activate the workflow to make it live.

How to Customize This Workflow

  • Edit AI prompts to reflect your product type, language style, or tone.
  • Change the trigger keyword (e.g. from train: to add: or anything else).
  • Add integrations like Notion, Airtable, or CRM tools.
  • Expand the Sheets structure with more product fields (e.g. stock status, image link).
  • Add notifications to Slack or email after product updates or issue logging.

📄 Documentation: Notion Guide


Need help customizing?

Contact me for consulting and support : Linkedin / Youtube

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 - WhatsApp Business Cloud

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

Block 2 - Sticky Note

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

Block 3 - Sticky Note1

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

Block 4 - Sticky Note2

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

Block 5 - Sticky Note3

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

Block 6 - Incoming Message Trigger

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

Block 7 - Check If Training

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 8 - Extract URL from Text

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

Block 9 - Fetch HTML Page

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 10 - Clean HTML Content

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

Block 11 - Save Raw Product Info

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 12 - OpenAI Model

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

Block 13 - Short-Term Memory

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

Block 14 - Update Product Sheet

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

Block 15 - AI Agent - Customer Support Agent

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

Block 16 - AI Agent - Enhance Product Details

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

Block 17 - OpenAI Model1

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

Block 18 - Conversation Memory

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

Block 19 - Read Product Sheet

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

Block 20 - Log Customer Issues

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

3. Summary Table

Workflow Automate product training & customer support via WhatsApp, GPT-4 & Google Sheets
Complexity advanced
Nodes 20
Categories Support Chatbot, AI Chatbot
Author Dr. Firas
Published 30 Mar 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/3379/3379.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 Automate product training & customer support via WhatsApp, GPT-4 & Google Sheets do?

WhatsApp AI Agent: Auto Train Product Data & Handle Customer Support Who Is This For This workflow is ideal for eComme...

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.