Skip to main content

Overview

A customer support agent that combines all learning stores to provide faster resolutions over time. Uses namespace isolation for multi-tenant deployments where different organizations share the system but have separate knowledge.

Code

support_agent.py

How It Works

  • User Profile: Tracks customer history and preferences
  • Session Context: Manages current ticket with goal/plan/progress
  • Entity Memory: Stores product info, past tickets, shared across organization
  • Learned Knowledge: Saves successful solutions for future retrieval
Key pattern: The namespace=f"org:{org_id}:support" isolates entity memory per organization while the learned knowledge base can be shared globally or per-org.

Run This Example

Full source: agno/cookbook/08_learning/07_patterns/support_agent.py