Retrieve by intent
Retrieve AI-powered product discovery suggestions based on conversational free-form text. Returns results in small batches using a real-time Server-sent Events stream for a dynamic user experience.
Request
- Base URLhttps://agent.cnstrc.com
- URLhttps://agent.cnstrc.com/v1/intent/{query}
- Authnone required
Path parameters
The query provided by the user as free-form text.
Query parameters
The key of the index to use.
A unique identifier for the conversation thread. This ID links multiple requests to the same conversation.
A URL-encoded JSON string containing filters (inaccessible to end users) used to narrow the result set. Applied before filters accessible to end users. Does not affect facet counts. Only results that match the filters are returned. More details on https://docs.constructor.com/reference/shared-pre-filter-expressions
The domain specifying a set of specific instructions for processing the intent, e.g., 'recipes', 'sportsgear'.
Turn the content moderation check on or off. When on, shopper input is screened before the agent processes it.
The maximum number of result events to return.
Deprecated. Please, use num_results_per_event instead.
The maximum number of results to return per search_result event.
An object containing options to format different aspects of the response.
A URL-encoded JSON string. More details on https://docs.constructor.com/reference/search-search-results#using-the-qs-parameter
The ID of the client and version that the request is coming from, such as cio-js-2.90.
A customer defined context (such as vip-club-member) used to evaluate redirect or refined tag rules. Pass multiple segments by passing multiple us arguments.
A customer generated anonymized identifier for a user on a customer website. It should only be sent for logged in customers and helps constructor to tie multiple client and session ID's together to form a behavioral data profile across devices.
An integer representing the user's session number (starting with 1), incremented after a 30 minute period of inactivity.
A globally unique identifier for the user browser (or mobile application instance) making the request.
Response
SSE stream containing a series of events with discovered items or AI generated textual messages.
Changes
No recorded changes to this operation across all 1 revision of this API.