Skip to content
AX Framework

Examples

Customer Support

Ticket creation, status, escalation, and handoff to humans.

Customer support is where agents meet both sides: a customer's agent contacting a company, and a company's own systems responding. This example covers a fictional support product that serves agents acting for customers.

Illustrative example

Tasks

  • "Tell the airline my bag didn't arrive and get a reference number."
  • "Check whether my refund has been processed."
  • "Escalate this to a human; the last answer didn't help."

Structured tickets

Instead of a free-text contact form, the product exposes create_ticket with typed categories and required fields per category:

json
{
  "name": "create_ticket",
  "description": "Open a support case. Required fields depend on the category.",
  "input": {
    "category": ["delayed_baggage", "refund_status", "booking_change", "other"],
    "requiredByCategory": {
      "delayed_baggage": ["bookingReference", "flightNumber", "bagTagNumber", "deliveryAddress"]
    }
  },
  "returns": "ticket with reference, status, and expected first response time"
}

The agent learns what to collect before it contacts support, so the customer is asked for everything once.

Status as data

json
{
  "reference": "BAG-88213",
  "status": "located",
  "statusHistory": [
    { "status": "opened", "at": "2026-10-04T09:12:00Z" },
    { "status": "located", "at": "2026-10-05T17:40:00Z", "note": "Bag located at FRA; on flight LH1166." }
  ],
  "nextUpdateBy": "2026-10-06T18:00:00Z",
  "actions": [{ "name": "update_delivery_address", "available": true }, { "name": "escalate", "available": true }]
}

Handoff to people

Escalation is a first-class action, not a failure. escalate hands the case to a human with the full structured history, and returns who will respond and when. The customer's agent can tell them exactly what happens next.

Last updated 2026-10-06. AX Framework documentation describes proposals unless a section is marked as an established standard.