{
 "schema_version": 1,
 "generated": "2026-10-24",
 "id": "mem0ai-mem0--store-per-user-preferences-in-app",
 "repo": "mem0ai/mem0",
 "repo_url": "https://github.com/mem0ai/mem0",
 "repo_slug": "mem0ai-mem0",
 "title": "Remember each user's preferences in your app",
 "page_title": "Mem0 tutorial: remember each user's preferences in your AI app",
 "summary": "Add and search memories scoped by user id so your assistant personalizes replies.",
 "who": "A developer building a chat assistant that should remember each user.",
 "problem": "Users must repeat preferences every session.",
 "outcome": "Per-user memories retrieved when relevant.",
 "steps": [
  "Install with `pip install mem0ai` or `npm install mem0ai`",
  "Add a memory with a user id, for example alice",
  "Search memories for that user before replying",
  "Include results in the prompt"
 ],
 "agent_prompt": "Using mem0, store <preference> for user <id> and search \"What does <id> prefer?\". Confirm results only include that user's memories.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "The README's benchmark numbers come from the project's own runs.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "python",
 "requirements": [
  "Python or Node.js",
  "Docker to self-host the server",
  "An LLM provider key for memory extraction"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "credentials",
   "notice": "Your LLM key and any Mem0 API key are used for extraction and storage."
  }
 ],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/mem0ai-mem0/store-per-user-preferences-in-app/",
 "md": "https://dedupedai.com/use-cases/mem0ai-mem0/store-per-user-preferences-in-app/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/mem0ai-mem0--store-per-user-preferences-in-app.json",
 "api_version": "v1"
}
