> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mem0.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Cookbooks and Tutorials

> Browse cookbook examples and tutorials for building AI applications with Mem0, from companion chatbots to AI agents.

With Mem0, you can create stateful LLM-based applications such as chatbots, virtual assistants, or AI agents. Mem0 enhances your applications by providing a memory layer that makes responses:

* More personalized
* More reliable
* Cost-effective by reducing the number of LLM interactions
* More engaging
* Enriched by long-term memory

Here are some examples of how Mem0 can be integrated into various applications:

## Pick by compatibility

Every cookbook opens with a **Works with** badge naming the SDK surface it uses. Pick your setup below to see only the cookbooks that run on it. Three cookbooks work on both and appear under either tab.

> [tab] Self-hosted OSS
>
> Ten cookbooks run on the open-source `Memory` class, with no Mem0 Platform account.
>
> | Cookbook | Category | Works with |
> | - | - | - |
> | [Personalized AI Tutor](https://docs.mem0.ai/cookbooks/companions/ai-tutor.md) | Companions | OSS only |
> | [Build a Node.js Companion](https://docs.mem0.ai/cookbooks/companions/nodejs-companion.md) | Companions | OSS only |
> | [Self-Hosted AI Companion](https://docs.mem0.ai/cookbooks/companions/local-companion-ollama.md) | Companions | OSS only |
> | [Smart Travel Assistant](https://docs.mem0.ai/cookbooks/companions/travel-assistant.md) | Companions | OSS only |
> | [Build a Companion with Mem0](https://docs.mem0.ai/cookbooks/essentials/building-ai-companion.md) | Essentials | OSS and Platform |
> | [Bedrock with Persistent Memory](https://docs.mem0.ai/cookbooks/integrations/aws-bedrock.md) | Integrations | OSS only |
> | [Automated Email Intelligence](https://docs.mem0.ai/cookbooks/operations/email-automation.md) | Operations | OSS and Platform |
> | [Collaborative Task Assistant](https://docs.mem0.ai/cookbooks/operations/team-task-agent.md) | Operations | OSS only |
> | [Content Creation Workflow](https://docs.mem0.ai/cookbooks/operations/content-writing.md) | Operations | OSS and Platform |
> | [Memory-Powered Support Agent](https://docs.mem0.ai/cookbooks/operations/support-inbox.md) | Operations | OSS only |

> [tab] Hosted Platform
>
> Twenty cookbooks run on the hosted Platform, using `MemoryClient` or the Mem0 MCP server with a `MEM0_API_KEY`.
>
> | Cookbook | Category | Works with |
> | - | - | - |
> | [Interactive Memory Demo](https://docs.mem0.ai/cookbooks/companions/quickstart-demo.md) | Companions | Platform only |
> | [Research Assistant for YouTube](https://docs.mem0.ai/cookbooks/companions/youtube-research.md) | Companions | Platform only |
> | [Voice-First AI Companion](https://docs.mem0.ai/cookbooks/companions/voice-companion-openai.md) | Companions | Platform only |
> | [Build a Companion with Mem0](https://docs.mem0.ai/cookbooks/essentials/building-ai-companion.md) | Essentials | OSS and Platform |
> | [Export Stored Memories](https://docs.mem0.ai/cookbooks/essentials/exporting-memories.md) | Essentials | Platform only |
> | [Partition Memories by Entity](https://docs.mem0.ai/cookbooks/essentials/entity-partitioning-playbook.md) | Essentials | Platform only |
> | [Tag and Organize Memories](https://docs.mem0.ai/cookbooks/essentials/tagging-and-organizing-memories.md) | Essentials | Platform only |
> | [Gemini 3 with Mem0 MCP](https://docs.mem0.ai/cookbooks/frameworks/gemini-3-with-mem0-mcp.md) | Frameworks | Platform only |
> | [Multi-Agent Collaboration](https://docs.mem0.ai/cookbooks/frameworks/llamaindex-multiagent.md) | Frameworks | Platform only |
> | [Persistent Eliza Characters](https://docs.mem0.ai/cookbooks/frameworks/eliza-os-character.md) | Frameworks | Platform only |
> | [ReAct Agents with Memory](https://docs.mem0.ai/cookbooks/frameworks/llamaindex-react.md) | Frameworks | Platform only |
> | [Visual Memory Retrieval](https://docs.mem0.ai/cookbooks/frameworks/multimodal-retrieval.md) | Frameworks | Platform only |
> | [Healthcare Coach with ADK](https://docs.mem0.ai/cookbooks/integrations/healthcare-google-adk.md) | Integrations | Platform only |
> | [Memory as OpenAI Tool](https://docs.mem0.ai/cookbooks/integrations/openai-tool-calls.md) | Integrations | Platform only |
> | [Memory-Powered Agent SDK](https://docs.mem0.ai/cookbooks/integrations/agents-sdk-tool.md) | Integrations | Platform only |
> | [Persistent Mastra Agents](https://docs.mem0.ai/cookbooks/integrations/mastra-agent.md) | Integrations | Platform only |
> | [Search with Personal Context](https://docs.mem0.ai/cookbooks/integrations/tavily-search.md) | Integrations | Platform only |
> | [Automated Email Intelligence](https://docs.mem0.ai/cookbooks/operations/email-automation.md) | Operations | OSS and Platform |
> | [Content Creation Workflow](https://docs.mem0.ai/cookbooks/operations/content-writing.md) | Operations | OSS and Platform |
> | [Multi-Session Research Agent](https://docs.mem0.ai/cookbooks/operations/deep-research.md) | Operations | Platform only |

## Start here

The most popular cookbooks to get going fast:

> [card] [Build an AI companion](https://docs.mem0.ai/cookbooks/essentials/building-ai-companion.md)
>
> The core memory lifecycle, end to end.

> [card] [Self-host with Ollama](https://docs.mem0.ai/cookbooks/companions/local-companion-ollama.md)
>
> Run Mem0 fully local with Ollama.

> [card] [Partition memory by entity](https://docs.mem0.ai/cookbooks/essentials/entity-partitioning-playbook.md)
>
> Scope memories per user, agent, and app.

## Essentials

> [card] [Build a Companion with Mem0](https://docs.mem0.ai/cookbooks/essentials/building-ai-companion.md)
>
> Learn core memory lifecycle patterns.

> [card] [Partition Memories by Entity](https://docs.mem0.ai/cookbooks/essentials/entity-partitioning-playbook.md)
>
> Balance personalization with consistent behavior across users, agents, and apps.

> [card] [Tag and Organize Memories](https://docs.mem0.ai/cookbooks/essentials/tagging-and-organizing-memories.md)
>
> Use categories to keep retrieval fast and audits simple.

> [card] [Export Memories](https://docs.mem0.ai/cookbooks/essentials/exporting-memories.md)
>
> Back up, migrate, and audit stored memory data.

## Companion Playbooks

> [card] [Interactive Memory Demo](https://docs.mem0.ai/cookbooks/companions/quickstart-demo.md)
>
> See Mem0 memories in action.

> [card] [Research Assistant for YouTube](https://docs.mem0.ai/cookbooks/companions/youtube-research.md)
>
> Personalized context for video browsing.

> [card] [Voice-First AI Companion](https://docs.mem0.ai/cookbooks/companions/voice-companion-openai.md)
>
> Voice-first experiences with Agents SDK.

> [card] [Personalized AI Tutor](https://docs.mem0.ai/cookbooks/companions/ai-tutor.md)
>
> Student progress persistent across sessions.

> [card] [Smart Travel Assistant](https://docs.mem0.ai/cookbooks/companions/travel-assistant.md)
>
> Itineraries that remember traveler preferences.

> [card] [Build a Node.js Companion](https://docs.mem0.ai/cookbooks/companions/nodejs-companion.md)
>
> JavaScript fitness coach remembering goals.

> [card] [Self-Hosted AI Companion](https://docs.mem0.ai/cookbooks/companions/local-companion-ollama.md)
>
> Run Mem0 end-to-end with Ollama.

## Ops & Automations

> [card] [Automated Email Intelligence](https://docs.mem0.ai/cookbooks/operations/email-automation.md)
>
> Capture and recall inbox threads.

> [card] [Content Creation Workflow](https://docs.mem0.ai/cookbooks/operations/content-writing.md)
>
> Store tone and style guidelines.

> [card] [Multi-Session Research Agent](https://docs.mem0.ai/cookbooks/operations/deep-research.md)
>
> Multi-session investigations without repeating.

> [card] [Memory-Powered Support Agent](https://docs.mem0.ai/cookbooks/operations/support-inbox.md)
>
> Past tickets at support fingertips.

> [card] [Collaborative Task Assistant](https://docs.mem0.ai/cookbooks/operations/team-task-agent.md)
>
> Coordinate multi-user projects with roles.

## Integrations & Platforms

> [card] [Memory-Powered Agent SDK](https://docs.mem0.ai/cookbooks/integrations/agents-sdk-tool.md)
>
> Callable tools inside agent workflows.

> [card] [Memory as OpenAI Tool](https://docs.mem0.ai/cookbooks/integrations/openai-tool-calls.md)
>
> Memories in function-calling flows.

> [card] [Persistent Mastra Agents](https://docs.mem0.ai/cookbooks/integrations/mastra-agent.md)
>
> Persistent memory for Mastra agents.

> [card] [Healthcare Coach with ADK](https://docs.mem0.ai/cookbooks/integrations/healthcare-google-adk.md)
>
> Patient history across ADK sessions.

> [card] [Search with Personal Context](https://docs.mem0.ai/cookbooks/integrations/tavily-search.md)
>
> Realtime search with personal context.

> [card] [Bedrock with Persistent Memory](https://docs.mem0.ai/cookbooks/integrations/aws-bedrock.md)
>
> Mem0 with AWS Bedrock.

## Frameworks & Multimodal

> [card] [ReAct Agents with Memory](https://docs.mem0.ai/cookbooks/frameworks/llamaindex-react.md)
>
> ReAct agents with memory storage.

> [card] [Multi-Agent Collaboration](https://docs.mem0.ai/cookbooks/frameworks/llamaindex-multiagent.md)
>
> Shared memory across collaborating agents.

> [card] [Visual Memory Retrieval](https://docs.mem0.ai/cookbooks/frameworks/multimodal-retrieval.md)
>
> Visual context alongside text conversations.

> [card] [Persistent Eliza Characters](https://docs.mem0.ai/cookbooks/frameworks/eliza-os-character.md)
>
> Persistent personality for Eliza agents.

***

## Contribute a Cookbook

Have a unique Mem0 use case or integration? We'd love to feature your cookbook!

All cookbooks follow a standardized template to ensure consistency and quality. Check out our template to see the structure and best practices.

> [card] [Cookbook Template](https://docs.mem0.ai/templates/cookbook_template)
>
> Follow this structure for narrative, end-to-end Mem0 workflows.

> [card] [Contribution Guide](https://github.com/mem0ai/mem0/blob/main/CONTRIBUTING.md)
>
> Learn how to submit your cookbook to the Mem0 repository.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.