Remember what the customer already told you.
Carry preferences and confirmed details across calls, chats, and days.
AI agents now book appointments, issue refunds, and change accounts. ContextDB remembers customers across calls, chats, and days, then checks what is current before each action.
1,000 active profiles included · No card required
See it work
ContextDB returns Thursday. If the agent tries to book Friday, your application asks the customer first.
$ pip install pycontextdb==0.4.4
import contextdb
db = contextdb.init(user_id="synthetic_customer_42",
embedding_model="mock", llm_model="mock", llm_api_key="mock")
async with db:
wish = await db.factual.add("I might maybe come on Friday instead.",
source="user_stated", confidence=0.4, action_relevant=True)
confirmed = await db.factual.add("I'd like to come in Thursday afternoon.",
source="user_stated", confidence=0.95, action_relevant=True)
await db.factual.confirm(confirmed.id)
trusted = await db.factual.recall_for_action("book the visit")
trusted Thursday returned. Friday withheld.
Why ContextDB
ContextDB carries confirmed details across conversations, then checks them before a booking, refund, or account change.
Carry preferences and confirmed details across calls, chats, and days.
Pause when remembered details are uncertain, stale, or conflicting.
Review what it remembered and what your application did next.
Works with your stack
Postgres, Supabase, and Hasura remain the source of current account, order, and inventory state. ContextDB remembers what happened across conversations and returns a decision before your host writes.
Current business truth stays in your database. Review the ownership boundary →
Start in your stack
Choose one maintained starter. Keep credentials and final tool execution in your host.
Python agent with a typed action boundary.
Open starter →TypeScript server tool with customer memory.
Open starter →Voice agent that recalls before responding or booking.
Open starter →Get started
Use the docs to remember one customer detail and check it before a booking, refund, or account change.
ContextDB Cloud is hosted and currently has no availability SLA.