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

# Perform User Distribution Dynamically using Merlin AI

> Use Merlin AI to dynamically distribute users across A/B test variations in MoEngage, optimizing for open rate, click rate, or both metrics.

<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-doc-2312-standard-user-attributes/SqcYdW9SNHCvx5rj/images/moengage_17342b.png?fit=max&auto=format&n=SqcYdW9SNHCvx5rj&q=85&s=2aa572c0e09336a4d8d2babe0b9e551e" 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-doc-2312-standard-user-attributes/nl4-OacMaNfumV7q/images/moengage_374bde.png?fit=max&auto=format&n=nl4-OacMaNfumV7q&q=85&s=d22e34fbe86eb399ac507ee29b3e8202" 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-doc-2312-standard-user-attributes/baGSuo2i-jfREMLL/images/moengage_692018.png?fit=max&auto=format&n=baGSuo2i-jfREMLL&q=85&s=aa4c1090207fa353e98feef98e70efdd" 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-doc-2312-standard-user-attributes/bd8pkOzBPklhy0Z3/images/moengage_d428d2.png?fit=max&auto=format&n=bd8pkOzBPklhy0Z3&q=85&s=3d77ba2934e4ca7c2eb96e9a6e4592b5" 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/ai-and-intelligence/ab-testing/create-multivariate-testing/perform-user-distribution-manually)
* [Edit Multivariate Experiments](/user-guide/ai-and-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*.
