Zum Hauptinhalt springen
POST
/
ticket
/
{ticketId}
/
quality
/
check
Live Quality Coach check on a draft reply
curl --request POST \
  --url https://demo.enneo.ai/api/mind/ticket/{ticketId}/quality/check \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "draftText": "<div>Hallo Susanne, vielen Dank für Ihre Nachricht...</div>"
}
'
{
  "scorecards": [
    {
      "scorecardId": 1,
      "name": "Compliance",
      "percentage": 92,
      "threshold": 90,
      "passed": true,
      "aiSummary": "All required disclaimers present.",
      "categories": [
        {
          "categoryId": 1,
          "label": "Disclaimers",
          "score": 18,
          "maxPoints": 20,
          "criteria": [
            {
              "criterionId": 101,
              "label": "Privacy notice",
              "score": 9,
              "maxPoints": 10,
              "reason": "Mentioned with link.",
              "makeOrBreakForCategory": false,
              "makeOrBreakForAssessment": false
            },
            {
              "criterionId": 102,
              "label": "Legal opt-out",
              "score": 9,
              "maxPoints": 10,
              "reason": "Included verbatim.",
              "makeOrBreakForCategory": true,
              "makeOrBreakForAssessment": false
            }
          ]
        }
      ]
    },
    {
      "scorecardId": 7,
      "name": "Empathy",
      "percentage": 68,
      "threshold": 75,
      "passed": false,
      "aiSummary": "Polite but lacks acknowledgement of frustration.",
      "categories": [
        {
          "categoryId": 5,
          "label": "Customer Orientation",
          "score": 13,
          "maxPoints": 20,
          "criteria": [
            {
              "criterionId": 501,
              "label": "Acknowledgement",
              "score": 5,
              "maxPoints": 10,
              "reason": "Generic apology only.",
              "makeOrBreakForCategory": false,
              "makeOrBreakForAssessment": false
            },
            {
              "criterionId": 502,
              "label": "Tone",
              "score": 8,
              "maxPoints": 10,
              "reason": "Polite but distant.",
              "makeOrBreakForCategory": false,
              "makeOrBreakForAssessment": false
            }
          ]
        }
      ]
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.enneo.ai/llms.txt

Use this file to discover all available pages before exploring further.

Autorisierungen

Authorization
string
header
erforderlich

JWT-based authentication

Pfadparameter

ticketId
integer
erforderlich

Ticket ID

Body

application/json
draftText
string
erforderlich

Draft reply text (HTML allowed) to score

scorecardId
integer

Optional override — score against a specific scorecard revision only. When set, applicability and liveCoach.enabled are ignored; the result always contains exactly one entry. When omitted, every applicable live-enabled scorecard is scored.

Antwort

Live coach evaluation results

scorecards
object[]

One entry per applicable live-enabled scorecard with at least one AI-evaluable criterion. Empty when nothing applies. Ordered by scorecardId ascending.