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

# Using Recommendations in MMS

> Add personalized product recommendations to MoEngage MMS campaigns using Jinja to send each user a relevant product name and link.

By adding recommendations to your MMS campaigns, you can send each user a product that matches their interests instead of the same message to everyone. In the MMS channel, recommendations are inserted into the message text using the [Jinja templating language](https://moengage.com/docs/user-guide/campaigns-and-channels/getting-started/message-personalization/jinja-templating-language.md).

At MoEngage, creating an MMS campaign is a three-step process.

1. Target users
2. Content
3. Schedule and Goals

You can personalize the campaign with recommendations in the second step 'Content'. Let us create a recommendation personalized MMS campaign.

> [!NOTE]
>
> The MMS channel is available only in the US and Canada region. Contact your MoEngage Customer Success Manager (CSM) or the [Support team](https://moengage.com/docs/user-guide/contact-support/raise-a-support-ticket-through-moengage-dashboard.md) to enable it for your account.

> [!WARNING]
>
> Ensure that you have created the desired recommendations. You can use only active recommendations for campaign personalization. Learn how to [create and manage recommendations](https://moengage.com/docs/user-guide/content/recommendations).

> [!NOTE]
>
> The MMS message supports up to 1600 characters. A product set on its own inserts every item in the set, which can take the message past that limit. Modify the Jinja code to fetch a single item, as described in step 10. The character count and the number of MMS appear below the preview.

# Create MMS Campaigns with Recommendations

To create an MMS campaign with recommendations, perform the following steps:

1. On the sidebar menu in MoEngage, hover over the Engage menu item ![The Engage menu icon](https://mintcdn.com/moengage/_fazdN5K6hQMBuV9/images/moengage_3a6ded.png?fit=max\&auto=format\&n=_fazdN5K6hQMBuV9\&q=85\&s=5b7311df5455793975271a77743d0dc4) . The **Engage** menu appears.
2. Click **+ New Campaign**. ![The Engage menu with the New Campaign option](https://mintcdn.com/moengage/2CGhjk8ZDWEC5ocb/images/moengage_f884be.png?fit=max\&auto=format\&n=2CGhjk8ZDWEC5ocb\&q=85\&s=0ada01182ce9b14f1ee343c52b517b74) You can also click **All Campaigns** on the **Engage** menu and then click **+ Create campaign** on the All campaigns page.
3. On the **New Campaign** dialog box, under **Outbound**, click **MMS**.
4. Click **Periodic** campaign, and you can follow the same steps for any other MMS campaign type. For more information about delivery types, refer to [Delivery Types](https://moengage.com/docs/user-guide/campaigns-and-channels/getting-started/introduction/delivery-types-moengage-channels.md).

   ![The New Campaign dialog box with MMS selected under Outbound and the Periodic delivery type](https://mintcdn.com/moengage/qtj4Yj4kDsQH8L-J/images/mms-new-campaign-periodic.png?fit=max\&auto=format\&n=qtj4Yj4kDsQH8L-J\&q=85\&s=56a485218db0ae655727389afe4d3aa3)
5. Enter the basic campaign details and define the audience in step 1 'Target users' and click **Next**.
6. In step 2, on the **Content** tab, in the **MMS/SMS sender** list, select the connector you want to send the campaign through.

   ![The Configure MMS screen showing the MMS/SMS sender list, the Message field and the preview panel](https://mintcdn.com/moengage/qtj4Yj4kDsQH8L-J/images/mms-configure-content.png?fit=max\&auto=format\&n=qtj4Yj4kDsQH8L-J\&q=85\&s=b6635a9c8274253ee32d38295596cc4f)
7. In the **Message** field, type '@' where you want the recommendation to appear. The **MMS Personalization** window opens.
8. On the **Data personalization** tab, in the **Select attribute** list, search for your recommendation and select it under **Product sets**. ![The MMS Personalization window showing the Data personalization tab, a product set search in the Select attribute list, and the Choose Fallback options](https://mintcdn.com/moengage/qtj4Yj4kDsQH8L-J/images/mms-personalization-window.png?fit=max\&auto=format\&n=qtj4Yj4kDsQH8L-J\&q=85\&s=54220954cfc74fb6b1c2ff7382d92219)
9. Under **Choose Fallback**, select a fallback and click **Done**.
   The **Choose Fallback** option controls what a user receives when personalization fails for them:

   | Fallback | What happens |
   | - | - |
   | **No fallback** | The recommendation is replaced with an empty value. |
   | **Do not send MMS** | The MMS is not sent to that user. |
   | **Replace text** | The recommendation is replaced with the text you enter. |
10. It auto-populates some Jinja code retrieving all available items list from recommendations. You can modify the code for your use case. For example, the following is the modified code to display one item:

    ```jinja Item Title theme={null}
    {% if ProductSet.Recommendations %}
    {% for product in ProductSet.Recommendations[0:1] %}
    {{product.title}}
    {% endfor %}
    {% else %}
    MOE_NOT_SEND
    {% endif %}
    ```

    ```jinja Item Link theme={null}
    {% if ProductSet.Recommendations %}
    {% for product in ProductSet.Recommendations[0:1] %}
    {{product.link}}
    {% endfor %}
    {% else %}
    MOE_NOT_SEND
    {% endif %}
    ```

    ![The Message field showing the auto-populated Jinja code for the product set](https://mintcdn.com/moengage/qtj4Yj4kDsQH8L-J/images/mms-message-jinja.png?fit=max\&auto=format\&n=qtj4Yj4kDsQH8L-J\&q=85\&s=0ba40bf1a227495a8047af99f15ec9f5)

    > [!NOTE]
    >
    > `MOE_NOT_SEND` stops the message from going out when the product set is empty for a user, so no one receives an MMS with a missing product.
11. To display an item attribute, place the cursor inside the `for` loop, type '@', and select the attribute in the **Select attribute** list. The attribute is inserted inside the loop, for example `{{product['price']}}`.
12. Repeat steps 7 to 11 for each remaining recommendation. You can choose recommendations personalization or static textual content for different parts of the message.
13. Select **Add media(MMS)**, and then either upload a file or select **Media URL** and enter the address. Recommendations personalize the message text rather than the media, so the media you add here is the same for every user.

    ![The Add media(MMS) section with the Upload file and Media URL options](https://mintcdn.com/moengage/qtj4Yj4kDsQH8L-J/images/mms-add-media.png?fit=max\&auto=format\&n=qtj4Yj4kDsQH8L-J\&q=85\&s=fb004c9c07082323a3805aed4c3d36ea)
14. After you complete the setup, under **Preview type**, click **Personalized**. MoEngage selects a user and renders the message with real values.
15. Click the **MMS** and **SMS (fallback)** tabs to check the message on both.

    ![The preview panel with the MMS and SMS (fallback) tabs and the Preview type options](https://mintcdn.com/moengage/qtj4Yj4kDsQH8L-J/images/mms-preview-tabs.png?fit=max\&auto=format\&n=qtj4Yj4kDsQH8L-J\&q=85\&s=70348ab178d0ccdc6af9fbf0907545ed)
16. To preview the message for a specific user, click the edit icon ![The edit icon](https://mintcdn.com/moengage/q2ALITKbE0y0S_CF/images/personalized-preview-edit-icon.png?fit=max\&auto=format\&n=q2ALITKbE0y0S_CF\&q=85\&s=848f3575779c106dc8204643a48b5b83) . The **Personalized preview** slide-out opens.
17. In the **Select user by** list, select the identifier you want to use.
18. In the **User identifier value** field, type the identifier of the user.
19. Click **Fetch user data**. Under **Personalization inputs**, your product set appears as JSON with the items available for that user.
20. Change the JSON to match what you want to preview. (Optional)
21. Click **Update preview**.

    ![The Personalized preview slide-out showing the user selection, the product set JSON under Personalization inputs, and the Update preview button](https://mintcdn.com/moengage/qtj4Yj4kDsQH8L-J/images/mms-personalized-preview.png?fit=max\&auto=format\&n=qtj4Yj4kDsQH8L-J\&q=85\&s=ed67790ac549ad36cdba36cba0a61107)

    > [!NOTE]
    >
    > To enable **Update preview** for your account, contact your MoEngage CSM or the Support team. For more information, refer to [Personalized Preview](https://moengage.com/docs/user-guide/campaigns-and-channels/getting-started/message-personalization/personalized-preview.md).
22. You can also deliver a test campaign to ensure end-to-end delivery before scheduling it for all users. ![The Test Campaign panel](https://mintcdn.com/moengage/prFQLkdcYp4xSt9t/images/moengage_64d866.png?fit=max\&auto=format\&n=prFQLkdcYp4xSt9t\&q=85\&s=418af816177da54b157eb6fc1262ec7e)
23. After you complete the content setup with recommendations, click **Next** at the bottom and move to 'Schedule and Goals', which is the step 3 of campaign setup.
24. Set up the appropriate settings in **Schedule and Goals** and publish the campaign.

> [!NOTE]
>
> MoEngage delivers an MMS campaign as an SMS with a link to the media when the recipient's country or device does not support MMS. The recommendation text reaches those users in the SMS instead, so check it on the **SMS (fallback)** tab as well as the **MMS** tab.

# Related Articles

* [Personalize MMS Campaign](https://moengage.com/docs/user-guide/campaigns-and-channels/sms-mms-and-rcs/mms/personalize-mms-campaign.md)
* [Personalize Content Using Recommendations](https://moengage.com/docs/user-guide/campaigns-and-channels/getting-started/message-personalization/personalize-content-using-recommendations.md)
* [Using Recommendations in SMS](https://moengage.com/docs/user-guide/content/recommendations/personalize-campaign-with-recommendations/using-recommendations-in-sms.md)
* [Using Recommendations in RCS](https://moengage.com/docs/user-guide/content/recommendations/personalize-campaign-with-recommendations/using-recommendations-in-rcs.md)


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