Agent Academy

Agent Academy is a free, source-linked library of skills, prompts, MCP servers and bot templates, organised into courses by profession, for people who hand real work to AI agents: 1,467 live resources, each with its original link, license and safety tags.

Tutorial

2_1_support_ticket_agent

A structured output agent demonstrating Pydantic schema-based responses for customer support ticket creation.

No credentialsDoes not send

https://github.com/Shubhamsaboo/awesome-llm-apps/tree/main/ai_agent_framework_crash_course/openai_sdk_crash_course/2_structured_output_agent/2_1_support_ticket_agent

Original content

Full originalApache-2.0Source

Republished in full under its license, with attribution. The source is authoritative.

Support Ticket Agent

A structured output agent demonstrating Pydantic schema-based responses for customer support ticket creation.

🎯 What This Demonstrates

  • Structured Output: Using Pydantic models to define response schemas
  • Enum Types: Priority levels with controlled values
  • Optional Fields: Flexible schema with required and optional properties
  • Field Validation: Input validation and description metadata

🚀 Quick Start

  1. Install OpenAI Agents SDK:

```bash

pip install openai-agents

```

  1. Set up environment:

```bash

cp ../env.example .env

# Edit .env and add your OpenAI API key

```

  1. Run the agent:

```python

from agents import Runner

from agent import root_agent

result = Runner.run_sync(root_agent, "I can't log into my account and it's urgent!")

print(result.final_output) # Returns SupportTicket object

```

💡 Key Concepts

  • Pydantic Models: Defining structured response schemas
  • Enum Validation: Priority levels (low, medium, high, critical)
  • Field Descriptions: Helping the LLM understand field requirements
  • Optional Fields: Handling optional vs required data

🧪 Example Usage

# The agent will return a SupportTicket object like:
{
    "title": "Account Login Issue",
    "description": "User unable to access account",
    "priority": "high",
    "category": "account_access",
    "steps_to_reproduce": ["Go to login page", "Enter credentials", "Error occurs"],
    "estimated_resolution_time": "2-4 hours"
}

🔗 Next Steps

  • [Product Review Agent](../2_2_product_review_agent/README.md) - Complex structured output
  • [Email Generator Agent](../README.md) - Simple structured output
  • [Tutorial 3: Tool Using Agent](../../3_tool_using_agent/README.md) - Adding tools to agents

Related

TutorialCustomer service

3_1_customer_support_ticket_agent

A tutorial demonstrating how to implement a structured customer support ticketing system using Google's ADK (Agent Development Kit) framework. This example shows how to create type-safe, structured support tickets with priority levels, categories, and resolution estimates using Pydantic schemas and

Sourcegithub.com/Shubhamsaboo/awesome-llm-apps/tree/main/ai_agent_framework_crash_course/google_adk_crash_course/3_structured_output_agent/3_1_customer_support_ticket_agent

No credentialsDoes not sendApache-2.0
CaseCustomer service

ai_customer_support_agent

This Streamlit app implements an AI-powered customer support agent for synthetic data generated using GPT-4o. The agent uses OpenAI's GPT-4o model and maintains a memory of past interactions using the Mem0 library with Qdrant as the vector store.

Sourcegithub.com/Shubhamsaboo/awesome-llm-apps/tree/main/advanced_ai_agents/single_agent_apps/ai_customer_support_agent

No credentialsDoes not sendApache-2.0
TutorialCustomer service

Using tool_choice=required for customer service (OpenAI cookbook)

Using Tool Required for Customer Service The ChatCompletion endpoint now includes the ability to specify whether a tool must be called every time, by adding tool_choice='required' as a parameter. This adds an element of determinism to how you build your wrapping application, as you can count on a to

Sourcegithub.com/openai/openai-cookbook/blob/main/examples/Using_tool_required_for_customer_service.ipynb

No credentialsDoes not sendMIT
TutorialCustomer service

Customer service agent with tool use (Claude cookbook)

Creating a Customer Service Agent with Client-Side Tools In this recipe, we'll demonstrate how to create a customer service chatbot using Claude 3 plus client-side tools. The chatbot will be able to look up customer information, retrieve order details, and cancel orders on behalf of the customer. We

Sourcegithub.com/anthropics/claude-cookbooks/blob/main/tool_use/customer_service_agent.ipynb

No credentialsDoes not sendMIT
Awesome listCustomer service

500 AI Agents Projects (includes customer service use cases)

Curated collection of AI agent use cases across industries (incl. Customer Service, E-commerce) with links to open-source implementations, e.g. a LangGraph customer-support agent tutorial.

Sourcegithub.com/ashishpatel26/500-AI-Agents-Projects

No credentialsDoes not sendMIT
PluginCustomer service

Customer Support plugin (Anthropic knowledge-work-plugins)

A customer support plugin primarily designed for [Cowork](https://claude.com/product/cowork), Anthropic's agentic desktop application — though it also works in Claude Code. Provides ticket triage, escalation management, response drafting, customer research, and knowledge base authoring for support t

Sourcegithub.com/anthropics/knowledge-work-plugins/tree/main/customer-support

No credentialsDoes not sendApache-2.0