GET
/
intent
/
byTicketId
/
{ticketId}
curl --request GET \
  --url https://demo.enneo.ai/api/mind/intent/byTicketId/{ticketId}
{
  "ticketId": 376189,
  "intentsFound": 1,
  "aiOutcome": "agentAssist",
  "intents": [
    {
      "id": 1211221,
      "code": "process_meter_reading",
      "name": "Process a meter reading",
      "contractId": 746839,
      "confidence": 0.95,
      "confidenceColor": "warning",
      "verified": false,
      "context": {},
      "messagePreview": "We have successfully processed your meter reading",
      "recipient": "john@smith.com",
      "tags": "prePopulated",
      "data": {},
      "options": [
        {
          "type": "enter_into_system",
          "name": "Eintragen",
          "icon": "check",
          "recommended": true,
          "order": 1
        },
        {
          "type": "ignore",
          "name": "Ignorieren",
          "icon": "cancel",
          "recommended": false,
          "order": 2
        },
        {
          "type": "forward_to_vnb",
          "name": "An VNB verweisen",
          "icon": "questionMark",
          "recommended": false,
          "order": 3
        }
      ],
      "infos": [
        {
          "type": "warning",
          "message": "Reading is plausible",
          "extraInfo": "Expected reading was 421 kWh. Plausbible because difference to 317 kWh is below threshold of 200 kWh"
        }
      ],
      "extraInfo": null,
      "outcome": {
        "aiAgentId": 1,
        "success": true,
        "messageLocalized": "Powercloud accepted meter reading",
        "internalData": {
          "requestEndpoint": "saveReadingByContractId",
          "requestParams": "readingValue=21;date=2022-12-31"
        },
        "executedAt": "2022-12-13 22:18:06",
        "userId": 1,
        "sent": true,
        "ticketClosed": true,
        "recipient": "john@smith.com",
        "message": "We successfully processed your meter reading of 21 kWh dated Dec 31, 2022",
        "template": "<p>Dear John,</p><p>%MESSAGE%</p><i>Mike from your service team</i>",
        "sources": [
          {
            "type": "knowledgeSource",
            "id": 376189,
            "name": "Opening hours",
            "url": "https://company.com/faq/376189",
            "text": "Our service hours are from 8am to 5pm. We are closed on weekends. [...]"
          }
        ],
        "txId": "c916167c94"
      }
    }
  ]
}

Authorizations

connect.sid
string
cookie
required

Cookie-based authentication

Path Parameters

ticketId
integer
required

The id of the ticket for which the intents should be retrieved

Response

200
application/json
Successful operation
ticketId
integer
intentsFound
integer

Number of intents found

aiOutcome
enum<string>

Outcome of the AI's detected processing 1) noDetection: AI did not find anything useful 2) customerDetected: AI detected the customer, but nothing else 3) agentAssist: AI detected an intent, but is not confident enough to excecute it without additional support 4) full: AI fully resolved the issue. No agent interaction needed any more

Available options:
noDetection,
customerDetected,
agentAssist,
full
intents
object[]

An intent of a customer that he wants to be resolved by contacting us