Handling Experiment Response
Handling Server-Side Experiment Responses#
The Choose API returns the chosen experiment or personalization result for a given user.⚠️ Important:
Intempt only provides the experiment decision.
Your backend must interpret and apply the result.
Applying Variations in Your Backend#
1. Updating text or UI#
If the variation contains a modified headline:Replace the headline before rendering the page.
2. Using feature flags#
If the variation body includes values such as:Your server applies these configurations before sending the response.3. Using structured personalization data#
If the payload includes product recommendations:"products": [
{ "title": "...", "price": "...", "category": "..." }
]
Insert them directly into:A server-rendered HTML block
Summary#
Use the Choose API to fetch experiment or personalization results.
Identify users via sourceId + profileId or userId.
Request variations by names or groups.
Apply the returned values in your backend — Intempt does not modify your UI automatically.
Modified at 2025-12-03 13:41:45