younifyd
Menu

Post Classify Preview

Request classifications preview

POST/rest/organizations/{organizationId}/caseassists/preview/classify

Use it in a workflow

  1. Add a step and choose the Coveo connector.
  2. Pick the Post Classify Preview action (under Customer Service).
  3. Fill in the fields below, then reference the result from later steps as {{postClassifyPreview.response.data}}.

Request

Path parameters

organizationIdstringrequired

The unique identifier of the target [organization](https://docs.coveo.com/en/185/).<br /><b>Example:</b> `mycoveocloudv2organizationg8tp8wu3`

Query parameters

debugboolean

Whether to include an execution report for debugging purposes.

Default false

Request body

Enter the body as JSON in the step's Body field.

allOfany
configurationobjectrequired

A mock case assist configuration to test a case classification configuration.

classificationConfigurationsarray<object>3 fields
namestringrequired

The name of the case assist configuration.<br />

json
{
  "configuration": {
    "name": "myCaseAssistConfiguration",
    "classificationConfigurations": [
      {
        "fieldsToPredict": [
          {
            "name": "opportunitytype"
          },
          {
            "name": "issuetype"
          }
        ],
        "filter": "@objecttype==case",
        "strategy": "Some"
      }
    ]
  },
  "allOf": null
}

Response

Returns 200 with an object. Read it in later steps with {{postClassifyPreview.response.data.<field>}}.

fieldsobject
responseIdstring

The unique identifier of the response.

json
{
  "fields": {
    "issuetype": {
      "predictions": [
        {
          "confidence": 0.8325673948382833,
          "id": "7ac53b91-afd2-5472-8f6d-e829a0a8232f",
          "value": "Ignition"
        },
        {
          "confidence": 0.5364940382730438,
          "id": "7cf52516-3dc6-5a1a-ba2e-d05b0c255c1c",
          "value": "Controller"
        }
      ]
    },
    "opportunitytype": {
      "predictions": [
        {
          "confidence": 0.9178082346916199,
          "id": "c38dec1f-349e-5dc1-bc24-4de96dc53bbd",
          "value": "Propane"
        }
      ]
    }
  },
  "responseId": "123e4567-e89b-12d3-a456-426614174000"
}

Need more? See the Coveo guide for connection setup and behaviour shared by every action.