A customer support chatbot with persistent memory capabilities using Mem0 and LangGraph.
- Conversational AI powered by GPT-4o via LangChain
- Memory Management using Mem0 with Pinecone vector database
- Intelligent Memory Operations: Automatically adds, updates, or deletes user information based on conversation context
- Personalized Responses: Retrieves relevant past conversations to provide context-aware support
The chatbot uses LangGraph to orchestrate the conversation flow. For each user message, it:
- Searches for relevant memories from past conversations
- Generates a personalized response using the retrieved context
- Decides whether to add, update, or delete memory based on new information shared
- Install dependencies:
uv sync- Create a
.envfile with your API keys:
OPENAI_API_KEY=your_key
PINECONE_API_KEY=your_key
MEM0_API_KEY=your_key if want to to use mem0-platform- Run the notebook
bot.ipynb
- LangChain - LLM framework
- LangGraph - Conversation flow orchestration
- Mem0 - Memory management layer
- Pinecone - Vector database for storing memories
- GPT-4o - Language model