Proxy with memory
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.Receive conversation via chat trigger or manual request
- 2.Load prior context from Memory Buffer Window
- 3.Send current message with history to OpenAI agent for processing
- 4.Generate response based on accumulated context
- 5.Store new message and response in memory
- 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
Details
How to Use
- 1.Click "Download Template"
- 2.Open your n8n dashboard
- 3.Go to Workflows > Import from File
- 4.Select downloaded file and configure credentials
Nodes Used (13)
Window Buffer Memory
Memory Buffer Window
OpenAI Chat Model
OpenAI
When clicking "Test workflow"
Manual Trigger
Get chinook.zip example
HTTP Request
Extract zip file
Compression
Save chinook.db locally
Read Write File
Load local chinook.db
Read Write File
Sticky Note
Sticky Note
Sticky Note1
Sticky Note
Combine chat input with the binary
Set
Sticky Note2
Sticky Note
AI Agent
Agent
Chat Trigger
Chat Trigger