Prepare the data
- Ingest the items the placement may show and store their returned integer IDs.
- Include the metadata you need for eligibility and rendering: availability, category, URL and image, for example.
- Confirm a known user event appears in Data → Events with the correct item and event-type IDs.
- Decide the success measure and the event that represents it. A served list, a visible impression, a click and a purchase are different observations.
Configure the context
- Open Relevance → Contexts and create a context from the closest template.
- Give it the placement’s name and record its integer ID.
- On Details, choose Automatic or the trained model you intend to use.
- Review Inputs, Ranking and Safety. Enable only sources for which you have data.
- Add rules for required eligibility and merchandising in Relevance → Rules Engine.
- Save the recipe, enable the context and review readiness.
Integrate and verify
Call your backend with a representative visitor and request the newcontext_id. For related items, provide an integer seed item_id; for a basket rail, provide the basket item IDs through a supported request path.
Verify these cases before sending real traffic:
Use Explainability for the served request and compare it with the current configuration. Recomputing an explanation after editing a context is not a replay of the earlier decision.

