Skip to content
AI Agents

Chat agent for movie recommendations using MongoDB aggregation and favorites

6 nodes 542 175 Automatic trigger
Download

Loading workflow…

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 6
Apps 6
Views 542
Downloads 175

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

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
Stay in the loop

Fresh workflows, straight to your inbox

Get newly published DROPIDEA workflows, a clear overview of what they do, and a link to explore them.

  • New workflows
  • Clear overviews
  • Setup guides

Be first to discover what is new

Your name, your email, and one confirmation.

Email confirmation · Unsubscribe anytime