DE
Anmelden Veröffentlichen
contextetech /

JSON schema: classify a support ticket

v1
Zielmodell : Allgemein (alle Modelle) Englisch Lizenz: MIT Veröffentlicht am aktualisiert vor 1 Stunde 0 Nutzungen

JSON Schema to classify a support ticket: category, priority, sentiment, one-sentence summary and next action for the support team.

Read the customer's message and classify it. Priority is high when the customer is blocked or threatens to cancel.

JSON Schema

{
  "type": "object",
  "required": [
    "category",
    "priority",
    "summary"
  ],
  "properties": {
    "summary": {
      "type": "string",
      "description": "One sentence"
    },
    "category": {
      "enum": [
        "billing",
        "technical",
        "shipping",
        "account",
        "other"
      ],
      "type": "string"
    },
    "priority": {
      "enum": [
        "low",
        "normal",
        "high"
      ],
      "type": "string"
    },
    "sentiment": {
      "enum": [
        "positive",
        "neutral",
        "negative"
      ],
      "type": "string"
    },
    "next_action": {
      "type": "string",
      "description": "What the support team should do"
    }
  }
}

Beispielausgabe

{
  "category": "shipping",
  "priority": "high",
  "sentiment": "negative",
  "summary": "Package marked as delivered but never received.",
  "next_action": "Open a carrier claim and offer a replacement."
}

Community

Noch keine Kommentare. Teile deine Erfahrung, sie hilft den Nächsten.