Automate WhatsApp Sales Support Using n8n & AI Agents

This workflow automates customer interactions on WhatsApp for Yamaha Powered Loudspeakers 2024 sales support, leveraging AI-powered agents to answer product brochure queries precisely. It saves hours of manual responses and ensures accurate info delivery via WhatsApp chat.
whatsAppTrigger
lmChatOpenAi
vectorStoreInMemory
+14
Workflow Identifier: 1695
NODES in Use: WhatsApp Trigger, OpenAI Chat Model, Window Buffer Memory, Vector Store Tool, Embeddings OpenAI, OpenAI Chat Model1, Manual Trigger, Extract from File, Recursive Character Text Splitter, get Product Brochure, HTTP Request, WhatsApp, Handle Message Types, Vector Store In Memory, AI Sales Agent, Reply To User, Reply To User1
Automate WhatsApp sales with n8n and AI agents

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What this workflow does

This workflow answers customer questions about Yamaha’s 2024 Powered Loudspeakers brochure automatically via WhatsApp.

It saves time by replying fast and correctly without manual effort.

The system downloads the product brochure PDF, extracts the text, and turns it into a searchable format.
It listens for WhatsApp text messages, uses AI to find the right info, and sends answers back to users.


Who should use this workflow

This is for sales teams or businesses that get many repeated questions on WhatsApp.

It is useful for anyone who wants to save hours spent on manual replies and avoid mistakes.

The workflow fits Yamaha audio sales but can adapt to other product info in PDF brochures.


Tools and services used

  • n8n Automation Platform: Runs the workflow and connects nodes.
  • WhatsApp Business Account with n8n Nodes: Receives and sends WhatsApp messages.
  • OpenAI API (GPT-4): Powers the AI assistant answering questions.
  • HTTP Request node: Downloads the product brochure PDF file.
  • Extract from File node: Gets text from the PDF.
  • Recursive Character Text Splitter: Breaks large text into smaller parts.
  • Default Data Loader: Prepares text data for embedding.
  • Embeddings OpenAI node: Turns text into searchable vectors.
  • In-memory Vector Store: Stores vectors for fast searching during chats.
  • Switch node: Filters message types for proper handling.

How this workflow works: Inputs, Processing, and Output

Inputs

  • HTTP request downloads the Yamaha 2024 loudspeaker brochure PDF.
  • WhatsApp Trigger receives incoming WhatsApp messages.

Processing

  • Extract text from the PDF file.
  • Split text into small chunks to prepare for vector creation.
  • Turn chunks into document format using Default Data Loader.
  • Create embeddings with OpenAI and store them in the in-memory Vector Store.
  • The Switch node routes text messages to the AI Sales Agent; other messages get an error reply.
  • The AI Sales Agent uses GPT-4 along with vector store data and conversation memory to answer queries.

Output

  • AI-generated answers sent back to users on WhatsApp instantly.
  • Friendly message for unsupported message types.

Beginner step-by-step: How to build this in n8n

Import the workflow

  1. Download the workflow file using the Download button on this page.
  2. Open the n8n editor and select “Import from File.”
  3. Pick the downloaded workflow file to load it into n8n.

Configure the workflow

  1. Add OpenAI API Key in the AI Sales Agent and Embeddings OpenAI nodes.
  2. Connect WhatsApp Business credentials to the WhatsApp Trigger and reply nodes.
  3. Check the HTTP Request node for the brochure URL:
    https://usa.yamaha.com/files/download/brochure/1/1474881/Yamaha-Powered-Loudspeakers-brochure-2024-en-web.pdf
  4. Verify webhook IDs and phone numbers if needed for WhatsApp nodes.

Test and activate

  1. Run the workflow once inside n8n to test the PDF download and text extraction.
  2. Send a WhatsApp text message to trigger the AI response.
  3. Check that non-text messages get appropriate replies.
  4. Turn on the workflow toggle to activate it for daily use.
  5. For self-host n8n setups, ensure the server and webhook URLs are public and accessible.


Customization ideas

  • Change the brochure URL in the HTTP Request node to update product info.
  • Adjust chunk sizes in the Recursive Character Text Splitter for better search results.
  • Add support for images or voice in WhatsApp by extending the Switch node.
  • Replace in-memory vector store with services like Pinecone or Qdrant for bigger scale.
  • Edit system message in AI Sales Agent to fit your preferred tone or instructions.

Handling edge cases and errors

  • If WhatsApp messages don’t arrive, check webhook URLs and WhatsApp API settings.
  • If PDF text extraction is empty, verify PDF download and ensure Extract from File node is set to pdf extraction.
  • If AI answers are wrong or too generic, rebuild the vector store and refine the AI prompt system message.

Summary and benefits

✓ Saves 3-4 hours of daily manual WhatsApp replies.

✓ Provides fast and fact-based answers using the brochure data.

✓ Reduces errors by removing human guesswork during chat.

✓ Boosts customer satisfaction with instant and accurate info.

→ Lets sales teams focus on closing deals instead of answering FAQs.

→ Workflow easily adapts by changing brochure or AI prompt.


Automate WhatsApp sales with n8n and AI agents

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

Download the workflow file from the page. In n8n editor, use ‘Import from File’ and select the downloaded workflow. Configure API keys, WhatsApp credentials, and test the workflow before activating.
Check if the PDF file downloads correctly. Ensure the ‘Extract from File’ node is set to extract text from a pdf. Re-run extraction if necessary.
Currently, the workflow supports text messages only. Non-text messages get a polite reply stating only text is accepted. Additional nodes are needed to support other message types.
Yes. The AI agent uses the vector store created from the brochure text to answer questions factually. It will say it does not know if information is missing.
Author
Written By
Ritu Sanjali

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.