AI Agents

Automated workflow

14 nodes 209 127 Automatic trigger
Download

Workflow Description

Intelligent workflow combining an AI agent with vector search to process user queries based on stored documents. Leverages Gemini language model with MongoDB memory for accurate, contextual responses through semantic understanding.

How it works

  1. 1.Receive user query through chat interface
  2. 2.Split uploaded documents into processable text chunks
  3. 3.Search MongoDB for documents most relevant to the query
  4. 4.Process query and context using AI agent with Gemini model
  5. 5.Store conversation history in MongoDB for retrieval
  6. 6.Send response back to user through chat

Use cases

  • Smart customer support system answering questions from company knowledge base
  • Document and contract analysis through intelligent questioning
  • Enhanced internal search engine that understands query intent and context

Requirements

  • Active Google Cloud account with Gemini API access
  • OpenAI account for embeddings generation
  • MongoDB Atlas database with vector index configured
  • Documents or text files for indexing and knowledge base

Service Value

Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.

Apps Used

Chat Trigger MongoDB Gemini OpenAI AI Agent Document Default Data Loader Text Splitter

Details

Trigger Automatic trigger
Nodes 14
Apps 7
Views 209
Downloads 127

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (14)

/

When chat message received

Chat Trigger

#1

MongoDB Chat Memory

Memory Mongo Db Chat

#2

Google Gemini Chat Model

Gemini Model

#3

MongoDB Atlas Vector Store

Vector Store Mongo D B Atlas

#4

Embeddings OpenAI

OpenAI

#5

Sticky Note

Sticky Note

#6

AI Traveling Planner Agent

Agent

#7

Webhook

Webhook

#8

Default Data Loader

Document Default Data Loader

#9

Recursive Character Text Splitter

Text Splitter Recursive Character Text Splitter

#10

MongoDB Atlas Vector Store1

Vector Store Mongo D B Atlas

#11

Embeddings OpenAI1

OpenAI

#12

Sticky Note1

Sticky Note

#13

Sticky Note2

Sticky Note

#14