Skip to main content

Handle WhatsApp orders, FAQs, and tracking with GPT-4o, Pinecone, and Sheets

Workflow preview

Workflow preview
100%
Handle WhatsApp orders, FAQs, and tracking with GPT-4o, Pinecone, and Sheets preview
Open on n8n.io

1. Workflow Overview

Quick overview This workflow builds a WhatsApp business assistant that uses OpenAI to classify incoming messages and route them to FAQ answers via Pinecone RAG, order placement and inventory update...

Best for

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

Tools used

n8n-nodes-base.whatsapptrigger, n8n-nodes-base.set, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.code, n8n-nodes-base.switch, n8n-nodes-base.stickynote, @n8n/n8n-nodes-langchain.agent, @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 WeblineIndia.

Original n8n.io source

1.1 Workflow description

Title
Handle WhatsApp orders, FAQs, and tracking with GPT-4o, Pinecone, and Sheets
Workflow name
Handle WhatsApp orders, FAQs, and tracking with GPT-4o, Pinecone, and Sheets

Quick overview

This workflow builds a WhatsApp business assistant that uses OpenAI to classify incoming messages and route them to FAQ answers via Pinecone RAG, order placement and inventory updates in Google Sheets, order-status lookups, or Slack escalation for human support, with a Google Drive-to-Pinecone knowledge sync.

How it works

  1. Triggers when a new WhatsApp message is received and extracts the sender phone number, message text, and a timestamp.
  2. Uses OpenAI (GPT-4o) to classify the message intent as FAQ, ORDER, TRACK_ORDER, or HUMAN_SUPPORT and routes the request accordingly.
  3. For FAQ requests, retrieves relevant context from a Pinecone vector index and uses OpenAI to draft a short WhatsApp-style answer, then replies via WhatsApp.
  4. For ORDER requests, uses OpenAI to extract product and quantity, matches the request semantically against a Google Sheets product catalog, and validates the matched product.
  5. If the product is found and stock is sufficient, appends a new order row to a Google Sheets Orders sheet, updates stock in the Products sheet, and sends an order confirmation via WhatsApp.
  6. If the product is not found or stock is insufficient, sends an error/out-of-stock message via WhatsApp.
  7. For TRACK_ORDER requests, uses OpenAI to extract the order ID, looks up the order in Google Sheets, and replies with the current status via WhatsApp.
  8. For HUMAN_SUPPORT requests, posts the customer message details to a Slack channel and sends an acknowledgement back to the customer on WhatsApp.

Setup

  1. Configure WhatsApp Cloud API credentials in n8n and ensure your WhatsApp app is set to send message webhooks to the workflow trigger URL.
  2. Add OpenAI API credentials for intent classification, order extraction, semantic matching, order ID extraction, and FAQ response generation.
  3. Set up Google Sheets OAuth credentials and update the spreadsheet/document ID and sheet tabs for Products and Orders to match your own schema (including product_id, product_name, stock, and order_id fields).
  4. Create a Pinecone index (and namespace) compatible with OpenAI embeddings and add Pinecone API credentials, then populate it with your knowledge base content.
  5. Add Google Drive OAuth credentials and select the knowledge base file to watch so updates are downloaded, chunked, embedded, and stored in Pinecone.
  6. Add Slack API credentials and choose the target channel ID where human support requests should be posted.

Additional info

Use Case Examples

1. Ecommerce WhatsApp Store

Customers can:

  • Ask product questions
  • Place orders
  • Track deliveries

2. Retail Product Inquiry Bot

Customers can:

  • Check stock
  • Ask pricing
  • Get product information

3. AI Customer Support Assistant

Businesses can automate:

  • FAQs
  • Support requests
  • Escalations

4. WhatsApp Order Management System

Businesses can:

  • Receive orders
  • Update inventory
  • Manage fulfillment

5. AI-Powered Knowledge Assistant

Businesses can provide:

  • Policy answers
  • Business information
  • Service details

You can use and customize this workflow for many more use cases depending on business requirements.

Need Help?

If you need help with:

  • Workflow setup
  • Customization
  • API integration
  • AI prompt engineering
  • Pinecone setup
  • WhatsApp Cloud API
  • Custom business automation
  • Marketplace-ready workflow development
  • Advanced AI agent workflows

You can contact n8n workflow developers at WeblineIndia for professional assistance.

WeblineIndia can help you:

  • Customize this workflow for your business
  • Add advanced AI features
  • Integrate ERP/CRM systems
  • Build enterprise-grade automations
  • Create scalable AI business assistants
  • Develop custom n8n workflows

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 Incoming Message Trigger

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

Block 2 - Extract WhatsApp Message Details

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 3 - AI Intent Classification

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

Block 4 - Parse Intent Classification Response

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

Block 5 - Intent-Based Request Router

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

Block 6 - Sticky Note

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

Block 7 - WhatsApp FAQ AI Agent

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

Block 8 - FAQ Response Language Model

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

Block 9 - Conversation Memory Manager

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

Block 10 - Knowledge Base Retrieval Tool

Type / Role
@n8n/n8n-nodes-langchain.toolVectorStore - toolVectorStore
Config choices
Version 1.1

Block 11 - Pinecone FAQ Vector Store

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

Block 12 - FAQ Embedding Generator

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

Block 13 - Knowledge Retrieval LLM

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

Block 14 - Send FAQ WhatsApp Reply

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

Block 15 - Sticky Note1

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

Block 16 - AI Order Information Extractor

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

Block 17 - Parse Order Details JSON

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

Block 18 - Sticky Note2

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

Block 19 - Fetch Product Catalog

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

Block 20 - Prepare Product Catalog Context

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

Block 21 - AI Semantic Product Matcher

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

Block 22 - Parse & Validate Product Match

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

Block 23 - Product Match Validation Check

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

Block 24 - Sticky Note3

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

Showing the first 24 of 46 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Handle WhatsApp orders, FAQs, and tracking with GPT-4o, Pinecone, and Sheets
Complexity advanced
Nodes 46
Categories Support Chatbot, AI Chatbot
Author WeblineIndia
Published 08 Jun 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/16175/16175.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 Handle WhatsApp orders, FAQs, and tracking with GPT-4o, Pinecone, and Sheets do?

Quick overview This workflow builds a WhatsApp business assistant that uses OpenAI to classify incoming messages and route them to FAQ answers via Pinecone RAG, order placement and inventory update...

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.