Block 1 - WhatsApp Trigger
- Type / Role
- n8n-nodes-base.whatsAppTrigger - whatsAppTrigger
- Config choices
- Version 1
This workflow is provided as-is. Please review and test before using in production.
WhatsApp AI Sales Agent using PDF Vector Store This workflow turns your WhatsApp number into an intelligent AI powered Sales Agent that answers product queries using real data extracted from a PDF ...
n8n-nodes-base.whatsapptrigger, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.memorybufferwindow, @n8n/n8n-nodes-langchain.toolvectorstore, @n8n/n8n-nodes-langchain.embeddingsopenai, n8n-nodes-base.manualtrigger, @n8n/n8n-nodes-langchain.documentdefaultdataloader, @n8n/n8n-nodes-langchain.textsplitterrecursivecharactertextsplitter
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by WeblineIndia.
Original n8n.io sourceThis workflow turns your WhatsApp number into an intelligent AI-powered Sales Agent that answers product queries using real data extracted from a PDF brochure. It loads a product brochure via HTTP Request, converts it into embeddings using OpenAI, stores them in an in-memory vector store and allows the AI Agent to provide factual answers to users via WhatsApp. Non-text messages are filtered and only text queries are processed. This makes the workflow ideal for building a lightweight chatbot that understands your product documentation deeply.
This workflow converts a product brochure (PDF) into a searchable knowledgebase using LangChain vector embeddings. Incoming WhatsApp messages are processed and if the message is text, the AI Sales Agent uses OpenAI + the vector store to produce accurate, brochure-based answers.
The AI responds naturally to customer queries, supports conversation memory across the session and retrieves information directly from the brochure when needed. Non-text messages are filtered out to maintain clean conversational flow.
The workflow is fully modular: you can replace the PDF, modify AI prompts, plug into CRM systems or extend it into a broader sales automation pipeline.
This workflow is ideal for:
To run this workflow successfully, you need:
Optional:
Upload the workflow JSON provided.
The workflow uses two WhatsApp send nodes:
Add your WhatsApp credentials to both.
In get Product Brochure (HTTP Request):
url parameter with your own PDFUse the Manual Trigger ("When clicking ‘Test workflow’") to:
> You must run this once after importing the workflow.
Add your OpenAI API Key to the following nodes:
OpenAI Chat ModelOpenAI Chat Model1Embeddings OpenAIEmbeddings OpenAI1Inside AI Sales Agent, you can edit the system message to match:
Once activated, WhatsApp users can chat with your AI Sales Agent.
Here are common customization options:
Change the URL in get Product Brochure
or
Upload your own file via other nodes.
Edit the systemMessage inside AI Sales Agent:
Modify Handle Message Types switch logic to allow:
Inside the textBody of response nodes.
Swap vectorStoreInMemory with:
By updating the vector store node.
You can extend this workflow with:
Add OpenAI translation nodes before agent input.
Send user queries and chat logs into:
Use embeddings similarity to suggest products.
Connect to Stripe or Shopify APIs.
Log chats into Airtable / Postgres for analysis.
Here are some practical uses:
Product Inquiry Chatbot Customers ask about specs, pricing, or compatibility.
Digital Catalog Assistant Converts PDF brochures into interactive WhatsApp search.
Sales Support Bot Reduces load on human sales reps by handling common questions.
Internal Knowledge Bot Teams access manuals, training documents, or service guides.
Event/Product Launch Assistant Provides instant details about newly launched items.
And many more similar use cases where an AI-powered WhatsApp assistant is valuable.
| Issue | Possible Cause | Solution |
|---|---|---|
| WhatsApp messages not triggering workflow | Wrong webhook URL or inactive workflow | Ensure webhook is correct & activate workflow |
| AI replies are empty | Missing OpenAI credentials | Add OpenAI API key to all AI nodes |
| Vector store not populated | Manual trigger not executed | Run the Test Workflow trigger once |
| PDF extraction returns blank text | PDF is image-based | Use OCR before text splitting |
| “Unsupported message type” always triggers | Message type filter misconfigured | Check conditions in Handle Message Types |
| AI not using brochure data | VectorStore tool not linked properly | Check connections between Embeddings → VectorStore → AI Agent |
If you need help setting up, customizing or extending this workflow, feel free to reach out to our n8n automation developers at WeblineIndia. We can help with
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.
Showing the first 24 of 27 workflow blocks. Download the JSON for the full node graph.
| Workflow | Answer product queries via WhatsApp using OpenAI GPT-4o and PDF knowledge base |
|---|---|
| Complexity | advanced |
| Nodes | 27 |
| Categories | Lead Nurturing, AI RAG |
| Author | WeblineIndia |
| Published | 15 Dec 2025 |
Use the JSON export at /data/workflows/11820/11820.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
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.
WhatsApp AI Sales Agent using PDF Vector Store This workflow turns your WhatsApp number into an intelligent AI powered Sales Agent that answers product queries using real data extracted from a PDF ...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
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 Lead Nurturing, AI RAG use case.