Setup
Define custom categories at the project level with
client.project.update() before adding memories. Categories apply to all future memories: Mem0 auto-assigns them based on content semantics. You can also pass custom_categories on a single client.add() call to override the project list for just those memories. See Custom Categories.The Problem
Without categories, all memories sit in one undifferentiated bucket. Support agents waste time searching through everything to find billing issues, account details, or past tickets. Let’s see what happens without organization:Custom Categories
Define categories that match how your support team thinks about customer issues:Tagging Memories
Once categories are defined at the project level, Mem0 automatically assigns them based on content:Retrieving by Category
Filter memories by category to find exactly what you need:Expected output: Only the billing issue returned: no password reset, no upgrade request. Category filtering worked. Joseph can audit billing without reading through unrelated support tickets.
Updating Categories
Categories are automatically assigned based on content. To trigger re-categorization, update the memory content:What You Built
A customer support platform with intelligent memory organization:- Project-wide categories - Support tickets, billing, account info, and product feedback auto-classified
- Automatic tagging - Mem0 assigns categories based on content semantics, no manual tagging
- Filtered retrieval - Pull only billing issues or only account updates using
categories: {in: [...]} - Re-categorization - Update memory content to trigger re-analysis against new category definitions
- Multi-category support - Memories can belong to multiple categories when appropriate
Summary
Categories make retrieval faster and compliance easier. Define 3-5 clear categories withclient.project.update(), let Mem0 auto-assign them based on content, then filter with categories: {in: [...]} to pull exactly what you need.
Instead of searching through everything, agents jump directly to the information type they need: billing issues, account details, or support tickets.
Control Memory Ingestion
Keep categories meaningful by filtering noise before it lands in storage.
Export Tagged Memories
Use categories to drive audits, migrations, and compliance reports.
Using Mem0? Star us on GitHub to help more developers discover memory for AI apps.