external_user_id inside your tenant.
When to use this pattern
Use the general engine for:- AI assistants and copilots
- productivity tools
- coding agents
- personalisation in SaaS apps
- onboarding and support chat that does not need the Support schema
Flow
Python
TypeScript
Production handling
Always treat MemoryOS as additive context. Your product should still answer when memory is unavailable, passthrough, or empty.status before assuming a memory was stored.
What to send to add()
Send meaningful conversational turns, not every keystroke or UI event.
Good examples:
- “I prefer short technical answers with Python examples.”
- “My main goal is to prepare for the AWS Solutions Architect exam.”
- “For project updates, send me a weekly summary every Friday.”
- “hi”
- “ok”
- empty messages
- repeated copies of the same turn
Retrieval query design
Use the current task as the query, not a generic query like"memory".
Good: