{
  "version": "harbor-desk-routing-native-v2",
  "questions": {
    "queue": {
      "type": "choice",
      "instructions": "Choose the one HarborDesk queue that directly owns `ticket.latestMessage`. Choose review when required facts are missing, evidence conflicts, or more than one team must act.",
      "criteria": {
        "billing": "Invoices, charges, payment failures, or refund requests",
        "technical": "A product malfunction or service availability problem",
        "account": "Sign-in, identity, membership, or account security",
        "sales": "A new purchase, plan comparison, or commercial evaluation",
        "other": "A supported request that belongs to none of the specialist queues",
        "review": "Missing or conflicting facts, multiple owners, or unclear intent"
      }
    },
    "refundIntent": {
      "type": "noul",
      "instructions": "Does `ticket.latestMessage` ask HarborDesk to return money? A quoted request or account fact alone is not the customer's current request.",
      "criteria": {
        "true": "The customer currently requests reversal or return of a charge",
        "false": "The customer does not currently request money returned"
      }
    },
    "currentServiceImpact": {
      "type": "noul",
      "instructions": "Does `ticket.latestMessage` report that the customer currently cannot use an important HarborDesk capability?",
      "criteria": {
        "true": "An important capability is unavailable or unusable now",
        "false": "Impact is resolved, hypothetical, minor, or not stated"
      }
    },
    "needsClarification": {
      "type": "noul",
      "instructions": "Are facts required to select one owning queue absent or mutually conflicting in `ticket` and `facts`?",
      "criteria": {
        "true": "A required fact is absent or evidence points to incompatible owners",
        "false": "The available evidence supports one owning queue"
      }
    },
    "frustration": {
      "type": "score",
      "instructions": "Rate the frustration expressed in `ticket.latestMessage` using only the customer's wording.",
      "criteria": [
        "Neutral request or factual report",
        "Explicit dissatisfaction or impatience",
        "Strong anger or repeated urgent demands",
        "Hostile wording or a threat directed at support staff"
      ]
    }
  }
}
