Search...
Ctrl KAsk AI
Search...
Navigation
Companion Playbooks
Interactive Memory Demo
Welcome Mem0 Platform Open Source Cookbooks Integrations API Reference Release Notes
Getting Started
Essentials
- Build a Companion with Mem0
- Partition Memories by Entity
- Control Memory Ingestion
- Set Memory Expiration
- Tag and Organize Memories
- Export Stored Memories
- Choose Vector vs Graph Memory
Companion Playbooks
- Interactive Memory Demo
- Build a Node.js Companion
- Personalized AI Tutor
- Smart Travel Assistant
- Research Assistant for YouTube
- Voice-First AI Companion
- Self-Hosted AI Companion
Ops & Automations
- Memory-Powered Support Agent
- Automated Email Intelligence
- Content Creation Workflow
- Multi-Session Research Agent
- Collaborative Task Assistant
Integrations & Platforms
- Memory-Powered Agent SDK
- Memory as OpenAI Tool
- Persistent Mastra Agents
- Healthcare Coach with ADK
- Bedrock with Persistent Memory
- Graph Memory on Neptune
- Search with Personal Context
Frameworks & Multimodal
- ReAct Agents with Memory
- Multi-Agent Collaboration
- Visual Memory Retrieval
- Persistent Eliza Characters
- Browser Extension Memory
- Gemini 3 with Mem0 MCP
- MiroFish Swarm Memory
On this page
You can create a personalized AI Companion using Mem0. This guide will walk you through the necessary steps and provide the complete setup instructions to get you started.You can try the Mem0 Demo live here.
Overview
The Personalized AI Companion leverages Mem0 to retain information across interactions, enabling a tailored learning experience. It creates memories for each user interaction and integrates with OpenAI’s GPT models to provide detailed and context-aware responses to user queries.
Setup
Before you begin, follow these steps to set up the demo application:
- Clone the Mem0 repository:
git clone https://github.com/mem0ai/mem0.git- Navigate to the demo application folder:
cd mem0/examples/mem0-demo- Install dependencies:
pnpm install- Set up environment variables by creating a
.envfile in the project root with the following content:
OPENAI_API_KEY=your_openai_api_key
MEM0_API_KEY=your_mem0_api_keyYou can obtain your MEM0_API_KEY by signing up at Mem0 API Dashboard. 5. Start the development server:
pnpm run dev Enhancing the Next.js Application
Once the demo is running, you can customize and enhance the Next.js application by modifying the components in the mem0-demo folder. Consider:
- Adding new memory features to improve contextual retention
- Customizing the UI to better suit your application needs
- Integrating additional APIs or third-party services to extend functionality
Full Code
You can find the complete source code for this demo on GitHub: Mem0 Demo GitHub
Conclusion
This setup demonstrates how to build an AI Companion that maintains memory across interactions using Mem0. The system continuously adapts to user interactions, making future responses more relevant and personalized. Experiment with the application and enhance it further to suit your use case!
Node.js Companion with Mem0 \ \ Implement a command-line companion using the Node.js SDK.
Was this page helpful?
YesNo
Choose Vector vs Graph Memory\ \ Previous Build a Node.js Companion\ \ Next
Ctrl+I
Assistant
Responses are generated using AI and may contain mistakes.
Suggestions
How do I set up the demo?How can I customize the UI?What API keys do I need?
