Skip to content

Cognitive Memory

Guillermo Ubeda edited this page May 29, 2026 · 1 revision

Cognitive Memory

🇬🇧 English first · 🇪🇸 Español más abajo.

A two-tier memory model that mimics human cognition — the platform's core differentiator.

Short-term

  • The last N messages of the current conversation injected into context.
  • N configurable per agent (default: 10).

Long-term

  • When a session closes (or every X messages), n8n asks Claude to extract up to 5 key facts from the transcript.
  • Extraction prompt (essence): "Given this transcript, extract at most 5 durable facts about the user/business."
  • Facts persisted to memory/{agentId}/facts/ and re-injected into the system prompt of future conversations.

Knowledge base

  • Per-client markdown documents the agent can draw on.

Why it matters: the agent stops being stateless — it accumulates context about the client over time, which is what makes it feel like a real "AI employee" rather than a chatbot.


🇪🇸 Español

Modelo de memoria de dos niveles que imita la cognición humana — el diferenciador central de la plataforma.

Corto plazo

  • Los últimos N mensajes de la conversación actual inyectados en el contexto.
  • N configurable por agente (default: 10).

Largo plazo

  • Al cerrar una sesión (o cada X mensajes), n8n pide a Claude extraer hasta 5 hechos clave del transcript.
  • Prompt de extracción (esencia): "Dado este transcript, extrae como máximo 5 hechos duraderos sobre el usuario/negocio."
  • Los facts se persisten en memory/{agentId}/facts/ y se reinyectan en el system prompt de conversaciones futuras.

Base de conocimiento

  • Documentos markdown por cliente que el agente puede consultar.

Por qué importa: el agente deja de ser stateless — acumula contexto sobre el cliente con el tiempo, que es lo que lo hace sentir un verdadero "empleado IA" y no un chatbot.

Clone this wiki locally