Skip to main content
Part of the Telegram interface examples. Follow the setup guide.

Code

agent_with_user_memory.py

Usage

1

Set up your virtual environment

2

Set Environment Variables

3

Install dependencies

4

Run Example

The bot needs a public webhook URL to receive messages. See Telegram setup.

Key Features

  • Agentic Memory: MemoryManager captures user preferences, hobbies, and personal details
  • Cross-Session Recall: Remembers user information across conversations
  • Web Search: Uses WebSearchTools to find up-to-date information during conversations
  • Persistent Storage: SQLite database for both sessions and memory