AI Agents

Automated workflow

8 nodes 234 162 Automatic trigger
Download

Workflow Description

An intelligent workflow that combines an AI Agent with conversation memory to handle continuous requests. It receives messages via Chat Trigger, maintains user context in Memory, leverages OpenAI for intelligence, and accesses MongoDB for data retrieval as needed.

How it works

  1. 1.Receive incoming message through Chat Trigger
  2. 2.Load prior conversation context from Memory Buffer
  3. 3.Process request using AI Agent with OpenAI models
  4. 4.Execute available tools based on agent reasoning
  5. 5.Query MongoDB for relevant data if required
  6. 6.Send response while preserving updated context

Use cases

  • Smart customer support that remembers previous conversation history
  • Personal assistant handling multiple tasks based on user context
  • Information system combining AI intelligence with secure data access

Requirements

  • Valid and active OpenAI API key
  • Active connection to MongoDB database
  • Chat Trigger authorization to receive incoming messages

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 234
Downloads 162

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