AI Agents

Intelligent agent with conversation memory and file handling

13 nodes 221 131 Automatic trigger
Download

Workflow Description

An automation template that builds a smart agent powered by OpenAI, retaining conversation history and managing file read/write operations. Users interact with the language model through a chat interface while maintaining full dialogue context across sessions.

How it works

  1. 1.Activate the agent via chat trigger or manual request
  2. 2.Call OpenAI model with buffered conversation memory
  3. 3.Read required files and process data with compression
  4. 4.Store responses and updated files locally
  5. 5.Return results to user with context preserved

Use cases

  • Intelligent assistant that handles files while understanding conversation history
  • Interactive document processor that updates files and preserves context
  • Customer support agent that remembers past interactions and related documents

Requirements

  • Valid OpenAI API key configured
  • Read and write file system permissions
  • Chat interface or HTTP endpoint to receive requests

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