AI Agents
Automated workflow
8 nodes
215
117
Automatic trigger
Workflow Description
An automated workflow that combines an AI agent with MongoDB to execute complex tasks. It receives requests through a chat trigger, maintains conversation history in memory, and uses custom tools for data processing and storage operations.
How it works
- 1.Activate the workflow when a new chat message arrives
- 2.Process the request through an OpenAI agent that understands context and required tasks
- 3.Query or store data in MongoDB based on the task requirements
- 4.Use conversation memory to retain chat context across multiple interactions
- 5.Execute custom tools to complete complex operations
- 6.Send the final result back to the user
Use cases
- Intelligent assistant that answers questions and retrieves data from the database
- Autonomous project management system that receives and executes requests independently
- Smart search engine for company data with complete conversation history logging
Requirements
- Valid OpenAI API key configured and authenticated
- Active MongoDB connection with read and write permissions
- Custom tools (Tools) designed to inform the agent of available actions
Service Value
Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.
Apps Used
OpenAI
MongoDB
Memory
Chat Trigger
Tool
AI Agent
Details
Trigger
Automatic trigger
Nodes
8
Apps
6
Views
215
Downloads
117
How to Use
- 1.Click "Download Template"
- 2.Open your n8n dashboard
- 3.Go to Workflows > Import from File
- 4.Select downloaded file and configure credentials
Nodes Used (8)
OpenAI Chat Model
OpenAI
MongoDBAggregate
Mongo Db Tool
Window Buffer Memory
Memory Buffer Window
When chat message received
Chat Trigger
insertFavorite
Tool Workflow
AI Agent - Movie Recommendation
Agent
Sticky Note
Sticky Note
Sticky Note1
Sticky Note