AI Agents

Intelligent agent workflow with conversation memory

8 nodes 309 134 Automatic trigger
Download

Workflow Description

Automated workflow leveraging an AI agent powered by OpenAI to respond to user inquiries via chat while maintaining conversation context in memory and accessing MongoDB data when needed for enhanced responses.

How it works

  1. 1.Receive user inquiries through the chat trigger
  2. 2.Process messages using OpenAI model with buffered memory
  3. 3.Call tools or MongoDB to retrieve required information
  4. 4.Send intelligent response back to user

Use cases

  • Build intelligent chatbots that retain conversation history across sessions
  • Respond to customer queries with real-time database lookups
  • Create AI-powered support agents that understand context

Requirements

  • Valid OpenAI API key configured
  • Active MongoDB connection with proper credentials
  • Chat trigger and AI agent properly configured

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 309
Downloads 134

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