younifyd
Menu

Get Suggest Document Preview

Request document suggestions preview

POST/rest/organizations/{organizationId}/caseassists/preview/documents/suggest

Use it in a workflow

  1. Add a step and choose the Coveo connector.
  2. Pick the Get Suggest Document Preview action (under Customer Service).
  3. Fill in the fields below, then reference the result from later steps as {{getSuggestDocumentPreview.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

numberOfResultsinteger (int32)

The maximum number of results to return.<br />**Must be in range:** `[1, 100]`

Default 5

Request body

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

allOfany
configurationobjectrequired

A mock case assist configuration to test a document suggestions configuration.

documentSuggestionConfigurationobject3 fields

A document suggestions configuration.

namestringrequired

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

json
{
  "configuration": {
    "name": "myCaseAssistConfiguration",
    "documentSuggestionConfiguration": {
      "filter": "@objecttype==case",
      "pipeline": "myPipelineName",
      "strategy": "ITD"
    }
  },
  "allOf": null
}

Response

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

documentsarray<object>

The document suggestions.

clickUristringrequired

The document clickable URI.

excerptstringrequired

An excerpt from the document.

fieldsobjectrequired3 fields

The `raw` fields of the item.

hasHtmlVersionbooleanrequired

Whether the index contains an HTML version of this item.

titlestringrequired

The document title.

uniqueIdstringrequired

The unique ID of the document.

responseIdstring

The unique identifier of the response.

totalCountinteger (int32)

The total number of suggestions.

json
{
  "documents": [
    {
      "clickUri": "http://www.salesforce.com/org:organization/object:Solution/record:5013h000000tPmnAAE",
      "excerpt": "The GC3000 series propane generators need to be started up using the following process if the ignition fails at the first try",
      "fields": {
        "...": "...",
        "title": "GC3000 Series Propane Generator Ignition",
        "urihash": "EFQOedWwU1M5af37"
      },
      "hasHtmlVersion": true,
      "title": "GC3000 Series Propane Generator Ignition",
      "uniqueId": "84.72597$http://www.salesforce.com/org:organization/object:Solution/record:5013h000000tPmnAAE:2"
    }
  ],
  "responseId": "123e4567-e89b-12d3-a456-426614174000",
  "totalCount": 1
}

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