Back to discover
VideosWork smarter

n8n: build a chat agent with memory

Follow the chat-to-memory workflow, then check how earlier messages reach a follow-up request.

Jump to the practice exercise
Watch on YouTube

From chat input to remembered context

n8n’s archived written lesson explicitly adapts this video. It connects Chat Trigger, AI Agent and a chat model, then adds Simple Memory. It also changes the system message and inspects agent logs. You need n8n access and credentials for your chosen model.

Try it today

Use the current Chat Trigger reference alongside the older lesson. Keep public access off during development. When loading previous sessions from memory, connect Chat Trigger and Agent to the same memory node.

Lesson exercise with fictional data: say “My project is Amber,” then ask its name. Repeat with memory attached; compare the conversation and logs.

Try it: a CurioFuse exercise

An original editorial exercise with a checkable outcome.

CurioFuse session exercise: keep two projects apart

Prepare two fictional conversations. In session A, say “My project is Amber.” In session B, say “My project is Indigo.” Then ask each session for its project name. Record the session identifier, supplied name and returned name before inspecting the workflow logs.

A useful result keeps Amber associated with A and Indigo with B. If a name crosses sessions, investigate how the session and memory connections were configured. Do not treat one remembered answer as proof that separate conversations remain isolated.