Sukrit789/shipping-support-agent
shipping-agent
Agent generated with agents-cli version 0.5.0
๐ค What This Agent Does
This project implements an automated Customer Support Representative agent for a shipping company using the Google Agent Development Kit (ADK) 2.0.
- Intelligent Query Classification: When you ask a question, a specialized classification agent analyzes your query to check if it's related to shipping (such as tracking, rates, delivery times, or returns).
- Smart Routing:
- Shipping Queries are routed to a specialized Shipping FAQ agent. Responses concerning shipping rates are enthusiastic, filled with fun emojis, and highlight the FREE shipping threshold on orders over $50.00! ๐๐๐
- Unrelated Queries (e.g., general knowledge questions) are routed to a decline node that politely directs the user back to shipping-related topics.
๐ค Multi-Agent Architecture
This project is built as a multi-agent system using a directed workflow graph. Instead of a single LLM trying to do everything, tasks are split between specialized agents and programmatic logic:
graph TD
START([START]) --> ProcessStart[1. Process Start Node]
ProcessStart --> Classifier[2. Classifier Agent]
Classifier --> Router[3. Router Function]
Router -- "shipping" --> FAQAgent[4a. Shipping FAQ Agent]
Router -- "unrelated" --> DeclineNode[4b. Decline Node]
FAQAgent --> END([END])
DeclineNode --> END([END])- `classifier` Agent: A dedicated
LlmAgenttasked solely with classifying user intents against a structured Pydantic schema. - `shipping_faq_agent` Agent: A dedicated domain-specific
LlmAgenttrained on company policies to provide policy answers in a friendly, enthusiastic style. - Workflow Orchestration: Structural Python nodes (
process_start,router_node, anddecline_node) control the routing and execution flow based on output states.
Project Structure
customer-support-agent/
โโโ app/ # Core agent code
โ โโโ agent.py # Main agent logic
โ โโโ app_utils/ # App utilities and helpers
โโโ tests/ # Unit, integration, and load tests
โโโ GEMINI.md # AI-assisted development guide
โโโ pyproject.toml # Project dependencies๐ก Tip: Use Gemini CLI for AI-assisted development - project context is pre-configured in GEMINI.md.Requirements
Before you begin, ensure you have:
- uv: Python package manager (used for all dependency management in this project) - Install (add packages with
uv add <package>) - agents-cli: Agents CLI - Install with
uv tool install google-agents-cli - Google Cloud SDK: For GCP services - Install
Quick Start
Install agents-cli and its skills if not already installed:
uvx google-agents-cli setupInstall required packages:
agents-cli installTest the agent with a local web server:
agents-cli playgroundYou can also use features from the ADK CLI with uv run adk.
Commands
๐ ๏ธ Project Management
Development
Edit your agent logic in app/agent.py and test with agents-cli playground - it auto-reloads on save.
Deployment
gcloud config set project <your-project-id>
agents-cli deployTo add CI/CD and Terraform, run agents-cli scaffold enhance. To set up your production infrastructure, run agents-cli infra cicd.
Observability
Built-in telemetry exports to Cloud Trace, BigQuery, and Cloud Logging.
