AI Agents

Proxy with memory

13 nodes 216 131 Automatic trigger
Download

Workflow Description

An advanced template combining a smart AI agent powered by OpenAI with dynamic memory capabilities, enabling the system to retain and retrieve previous conversation context seamlessly. Includes file reading/writing and data compression for efficient processing. Ideal for building context-aware intelligent assistants.

How it works

  1. 1.Receive input via manual trigger or chat interface
  2. 2.Store and buffer inputs in sliding-window memory system
  3. 3.Send request to OpenAI agent with preserved context
  4. 4.Read or write data from/to files as needed
  5. 5.Compress large datasets to optimize performance
  6. 6.Return results while maintaining context for future requests

Use cases

  • Build intelligent assistants that remember user conversation history
  • Manage customer inquiries with complete conversation context
  • Automate complex tasks requiring persistent contextual understanding

Requirements

  • Valid OpenAI API key
  • File system read/write permissions on your server
  • Basic understanding of memory buffering and context in NLP processing

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 216
Downloads 131

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