AI Agents

Proxy with memory

13 nodes 221 159 Automatic trigger
Download

Workflow Description

Automation template combining an AI agent powered by OpenAI with dynamic contextual memory for sequential conversations. Maintains a history of previous messages and leverages them to enhance agent responses, delivering consistent and intelligent dialogue experiences across multiple sessions.

How it works

  1. 1.Receive conversation via chat trigger or manual request
  2. 2.Load prior context from Memory Buffer Window
  3. 3.Send current message with history to OpenAI agent for processing
  4. 4.Generate response based on accumulated context
  5. 5.Store new message and response in memory
  6. 6.Export final result with optional file persistence

Use cases

  • Building intelligent chatbots that understand conversation history
  • Customer support systems requiring awareness of past interactions
  • Advanced virtual assistants delivering personalized dialogue experiences

Requirements

  • Valid OpenAI API key configured
  • Appropriate OpenAI model settings (e.g., gpt-4 or gpt-3.5-turbo)
  • Adequately sized memory buffer to retain conversation context

Service Value

Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.

Apps Used

Memory OpenAI Read Write File AI Agent Chat Trigger

Details

Trigger Automatic trigger
Nodes 13
Apps 5
Views 221
Downloads 159

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

/

Window Buffer Memory

Memory Buffer Window

#1

OpenAI Chat Model

OpenAI

#2

When clicking "Test workflow"

Manual Trigger

#3

Get chinook.zip example

HTTP Request

#4

Extract zip file

Compression

#5

Save chinook.db locally

Read Write File

#6

Load local chinook.db

Read Write File

#7

Sticky Note

Sticky Note

#8

Sticky Note1

Sticky Note

#9

Combine chat input with the binary

Set

#10

Sticky Note2

Sticky Note

#11

AI Agent

Agent

#12

Chat Trigger

Chat Trigger

#13