Skip to main content

Code

cookbook/05_agent_os/interfaces/whatsapp/agent_with_user_memory.py

Usage

1

Set up your virtual environment

2

Set Environment Variables

See the WhatsApp Bot 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
  • HackerNews: Access to current information during conversations
  • Personalized Responses: Uses stored memories for contextualized replies
  • Friendly AI: Acts as personal AI friend with engaging conversation
  • Gemini Powered: Fast, intelligent responses with multimodal capabilities