AI Agents

Automated workflow

8 nodes 216 117 Automatic trigger
Download

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. 1.Activate the workflow when a new chat message arrives
  2. 2.Process the request through an OpenAI agent that understands context and required tasks
  3. 3.Query or store data in MongoDB based on the task requirements
  4. 4.Use conversation memory to retain chat context across multiple interactions
  5. 5.Execute custom tools to complete complex operations
  6. 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 216
Downloads 117

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 (8)

OpenAI Chat Model

OpenAI

#1

MongoDBAggregate

Mongo Db Tool

#2

Window Buffer Memory

Memory Buffer Window

#3

When chat message received

Chat Trigger

#4

insertFavorite

Tool Workflow

#5

AI Agent - Movie Recommendation

Agent

#6

Sticky Note

Sticky Note

#7

Sticky Note1

Sticky Note

#8