Company RAG and data queries

MongoDB Atlas vector search and memory travel planner workflow

Short answer

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

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

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

Workflow architecture

  1. 1. When chat message received (Trigger) (connects to AI Traveling Planner Agent)
  2. 2. MongoDB Chat Memory (AI layer) (connects to AI Traveling Planner Agent)
  3. 3. Google Gemini Chat Model (AI layer) (connects to AI Traveling Planner Agent)
  4. 4. MongoDB Atlas Vector Store (AI layer) (connects to AI Traveling Planner Agent)
  5. 5. Embeddings OpenAI (AI layer) (connects to MongoDB Atlas Vector Store)
  6. 6. AI Traveling Planner Agent (AI layer)
  7. 7. Webhook (Trigger) (connects to MongoDB Atlas Vector Store1)
  8. 8. Default Data Loader (AI layer) (connects to MongoDB Atlas Vector Store1)
  9. 9. Recursive Character Text… (AI layer) (connects to Default Data Loader)
  10. 10. MongoDB Atlas Vector Store1 (AI layer)
  11. 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

Workflow steps

  1. 01

    Webhook ingestion of destination records

    The POST webhook receives point-of-interest title and description payloads for immediate indexing.

  2. 02

    Chunking and MongoDB Atlas insert

    Text splits recursively, embeds through OpenAI and saves to the MongoDB Atlas points_of_interest vector index.

  3. 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

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.

Frequently asked

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.

Mert Can Gundogdu
The founder takes the call, not a sales team
Next step

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

Chat on WhatsApp