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

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

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

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.


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.

Promoted by BULDRR AI

Related Workflows

Automate Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free