Resolve customer requests with specialist routing, product knowledge, controlled actions, and human escalation.
Support and product teams use agents when resolving a request requires conversation history, approved product knowledge, live customer data, or actions in another system. Agno combines persistent sessions, specialist teams, tools, approval gates, and human escalation in one runtime.
support_team.py
from agno.agent import Agentfrom agno.db.sqlite import SqliteDbfrom agno.team import Teammodel = "openai:gpt-5.5"billing = Agent( name="Billing Support", role="Answer questions about invoices, payments, subscriptions, and refunds.", model=model,)technical = Agent( name="Technical Support", role="Diagnose product errors and provide troubleshooting steps.", model=model,)support_team = Team( name="Customer Support", model=model, members=[billing, technical], db=SqliteDb(db_file="tmp/support.db"), add_history_to_context=True, num_history_runs=5, instructions=[ "Route each request to the relevant specialist.", "Consult both specialists when an issue crosses billing and product behavior.", ],)support_team.print_response( "My card was charged twice after checkout returned HTTP 500.", user_id="customer-42", session_id="ticket-1842",)
Create a virtual environment, install the OpenAI and SQLite integrations, and set OPENAI_API_KEY before running the team:
The team can consult both specialists for this request. Reuse the session_id for later messages on the same ticket and the user_id for the same customer. Add confirmation-required tools before permitting account changes or refunds.
Teams let the model choose the relevant specialist. Workflows encode branches and required steps in code. A support system can use a workflow for intake and escalation, with a team inside a step for specialist investigation.