Skip to main content

Code

agent_with_user_memory.py

Usage

1

Set up your virtual environment

2

Set Environment Variables

See the WhatsApp setup guide for how to get these values from the Meta Developer Dashboard.
3

Install dependencies

4

Run Example

Key Features

  • Memory Management: Remembers user names, hobbies, preferences, and activities
  • Web Search: Access to current information during conversations
  • Personalized Responses: Uses stored memories for contextualized replies
  • Friendly AI: Acts as a personal AI friend that asks about the user’s hobbies and interests
  • Gemini Powered: Uses Gemini for both the agent and the memory manager