AI Agents

Proxy with memory

13 nodes 221 134 Automatic trigger
Download

Workflow Description

An intelligent proxy agent that retains conversation history in memory and processes it through OpenAI's model, enabling continuous contextual interactions while preserving prior data without loss.

How it works

  1. 1.Activate manual trigger or chat trigger to initiate interaction
  2. 2.Load previous conversation record from memory into buffer window
  3. 3.Send complete conversation to GPT model for intelligent processing
  4. 4.Save new response and context to memory for future conversations
  5. 5.Apply data compression when needed to optimize performance

Use cases

  • Build a chatbot assistant that remembers context and previous conversations
  • Automate processes requiring accumulated understanding across multiple interaction rounds

Requirements

  • Valid OpenAI API key configured
  • Memory system setup with appropriate maximum buffer for conversation volume
  • File handler for read/write operations when persistent storage is required

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