CoolFace
Apppublic

Sukrit789/shipping-support-agent

sourceHugging Faceupdated 3mo agoView on Hugging Face
0likes
App README

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.

  1. 1.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).
  2. 2.Smart Routing:
  3. 3.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! ๐Ÿšš๐Ÿš€๐ŸŽ‰
  4. 4.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:

mermaid
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 LlmAgent tasked solely with classifying user intents against a structured Pydantic schema.
  • โ€”`shipping_faq_agent` Agent: A dedicated domain-specific LlmAgent trained on company policies to provide policy answers in a friendly, enthusiastic style.
  • โ€”Workflow Orchestration: Structural Python nodes (process_start, router_node, and decline_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:

bash
uvx google-agents-cli setup

Install required packages:

bash
agents-cli install

Test the agent with a local web server:

bash
agents-cli playground

You can also use features from the ADK CLI with uv run adk.

Commands

CommandDescription
agents-cli installInstall dependencies using uv
agents-cli playgroundLaunch local development environment
agents-cli lintRun code quality checks
agents-cli evalEvaluate agent behavior (generate, grade, analyze, and more โ€” see agents-cli eval --help)
uv run pytest tests/unit tests/integrationRun unit and integration tests

๐Ÿ› ๏ธ Project Management

CommandWhat It Does
agents-cli scaffold enhanceAdd CI/CD pipelines and Terraform infrastructure
agents-cli infra cicdOne-command setup of entire CI/CD pipeline + infrastructure
agents-cli scaffold upgradeAuto-upgrade to latest version while preserving customizations

Development

Edit your agent logic in app/agent.py and test with agents-cli playground - it auto-reloads on save.

Deployment

bash
gcloud config set project <your-project-id>
agents-cli deploy

To 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.