- Save durable context.
- Search for relevant context before generating an answer.
- Use scopes to isolate users or tenants.
- Send feedback when results are helpful or wrong.
Save Memories
UsePOST /api/memories, the TypeScript SDK, or MCP save_memory.
| Status | Meaning |
|---|---|
saved | A new memory was created |
updated | A newer memory replaced an older one |
extended | The memory added detail to an existing fact |
duplicate | The same memory already exists |
accepted | A larger note was accepted for extraction |
jobId to track extraction.
Search Memories
Search before your app generates a response or makes a decision.Use Scopes For Isolation
Usescope as the hard boundary for your own users, tenants, accounts, or
organizations.
scope, MemContext searches only the unscoped memory lane.
Use project for grouping inside a scope:
Handle Changing Information
You can save updated information without manually deleting old memories. Example:- Save:
User prefers long-form LinkedIn posts. - Later save:
User now prefers short hook-first LinkedIn posts.
Use Categories
Categories help you filter and reason about memory:| Category | Use for |
|---|---|
preference | Likes, dislikes, style rules |
fact | Objective information |
decision | Choices that were made |
context | General background or state |
Use Expiry For Temporary Facts
SetvalidUntil when a memory should stop being used after a specific time.
Recommended App Flow
- Search MemContext with the current user or workspace context.
- Add the returned memories to your AI prompt.
- Generate the answer in your own app.
- Save any durable new preference, fact, or decision.
- Send feedback when retrieved memories were useful or wrong.
