Chat Memory Manager

Read, add, or delete the messages in the memory of an AI Agent.

v0.4.0Source

Install

An AI agent with ports for a chat model, memory, and tools. Chat models of OpenAI, Anthropic, Google Gemini, Mistral, Groq, xAI, DeepSeek, OpenRouter, Ollama, Azure OpenAI, Amazon Bedrock, Google Vertex AI, or any OpenAI-compatible endpoint, memory in zerodot or in a data table, and other workflows, MCP servers, and vector stores as tools. Embedding models, text splitters, a data loader, and a Cohere reranker for vector stores.

AI Agent@zerodot/ai-agentInstall
  1. Open System, then Nodes.
  2. Find AI Agent and click Install.
  3. Use the new nodes at once. You do not restart.

How it works

Chat Memory Manager (agent.memory.manage) is an action node in the AI Agent package (@zerodot/ai-agent): Read, add, or delete the messages in the memory of an AI Agent.

A normal step with a Memory port (required). It works on the memory of a conversation outside the agent, for example to clear a chat on /reset, or to add context as if the user said it. The Session ID of the memory node reads the input of this node.

  • Get Messages: all messages of the session, or only the turns that the agent reads.
  • Insert Messages: add User or AI messages, or replace all messages of the session.
  • Delete Messages: the last N messages, or all. A tool call never stays without its result: when the cut separates them, the tool call goes too.

The output is { messages }: the messages of the session after the operation. Simplify Output (on by default) keeps only role and content.

Logins it can use

The chat models and the embedding models use the same credential types as @zerodot/ai: ai.openai, ai.anthropic, ai.gemini, and ai.compatible. A key saved for one package works in the other.

Cohere API key (cohere): apiKey, and an optional baseUrl. The key is secret.

Guides and related hubs