younifyd
Menu

Post Classify

Request classifications

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

Use it in a workflow

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

Request

Path parameters

organizationIdstringrequired

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

caseAssistIdstringrequired

The unique identifier of the target case assist configuration.<br /><b>Example:</b> `812efd5e-a7e3-49d5-8f1d-81be8e739b70`

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.

analyticsobject
actionCausestring

The type of operation that triggered this event. See [Standard actions and Usage Analytics reference](docs.coveo.com/en/1389)).

captureboolean

Whether the search api call should be tracked for analytics and machine learning purposes. When set to `true`, be sure to set the `actionCause` parameter. See [Standard actions and Usage Analytics reference](docs.coveo.com/en/1389)).

clientIdstring

A GUID which represents the current client. If your implementation uses the Atomic or Headless libraries, or newer versions of the JavaScript Search Framework, then the [client ID](https://docs.coveo.com/en/masb0234/) is generated automatically in client-side code. This GUID is held in a browser's local storage as well as a top level domain first-party cookie (`coveo_visitorId`) that expires after 1 year. **Note:** The cookie takes precedence over the value in the browser's local storage. If you have a custom Coveo implementation, you will have to generate a [UUID v4](<https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_4_(random)>)-formatted GUID. You will need to send this ID as `analytics.clientId` in every event that is sent to Coveo UA and the Search API. Coveo Machine Learning models may use this information to provide contextually relevant output. **Note** The `clientId` replaces the deprecated `visitorId`. For compatibility, the cookie and local storage values are still named `coveo_visitorId`.

clientRequestIdstring

A GUID generated by the client representing the current request. This information is used to identify operations across different apis related to the same request.

clientTimestampstring

Client ISO 8601 timestamp with milliseconds.

configIdstring

An optional external reference to a use-case specific search configuration. These configurations are maintained by LOBs and the search api has no knowledge of them. This field can be used by LOBs to break down search statistics in LOB specific reporting. This field is not present on non-captured search calls.

customDataobject

The user defined dimensions and their values. Keys can only contain alphanumeric or underscore characters. Whitespaces in keys are converted to underscores. Uppercase characters in keys are converted to lowercase characters. The value could be any valid JSON, but it is handled as string over Coveo usage analytics. It is highly recommended that you create your custom dimension before adding customData

documentLocationstring

The URL of the current page or component. If not present, the referrer is obtained from the [Referer](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer) header. **Note**: This information can be obtained from `coveo.analytics.js`.

documentReferrerstring

Typically the URL of the page that linked to the search interface from which the request originates (e.g., in JavaScript, this would correspond to the `document.referrer` value). Coveo Machine Learning models may use this information to provide contextually relevant output. **Note**: This information can be obtained from `coveo.analytics.js`.

originContextstring

The origin of the event. Used to specify the deployment from which the user performs the action. Suggested values are Search, InternalSearch, CommunitySearch, or the originLevel1 value

pageIdoneOf

A GUID representing the page ID. **Note**: This information can be obtained from `coveo.analytics.js`.

sourcearray<string>

Defines one or more client side libraries that generated the analytics event. The format should be the library's name followed by '@', and then the version. For example, '[custom.library.js@2.0.0]'.

trackingIdstring

A value to identify which web property an event is related to.

userAgentstring

The user agent of the request. If not present, the user agent is obtained from the [User-Agent](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent) header. **Note**: This information is required when endpoints are behind a proxy.

userIdstring

The ID of the user who is currently logged in. If not present, this ID is obtained from the authentication token.

userIpstring

The user IP. If not present, the IP is obtained from the [X-Forwarded-For](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For) and [Forwarded](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Forwarded) headers. **Note**: This information is required when endpoints are behind a proxy. **Example**: `127.0. 0.1`

clientIdstring

The <a href="https://docs.coveo.com/en/masb0234/"><code>clientId</code><a> identifies a user on a browser of a Coveo-powered search page and provides insight into the events they performed

contextobject

A dictionary where each key is the name of a context attribute that pertains to the target case, and each value is a string that describes the content of that context attribute.

fieldsobject

A dictionary where each key is the name of a field that pertains to the target case, and each value is an object that describes the content of that field.<br /><b>Example:</b> `{"subject": {"value": "GC3000 won't start"}, "description": {"value": "My GC3000 series propane generator won't start"}`}

localestring

<p>The locale of the current user. Must comply with IETF's <a href="http://www.rfc-editor.org/rfc/bcp/bcp47.txt">BCP 47</a> definition.</p> <p>Coveo Machine Learning models use this information to provide contextually relevant output. Moreover, this information can be referred to in query expressions and QPL statements by using the <code>$locale</code> object.</p> <p><strong>Note:</strong> When logging a Search Usage Analytics event, the <code>language</code> field of that event should match the language part of the <code>locale</code> value of the query (e.g., <code>en-US</code> in <code>locale</code> becomes <code>en</code> in <code>language</code>).</p>

visitorIdstring

<p>A GUID which represents the current user, who can either be authenticated or anonymous.</p> <p><code>visitorId</code> is deprecated and has been replaced by <a href="https://docs.coveo.com/en/masb0234/"><code>clientId</code><a> in newer versions of the Coveo UI libraries. For compatibility, the new first-party cookie and local storage values are still named <code>coveo_visitorId</code>.</p> <p>For older versions of the JavaScript Search Framework, the visitor ID is generated by the Coveo Usage Analytics service and stored in a non-expiring third-party cookie. <strong>Note:</strong> Third-party cookies <a href="https://docs.coveo.com/en/m54b9238/">have also been deprecated</a>. This is unrelated to the deprecation of <code>visitorId</code>.</p>

json
{
  "analytics": {
    "actionCause": "facetSelect",
    "capture": false,
    "clientId": "string",
    "clientRequestId": "string",
    "clientTimestamp": "string",
    "configId": "string",
    "customData": {},
    "documentLocation": "string",
    "documentReferrer": "string",
    "originContext": "CommunitySearch",
    "pageId": null,
    "source": [
      "string"
    ]
  },
  "clientId": "5cb98953-9c13-42ff-8176-e6fcba6a50bf",
  "context": {
    "product": "Propane Generator",
    "subproduct": "GC3000 Series"
  },
  "fields": {
    "description": {
      "value": "My GC3000 series propane generator won't start"
    },
    "subject": {
      "value": "GC3000 won't start"
    }
  },
  "locale": "en-US",
  "visitorId": "5cb98953-9c13-42ff-8176-e6fcba6a50bf"
}

Response

Returns 200 with an object. Read it in later steps with {{postClassify.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.