Skip to main content

Why agents need memory

Your agents run thousands of tasks but start from scratch every time. Customer context is lost between sessions. Proven workflows are forgotten. Mistakes get repeated. Mengram gives agents persistent memory across 3 dimensions:
  • Facts (semantic) — what the agent knows about users, systems, policies
  • Events (episodic) — what happened in past runs, with outcomes
  • Workflows (procedural) — learned step-by-step procedures with success/failure tracking

The agent memory loop

Quick start

Key parameters

All parameters work with add(), search(), search_all(), and other endpoints.

Filtering by agent

Search only memories from a specific agent:

Procedural learning

Mengram extracts step-by-step workflows from agent conversations and tracks which ones succeed. Agents get better over time without retraining.

Agent mode extraction

By default, Mengram only extracts facts from the user role — assistant responses are treated as context only. When you pass agent_id, Mengram automatically switches to full extraction — remembering both what the user asked and what the agent did:

Multi-agent systems

Multiple agents can share the same memory pool or be isolated:

Framework integrations

REST API

For agents built with raw HTTP calls:
For the full API reference with all endpoints and parameters, see API Reference.