IT
Accedi Pubblica
contextetech /

JSON schema: classify a support ticket

v1
Modello di destinazione : Generale (tutti i modelli) Inglese Licenza: MIT Pubblicato il aggiornato 1 ora fa 0 utilizzi

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"
    }
  }
}

Esempio di output

{
  "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

Ancora nessun commento. Condividi la tua esperienza, aiuterà chi viene dopo.