⚡ Travel planning assistant with MongoDB Atlas, Gemini LLM and vector search

3,578 views · ⚡ Personal Productivity

Description

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:

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

How it works:

There are 2 main flows.

  1. One is ingesting flow:
  1. Second flow is an AI Agent node with Chat Memory Stored in MongoDB Atlas and a Vector Search node as a tool:
// 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

🔗 Nodes Used

Webhook, AI Agent, Embeddings OpenAI, Recursive Character Text Splitter, Default Data Loader, Chat Trigger

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup