AI Agents

Automated workflow

8 nodes 235 138 Automatic trigger
Download

Workflow Description

An automated workflow powered by an AI agent that processes inquiries through a chat interface, maintains conversation context in memory, and stores data in MongoDB for later analysis and auditing.

How it works

  1. 1.Receive incoming message via Chat Trigger
  2. 2.Process request using AI Agent backed by OpenAI model
  3. 3.Preserve conversation history through Memory Buffer Window
  4. 4.Retrieve data from MongoDB when needed
  5. 5.Execute available tools based on task requirements
  6. 6.Deliver processed response to the user

Use cases

  • Automated customer support that intelligently responds to common questions
  • Virtual assistant that learns from previous conversation context
  • Support system that automatically retrieves customer information from database

Requirements

  • Valid OpenAI API key configured
  • Active connection to MongoDB database
  • Chat Trigger enabled to receive incoming messages
  • Memory buffer settings configured for context retention

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 235
Downloads 138

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