Zero-dependency WhatsApp PDF catalogue RAG reply workflow
This n8n workflow delivers a self-contained WhatsApp catalogue Q&A flow with no external vector database dependency. An HTTP request fetches the product brochure PDF, extracts text and builds an in-memory OpenAI vector index. Text messages enter the sales agent while unsupported formats receive an automatic notice.
- Catalogue ID
- #1365
- Functional nodes
- 18
- Connections
- 16
- Trigger
- whatsAppTrigger, manualTrigger
- AI layer
- AI-assisted
Business problem solved
Teams validating a WhatsApp catalogue assistant often stall waiting to provision and manage external vector database accounts. Starting with a self-contained single-server stack lets operators test real brochure answers immediately.
Trigger
A manual trigger populates the in-memory catalogue; a WhatsApp trigger responds to incoming buyer messages.
Connected systems
- WhatsApp Business API
- In-memory vector store
- OpenAI
- PDF text extraction
- HTTP PDF endpoint
- Self-hosted n8n
Every workflow is deployed on your own server with documentation, a run log and an error queue.
Workflow architecture
- 1. WhatsApp Trigger (Trigger) (connects to Handle Message Types)
- 2. OpenAI Chat Model (AI layer) (connects to AI Sales Agent)
- 3. Window Buffer Memory (AI layer) (connects to AI Sales Agent)
- 4. Vector Store Tool (AI layer) (connects to AI Sales Agent)
- 5. Embeddings OpenAI (AI layer) (connects to Product Catalogue)
- 6. OpenAI Chat Model1 (AI layer) (connects to Vector Store Tool)
- 7. When clicking Test workflow (Trigger) (connects to get Product Brochure)
- 8. Embeddings OpenAI1 (AI layer) (connects to Create Product Catalogue)
- 9. Default Data Loader (AI layer) (connects to Create Product Catalogue)
- 10. Recursive Character Text… (AI layer) (connects to Default Data Loader)
- 11. Extract from File (Service and data) (connects to Create Product Catalogue)
- 12. get Product Brochure (Service and data) (connects to Extract from File)
- 13. Reply To User (Service and data)
- 14. Reply To User1 (Service and data)
- 15. Product Catalogue (AI layer) (connects to Vector Store Tool)
- 16. Create Product Catalogue (AI layer)
- 17. Handle Message Types (Logic and routing) (connects to AI Sales Agent, Reply To User1)
- 18. AI Sales Agent (AI layer) (connects to Reply To User)
- Trigger
- AI layer
- Logic and routing
- Service and data
Node positions and directed links are generated from the verified catalogue record.
Workflow steps
- 01
Brochure fetch and PDF text extraction
The manual path fetches the brochure PDF over HTTP, extracts text and divides it into 2,000-character chunks.
- 02
Single-key in-memory vector store
OpenAI embeddings load into an in-memory vector store keyed by catalogue ID with automatic reset on rebuild.
- 03
WhatsApp switch and session memory
The switch filters text messages into phone-keyed window memory and answers non-text attachments safely.
- 04
Product Q&A reply via WhatsApp
OpenAI gpt-4o retrieves matching brochure specifications and sends a concise reply straight to WhatsApp.
Error queue and human approval
Built-in state in the catalogue workflow
The verified catalogue workflow contains zero node-level error flags across its 18 functional nodes and 16 connections.
Production layer added by ALTAI
During live deployment, ALTAI adds Qdrant or pgvector persistence when multi-catalogue volume grows, startup auto-reload checks, Meta signature validation and error queues.
WhatsApp self-contained PDF RAG Frequently asked questions
In-memory storage suits single-brochure pilots; once you manage multiple catalogues or large manuals, we switch to persistent Qdrant or pgvector.
Yes. Production setups attach an instance-start check or scheduled guard that rebuilds the in-memory store if empty.
Yes. Disabling clearStore and looping over a list of brochure URLs loads multiple PDFs into one store.
Related n8n workflows
WhatsApp AI customer support workflow
Checks the 24-hour Meta service window, answers with PostgreSQL conversation memory and reopens expired threads through approved templates.
WhatsApp PDF brochure in-memory RAG
Fetches a product brochure PDF via HTTP into an in-memory vector store and answers WhatsApp text enquiries while flagging non-text messages.
WhatsApp brochure memory advisor RAG
Maintains phone-keyed conversation memory on WhatsApp, turns away non-text formats cleanly and answers product questions from a PDF brochure.

We write the proposal after we have found the problem together
In a thirty-minute call we listen to how you work and talk through where time and customers are slipping away. If you do not need a digital fix, we will tell you that too.
30 minutes · no preparation needed
The call and the week of discovery are both free.Read the terms