MongoDB Atlas vector search and memory travel planner workflow
This n8n workflow unifies vector search and persistent thread memory inside MongoDB Atlas. A POST webhook accepts point-of-interest titles and descriptions, embeds them with OpenAI and writes to MongoDB Atlas. When users ask trip questions in chat, a Google Gemini agent queries top-10 matches with MongoDB memory.
- Catalogue ID
- #2039
- Functional nodes
- 11
- Connections
- 9
- Trigger
- chatTrigger, webhook
- AI layer
- AI-assisted
Business problem solved
Travel planners rely on up-to-date destination records and multi-turn preference tracking. When chat history lives only in temporary server memory, returning users lose personalised itinerary context.
Trigger
A POST webhook ingests point-of-interest records, while a chat trigger serves trip-planning enquiries.
Connected systems
- MongoDB Atlas Vector Store
- MongoDB Chat Memory
- Google Gemini
- OpenAI embeddings
- Webhook endpoint
- Self-hosted n8n
Every workflow is deployed on your own server with documentation, a run log and an error queue.
Workflow architecture
- 1. When chat message received (Trigger) (connects to AI Traveling Planner Agent)
- 2. MongoDB Chat Memory (AI layer) (connects to AI Traveling Planner Agent)
- 3. Google Gemini Chat Model (AI layer) (connects to AI Traveling Planner Agent)
- 4. MongoDB Atlas Vector Store (AI layer) (connects to AI Traveling Planner Agent)
- 5. Embeddings OpenAI (AI layer) (connects to MongoDB Atlas Vector Store)
- 6. AI Traveling Planner Agent (AI layer)
- 7. Webhook (Trigger) (connects to MongoDB Atlas Vector Store1)
- 8. Default Data Loader (AI layer) (connects to MongoDB Atlas Vector Store1)
- 9. Recursive Character Text… (AI layer) (connects to Default Data Loader)
- 10. MongoDB Atlas Vector Store1 (AI layer)
- 11. Embeddings OpenAI1 (AI layer) (connects to MongoDB Atlas Vector Store1)
- Trigger
- AI layer
- Logic and routing
- Service and data
Node positions and directed links are generated from the verified catalogue record.
Workflow steps
- 01
Webhook ingestion of destination records
The POST webhook receives point-of-interest title and description payloads for immediate indexing.
- 02
Chunking and MongoDB Atlas insert
Text splits recursively, embeds through OpenAI and saves to the MongoDB Atlas points_of_interest vector index.
- 03
Persistent MongoDB memory and Gemini Q&A
The Gemini trip-planner agent reads thread history from MongoDB memory and searches MongoDB Atlas vectors up to ten matches.
Error queue and human approval
Built-in state in the catalogue workflow
The verified catalogue workflow contains zero node-level error flags across its 11 functional nodes and 9 connections.
Production layer added by ALTAI
During live deployment, ALTAI adds webhook authentication and schema validation, duplicate entry checks, iteration caps and an ingestion run log.
MongoDB Atlas travel RAG workflow Frequently asked questions
Yes. Thread history persists directly inside MongoDB Chat Memory keyed by session rather than disappearing on server restart.
Production deployments require signed bearer tokens or HMAC headers and validate required title and description fields before indexing.
Yes. Updating the webhook payload mapping and agent instructions turns the same MongoDB Atlas stack into any curated catalogue advisor.
Related n8n workflows
Supabase Storage and pgvector RAG
Diffs private Supabase Storage files against your database log, extracts only new TXT and PDF files into pgvector and powers chat Q&A.
Webhook Qdrant dynamic collection Q&A
Loads a Google Drive PDF page-by-page into Qdrant and answers chat or POST webhook questions by selecting the target Qdrant collection dynamically.
WooCommerce and Qdrant shopper RAG
Indexes store guides from Google Drive into Qdrant, extracts product filters from shopper messages and queries live WooCommerce tools with memory.

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