Produce a curated set of recommendations for a recommendations widget. The agent retrieves candidates related to an anchor product, then selects and orders them for this shopper, writing a title for the set and, where useful, a short explanation of why these products go together. It also returns refinement options, so a shopper can narrow the set without leaving the widget: pass the chosen one back as shopper_input on the next request. Nothing else is needed on the first render, which is the usual way to call this mode. parameters.strategy names the configured pod to run, which decides what kind of set this is — complements, alternatives, or another relationship the index key has configured. page_context.item_id is the anchor product it is built around, and page_context.filters scope the candidates to the facets the shopper already has active. Results stream back as server-sent events (text/event-stream) so the agent's reply can be rendered as it is produced. To receive the finished reply as a single JSON document instead, send Accept: application/json.
post
https://agent.cnstrc.com/v1/agent_insights/recommendations