> ## Documentation Index
> Fetch the complete documentation index at: https://moengage.com/docs/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 Push, Email, In-App Messages, On-Site Messages, Personalize, SMS, RCS, and MMS.

# 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.

   ![A\_B\_Testing\_Options.png](https://mintcdn.com/moengage/-uVFLyK4XoHTd5WE/images/moengage_17342b.png?fit=max\&auto=format\&n=-uVFLyK4XoHTd5WE\&q=85\&s=56d5e931db4d2f8002f901e4e5c694ed)

3. Click **User distribution**.

4. Click Dynamically using Merlin AI.

   ![UserDistribution\_Sherpa.png](https://mintcdn.com/moengage/DUgG020WbtkVK2Ls/images/moengage_374bde.png?fit=max\&auto=format\&n=DUgG020WbtkVK2Ls\&q=85\&s=9c24c858eab10a084a787f1f68633759)

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">**Email**</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">**In-App Message and Onsite Message**</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.  **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).  **Note**: You can create only up to five variations. |
   | Campaign control group | Set the percentage of users who will receive the campaign.  **Note**: MoEngage does not guarantee receipt of campaigns the second time where: • Users belong to either global control group or campaign control group for any active campaign, • Users are qualified to receive the campaigns twice. |

   ![DynamicAllocation.png](https://mintcdn.com/moengage/2FjM3dGfEH1CYo8k/images/moengage_692018.png?fit=max\&auto=format\&n=2FjM3dGfEH1CYo8k\&q=85\&s=0fea3809f55561e4b24671b482530752)

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

> [!NOTE]
>
> Campaigns, where the user distribution is performed by Merlin AI, have the ![Powered\_by\_Sherpa.png](https://mintcdn.com/moengage/rmgWdhG7TCISpEIz/images/moengage_d428d2.png?fit=max\&auto=format\&n=rmgWdhG7TCISpEIz\&q=85\&s=aaecb96d71b3f16715c95b5568493315) icon in the Campaign Status on the All Campaigns page.

# Next Steps

* [Perform User Distribution Manually](https://moengage.com/docs/user-guide/ai-and-intelligence/ab-testing/create-multivariate-testing/perform-user-distribution-manually.md)
* [Edit Multivariate Experiments](https://moengage.com/docs/user-guide/ai-and-intelligence/ab-testing/create-multivariate-testing/edit-multivariate-experiment.md)

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


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.