AI Agents

Build an AI Agent with Dynamic Conversation Memory

38 nodes 293 168 Automatic trigger
Download

Workflow Description

An advanced template that leverages Claude's language model to create an intelligent agent capable of maintaining conversation context across multiple sessions, with automatic memory management ensuring continuity and relevance in interactions.

How it works

  1. 1.Receive input via manual trigger or webhook and route it to LLM processing chain
  2. 2.Manage conversation context using a memory buffer window that updates dynamically
  3. 3.Process queries through an intelligent agent powered by Anthropic's Claude model
  4. 4.Merge, filter, and return the final formatted response to the user

Use cases

  • Build a conversational assistant that retains context from long discussions
  • Create an automated agent that learns from past user interactions
  • Deploy a self-evolving customer support solution with persistent conversation memory

Requirements

  • Valid Anthropic API key for Claude access
  • Basic understanding of n8n memory mechanisms and context storage
  • Configured webhooks or manual triggers to activate the workflow

Service Value

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

Apps Used

Anthropic Memory LLM Chain AI Agent

Details

Trigger Automatic trigger
Nodes 38
Apps 4
Views 293
Downloads 168

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

/

When clicking ‘Test workflow’

Manual Trigger

#1

HTTP Request

HTTP Request

#2

Markdown

Markdown

#3

Sticky Note

Sticky Note

#4

Anthropic Chat Model

Lm Chat Anthropic

#5

Anthropic Chat Model1

Lm Chat Anthropic

#6

Anthropic Chat Model2

Lm Chat Anthropic

#7

Anthropic Chat Model3

Lm Chat Anthropic

#8

Merge

Merge

#9

Simple Memory

Memory Buffer Window

#10

Clean memory

Memory Manager

#11

Initial prompts

Set

#12

Split Out

Split Out

#13

Reshape

Set

#14

Sticky Note1

Sticky Note

#15

Anthropic Chat Model4

Lm Chat Anthropic

#16

Merge2

Merge

#17

Sticky Note2

Sticky Note

#18

Basic LLM Chain4

LLM Chain

#19

Split Out1

Split Out

#20

Anthropic Chat Model5

Lm Chat Anthropic

#21

Webhook

Webhook

#22

CONNECT ME

No Op

#23

CONNECT ME1

No Op

#24

CONNECT ME2

No Op

#25

Sticky Note3

Sticky Note

#26

Sticky Note4

Sticky Note

#27

Sticky Note5

Sticky Note

#28

Sticky Note6

Sticky Note

#29

Initial prompts1

Set

#30

LLM Chain - Step 1

LLM Chain

#31

LLM Chain - Step 2

LLM Chain

#32

LLM Chain - Step 3

LLM Chain

#33

LLM Chain - Step 4

LLM Chain

#34

All LLM steps here - sequentially

Agent

#35

LLM steps - parallel

HTTP Request

#36

Merge output with initial prompts

Merge

#37

Merge output with initial prompts1

Merge

#38