Sign in Publish
contextetech/

JSON schema: classify a support ticket

v1
Contexte Tech

254 publication(s) · 320 uses

Instruction English License: MIT updated 2 days ago
# JSON schema: classify a support ticket
code: q0zn5w | type: schema | language: en | licence: MIT | version: v1
description: JSON Schema to classify a support ticket: category, priority, sentiment, one-sentence summary and next action for the support team.
page: https://contextetech.com/en/schemas/classify-support-ticket-q0zn5w
mcp: connect https://contextetech.com/mcp then call load_resource with code "q0zn5w" (or ask "load q0zn5w")
json: https://contextetech.com/api/resources/contextetech--classify-support-ticket
python: pip install contexte && contexte get q0zn5w
citation (required by the licence): contextetech. (2026). JSON schema: classify a support ticket (Version 1) [Output schema]. Contexte Tech. https://contextetech.com/en/schemas/classify-support-ticket-q0zn5w

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

Output example

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

No comments yet. Share your feedback, it will help the next person.