Customer service agents
An agent handling refunds remembers the customer's earlier messages, the store's policies and which step of the refund it has reached.
Give long-running agents conversation context, recalled knowledge, task state and an audit trail, all in one place.
A session keeps a rolling window of the most recent turns.
An animated walkthrough with real HotKV commands and example replies. Click any step to jump to it.
An agent that forgets between steps cannot finish long tasks. The usual answer is a chat history table, a vector store for facts and a scratch space for state, and still no single record of what the agent did.
HotKV provides four kinds of agent memory as commands. Conversation windows hold dialogue context, semantic memory recalls relevant facts by meaning, working memory tracks the state of the current task, and an episodic log records what the agent did.
A session keeps a rolling window of the most recent turns.
AMEM.CONV.CREATE session:42 WINDOW 20Each turn is appended with its role.
AMEM.CONV.APPEND session:42 user "Why was my invoice declined?"Facts stored earlier with AMEM.SEM.STORE, in semantic memory made with AMEM.SEM.CREATE, are found by meaning, not by keyword.
AMEM.SEM.RECALL billing-agent 3 0.02 0.7 ...Working memory holds where the agent is, and expires when the task is long over.
AMEM.WORK.SET session:42 step "checking payment gateway" TTL 600Every action the agent takes is recorded for audit and debugging.
AMEM.EPIS.LOG billing-agent action "Reissued invoice INV-9921"The recent turns go into the next prompt, so the agent never loses the thread.
AMEM.CONV.WINDOW session:42 10An agent handling refunds remembers the customer's earlier messages, the store's policies and which step of the refund it has reached.
Findings are stored as semantic facts during a long investigation and recalled when writing the summary.
Every action an on-call bot takes is in the episodic log, so humans can review exactly what it did and why.
A rolling window of recent turns for each session.
AMEM.CONV.APPENDAMEM.CONV.WINDOWFacts recalled by meaning, optionally with a TTL.
AMEM.SEM.STOREAMEM.SEM.RECALLTask state that can expire on its own.
AMEM.WORK.SETAMEM.WORK.GETActions and observations, queryable by type and time.
AMEM.EPIS.LOGAMEM.EPIS.QUERYThe four memory types share one store and one connection, so recall, task state and the action log do not each need their own service.
No. Memory is exposed as commands over the Redis protocol, and the MCP server exposes it to MCP clients. For LangGraph there is a checkpointer and store.
Agent memory is part of the Performance and Scale plans.
HotKV speaks the Redis protocol, so you can point an existing client at it and run these same commands.