> ## Documentation Index
> Fetch the complete documentation index at: https://moengage-user-guide.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Perform User Distribution Dynamically using Merlin AI

<Note>
  Available for all Push, Email, In-App Messages, and Onsite Messages.
</Note>

# Procedure

Follow these steps:

1. In Step 2 of the campaign creation process, click **+ A/B test**.

2. Click New Variation to create the new variation.\
   OR\
   Click Copy Variation to copy the previously created variation.

   <img alt="A_B_Testing_Options.png" src="https://mintcdn.com/moengage-user-guide/PW6HxLO0x1Uv_npP/images/moengage_17342b.png?fit=max&auto=format&n=PW6HxLO0x1Uv_npP&q=85&s=29f5ad6b107ad4f821651ff8ba2150de" width="310" height="208" data-path="images/moengage_17342b.png" />

3. Click **User distribution**.

4. Click Dynamically using Merlin AI.

   <img alt="UserDistribution_Sherpa.png" src="https://mintcdn.com/moengage-user-guide/Qp4QqKVoi4FfGewy/images/moengage_374bde.png?fit=max&auto=format&n=Qp4QqKVoi4FfGewy&q=85&s=adb1c08e020c9cfa9b28a57c2e1b800d" width="1245" height="629" data-path="images/moengage_374bde.png" />

5. Select the Metrics to be maximized.

   <table>
     <thead>
       <tr>
         <th>Metric</th>
         <th>Description</th>
       </tr>
     </thead>

     <tbody>
       <tr>
         <td colspan="2" align="center"><strong>Email</strong></td>
       </tr>

       <tr>
         <td>Open Rate</td>
         <td>Select to optimize the distribution across different variations based on the email open rate by each variant.</td>
       </tr>

       <tr>
         <td>Click rate</td>
         <td>Select to optimize the distribution across different variations based on the click rate by each variant.</td>
       </tr>

       <tr>
         <td>Both</td>
         <td>Select to optimize the distribution across different variations based on both email open rate and email click rate by each variant.</td>
       </tr>

       <tr>
         <td colspan="2" align="center"><strong>In-App Message and Onsite Message</strong></td>
       </tr>

       <tr>
         <td>Conversion</td>
         <td>Select to optimize the distribution across different variations based on the click-through rate of each variant.</td>
       </tr>

       <tr>
         <td>Engagement</td>
         <td>Select to optimize the distribution across different variations based on the conversion rate of each variant.</td>
       </tr>

       <tr>
         <td>Revenue</td>
         <td>Select to optimize the distribution across different variations based on the revenue generated by each variant.</td>
       </tr>
     </tbody>
   </table>

6. In Campaign duration, select 2 hours or 4 hours to set the Campaign duration for Email Campaigns.

7. Set the following:

   | Field                  | Description                                                                                                                                                                                                                                                                                                               |
   | ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
   | Objective (Optional)   | Objective of experiment. <br /><br />**Note**: Applicable only to In-App Message, On-Site Message, and Web Personalization.                                                                                                                                                                                               |
   | Variation              | Modify the variation name for the campaign variation. (Applicable only for In-App, On-Site Messaging, and Web Personalization). <br /><br />**Note**: You can create only up to five variations.                                                                                                                          |
   | Campaign control group | Set the percentage of users who will receive the campaign. <br /><br />**Note**: MoEngage does not guarantee receipt of campaigns the second time where:<br />• Users belong to either global control group or campaign control group for any active campaign,<br />• Users are qualified to receive the campaigns twice. |

   <img src="https://mintcdn.com/moengage-user-guide/NYCHSUAppO_GrSfM/images/moengage_692018.png?fit=max&auto=format&n=NYCHSUAppO_GrSfM&q=85&s=288dff90ebf39eeb4d415de00269da03" alt="DynamicAllocation.png" width="1088" height="492" data-path="images/moengage_692018.png" />

8. Click Done to save the campaign variations.\
   OR\
   Click Cancel to discard the campaign variations.

<Info>
  Campaigns, where the user distribution is performed by Merlin AI, have the <img alt="Powered_by_Sherpa.png" src="https://mintcdn.com/moengage-user-guide/1xZo5l7vwEi6w1Pv/images/moengage_d428d2.png?fit=max&auto=format&n=1xZo5l7vwEi6w1Pv&q=85&s=91f43f73a29df181eeb003d9e668fac3" width="43" height="45" data-path="images/moengage_d428d2.png" /> icon in the Campaign Status on the All Campaigns page.
</Info>

# Next Steps

* [Perform User Distribution Manually](/user-guide/intelligence/ab-testing/create-multivariate-testing/perform-user-distribution-manually)
* [Edit Multivariate Experiments](/user-guide/intelligence/ab-testing/create-multivariate-testing/edit-multivariate-experiment)

All MoEngage AI products, which were previously referred to as *Sherpa AI*, are now known as *Merlin AI*.
