---
title: "Use a decision model in a web experiment"
slug: "use-a-decision-model-in-a-web-experiment"
abstract: "Details how to use a decision model to return offers and content to a web experiment."
---
# Use a decision model in a web experiment

You can use a decision model for a web experiment that requires a fair amount of logic to determine the next best offer or action. For example, if you want to show an offer that takes into account customer lifetime value, propensity models, real-time inventory levels, and integrates with your Content Delivery Network (CDN) to display the best offer, you can create a web experiment that uses a decision model.

Using a decision model in a web experiment is optional. For example, you do not need a decision model if you want to use a web template to create a corner pop-up offer on your homepage alerting guests about your new product offerings.

To use a decision model in a web experiment:

1. On the experiment builder, click the **Decisioning** tile.

    Additional fields display.

2. Click **Add decision model**.
3. In the **Decisioning** pane, click the decision model you want the experiment to run. The experiment only potentially runs any decision model variants in a state of production that are configured to use this decision model.

    Alternatively, to [create a decision model](https://doc.sitecore.com/personalize/en/users/sitecore-personalize/introduction-to-decisioning-in-sitecore-personalize/managing-decision-model-variants-in-sitecore-personalize/create-a-decision-model-variant.html "Create a decision model variant"), click **Create decision model**.

4. Click ![close_details_widget.png](https://doc.sitecore.com/api/markdown-image/personalize/en/users/sitecore-personalize/images/close_details_widget.png) to close the pane.
5. Edit the [API request](https://doc.sitecore.com/personalize/en/users/sitecore-personalize/introduction-to-experiments-in-sitecore-personalize/introduction-to-web-experiments-in-sitecore-personalize/compose-the-api-request-for-a-web-experiment.html "Compose the API request for a web experiment") to include the output of the decision model. This is the offer or content you want to include in the experiment.

> [!note]
> For a decision model to be made available in the **Decisioning** pane, at least one of its decision model variants must [have a state of production or test](https://doc.sitecore.com/personalize/en/users/sitecore-personalize/introduction-to-experiments-in-sitecore-personalize/introduction-to-web-experiments-in-sitecore-personalize/decision-model-variant-states.html "Decision model variant states").