Travel Planning Assistant with MongoDB Atlas, Gemini LLM, and Vector Search
Building agentic AI workflows often requires multiple moving parts: memory management, document retrieval, vector similarity, and orchestration. Until now, these pieces had to be custom-wired. But with the new native n8n nodes for MongoDB Atlas, we reduce that overhead dramatically. With just a few clicks: - Store and recall long-term memory from MongoDB - Query vector embeddings stored in Atlas Vector Search - Use these results in your LLM chains and automation logic In this example, we present an ingestion and AI Agent flows that focus around Travel Planning. The different interest points that we want the agent to know about can be ingested into the vector store. The AI Agent will use the vector store tool to get relevant context about those points of interest if it needs to. ### Prerequisites - [MongoDB Atlas project and Cluster](https://www.mongodb.com/docs/atlas/tutorial/create-new-cluster/) - OpenAI Valid API Key for embeddings (can be other provider) - Gemini API Key for the LLM (can be other provider) ### How it works: There are 2 main flows. 1. One is the ingesting flow: - Gets a document from a webhook and uses MongoDB Vector Atlas to embed the document `title` and `description` into `points_of_interest` collection. - Embeddings are stored in a field named `embedding`. - Embeddings used are OpenAI's but it can be any type of supported embedders. 2. The second flow is an AI Agent node with Chat Memory Stored in MongoDB Atlas and a Vector Search node as a tool: - **Chat Message Trigger**: Chatting with the AI Agent will trigger the conversation stored in the MongoDB Chat Memory node. - When data is necessary, like a location search or details, it will go to the Vector Search tool. - **Vector Search Tool** - uses Atlas Vector Search index created on the `points_of_interest` collection: ``` // index name: vector_index // If you change an embedding provider, make sure the numDimensions correspond to the model. { fields: [ { type: vector, path: embedding, numDimensions: 1536, similarity: cosine } ] } ``` **Additional Resources** - [MongoDB Atlas Vector Search](https://www.mongodb.com/docs/atlas/atlas-vector-search/tutorials/vector-search-quick-start/?utm=n8n.io) - [n8n Atlas Vector Search docs](https://docs.n8n.io/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.vectorstoremongodbatlas?utm=n8n.io)
New buyers can create an account from the cart to unlock a controlled $10 first-purchase credit on eligible orders of $25+.
Related bundle
YouTube Creator Pipeline
8 hand-picked workflows for $39.00.
That is $4.88 each, vs $9.99 for this one alone.
View bundleSecure checkout powered by Stripe
Tags
Support
How to import this workflow into n8n
- 1Purchase or download the workflow to get the n8n workflow JSON file.
- 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
- 3Open each node marked with a credential warning and connect your own accounts and API keys.
- 4Run the workflow once manually to verify the data flow, then toggle it to Active.
Related Travel workflows
- Webhook Filter Sync for Accommodation Booking$6.99
- Automate Flight Searches and Recommendations with DeepSeek AI and Google Flights$4.99
- Daily Weather Forecast Emails with MeteoSource and Gmail$4.99
- Automate Airbnb Searches via Telegram with AI and Voice Support$9.99
- Automate Daily Weather Updates via Telegram Using OpenWeatherMap$9.99
- Automate Flight Price Tracking with Bright Data and n8n$9.99
Need this deployed? We'll set it up for you.
Our automation experts deploy this workflow in your stack, connect your accounts, and verify it works — or build a custom solution from scratch.