Pick the Insight Panel Query Suggest action (under Customer Service).
Fill in the fields below, then reference the result from later steps as {{insightPanelQuerySuggest.response.data}}.
Request
Path parameters
organizationIdstringrequired
The unique identifier of the target [organization](https://docs.coveo.com/en/185/).<br /><b>Example:</b> `mycoveocloudv2organizationg8tp8wu3`
configIdstringrequired
The unique identifier of the Insight Panel configuration.
Request body
Enter the body as JSON in the step's Body field.
actionsHistoryarray<object>
<p>The previous query and page view actions made by the current user.</p> <p>Coveo Machine Learning Content Recommendation models use this information to provide contextually relevant output.</p> <p><strong>Note:</strong> Page view actions are typically populated by the <a href="https://github.com/coveo/coveo.analytics.js">coveo.analytics.js</a> script.</p>
namestringrequired
The action history event name.
Possible values:
- **Query**
- **PageView**
timestringrequired
The time when the action history event was sent from the client.
valuestring
The action history value, which is either a query expression or a page URI, depending on the action history event `name`.
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`
contextobject
<p>The custom context information to send along with the request. Must be a dictionary of key-value pairs (JSON) where each key is a string, and each value is either a string or an array of strings.</p> <p>Coveo Machine Learning models may 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>$context</code> object.</p> <p><strong>Note:</strong> When logging a Search Usage Analytics event for a query, the <code>customData</code> field of that event should include the same data as the <code>context</code> parameter of the query. However, each <code>context</code> key included in <code>customData</code> must be prefixed by <code>context_</code> (e.g., the <code>userRoles</code> key in context becomes <code>context_userRoles</code> in <code>customData</code>).</p> <p>See also the <code>referrer</code> parameter.</p>
countinteger
The desired number of query suggestions.
debugboolean
<p>Whether to force a successful response to include debug information.</p> <p> Notes: <ul> <li>Debug information can only appear in responses in the JSON format (see the <code>format</code> parameter).</li> <li>Avoid setting this parameter to <code>true</code> in production, as it has a negative impact on query performance.</li> </ul> </p>
Default false
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>
maximumAgeinteger
<p>The maximum age of cached results, in milliseconds.</p> <p>If the results of a specific request are available in the cache, and if those results are no older than the <code>maximumAge</code> value, the service returns those results rather than forwarding a new query to the index.</p> <p><strong>Note:</strong> This parameter is automatically overridden when <code>staticQuery</code> is set to <code>true</code>.</p>
qstring
The basic query expression, typically the keywords entered by the end user in a query box.
timezonestring
<p>The <a href="https://en.wikipedia.org/wiki/List_of_tz_database_time_zones">tz database</a> identifier of the time zone to use to correctly interpret dates in the query expression and result items.</p> <p>If not specified, the default time zone of the server hosting the index is used.</p> <p><strong>Note:</strong> While no Coveo Machine Learning models use this information, it can nevertheless affect the ranking scores (and thus, potentially the order) or result items, as ranking expressions may be based on time constants.</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>