Personalization makes your marketing messages feel more relevant to users. By tailoring your WhatsApp campaigns, you can build a stronger connection with your audience and improve how well your messages are received.
This article explains how to use personalization in MoEngage WhatsApp campaigns, including one-time, periodic, and event-triggered messages.
info |
Note When you create a personalization condition or logic, it appears as a chip. To know more about Chip Actions, refer here. |
To add personalized content to your WhatsApp campaign messages:
- In the campaign creation process, navigate to Step 2: Content.
- The WhatsApp content field that can be personalized contain the placeholder text Type @ to personalize.
- In the content field, type the @ symbol where you want to insert personalized content. The WhatsApp Personalization editor appears.
In the WhatsApp Personalization editor, you can perform the following:
Data Personalization
You can personalize your messages using user attributes, Product Sets (Recommendations), and Content APIs. To insert personalization into a message field, type @. The personalization menu opens, as shown in the following image:
Choose Fallback
When you personalize a message, a fallback option helps ensure content is always displayed, even if the chosen attribute is unavailable for a user or fails to display correctly.
You can select from these fallback options:
- Select No Fallback in case there is no alternative to the failed attribute. The personalized attribute will be substituted with an empty string in case of personalization failure.
- Select Do not send SMS & RCS when you choose not to send the WhatsApp messages in case of personalization failure.
- Select Replace text in case you choose to replace the failed attribute with a text of your choice. The personalized attribute will be replaced with the text you provide in the Fallback text field in case of personalization failure
info |
Note Ensure that custom attributes do not have the same names as MoEngage's standard attributes. If a custom attribute and a standard attribute having the same name are used for personalization, it could result in incorrect personalization. |
Personalize Using Recommendations (Product Sets)
Recommendations (Product sets) help you communicate real-time and contextual product recommendations to customers. For more information, refer to Recommendations.
library_add_check |
Prerequisites
|
To send a dynamic product recommendation using WhatsApp, perform the following:
- In step 2 of the campaign creation process, select the Sender with whom the Recommendations template has been approved.
- Select the approved template.
- Fill in the placeholders by typing @. In the personalization screen that appears, choose the user attribute and product set attributes.
-
- For product sets, choose the desired product set and click ok. This will add the product set to the placeholder. A product set typically contains a list of items, each with specific attributes such as name, title, id, image link, and so on. Adding a product set as such with display all the contents of the product set in the message.
- To add only one item to the Recommendations set, loop through the product set as explained below and fetch the desired item. For this item, fetch the desired attribute by typing @ inside the for loop and select the desired property from the product set in the personalization window.
-
- Click on the personalized preview to see the message for a specific user.
In the example shown below, the template has three placeholders:
- The first placeholder is used for personalization and is fetched using the firstname user attribute.
- The second placeholder loops through a product set called
ProductSet
to fetch the first item in the product set and display its title using the following JINJA code. In this example, the Recommended product is Sneakers.
{% if ProductSet.product_recommendations%}
{% for product in ProductSet.Recommendations[0:1]%}
{{product.title}}
{% endfor %}
{% else %}
MOE_NOT_SEND
{% endif %}
3. The third placeholder loops through the Recommendations product set to fetch the link for the recommended product using the following JINJA code:
{% if ProductSet.Recommendations%}
{% for product in ProductSet.Recommendations[0:1]%}
{{product.link}}
{% endfor %}
{% else %}
MOE_NOT_SEND
{% endif %}
For more information about JINJA, refer to MoEngage Templating Language.
Personalize Using Content APIs
WhatsApp campaigns can be personalized using Content APIs to deliver relevant and timely information to users.
Add Content APIs
Content APIs can be added to the MoEngage dashboard. Using the following navigation to access Content API: Settings > APIs > Content API, and click Add to add the Content API. For more information, refer to Personalize Content Using Content APIs.
Create a Personalized Campaign using Content API
- Type @ in the content creation step to invoke the personalization editor.
- In the SMS and RCS personalization pop-up, navigate to the Data Personalization tab.
- Search for Content API and select the API from the list.
- Click Done.
Personalize Using Content Blocks
Content Blocks are reusable content snippets you can use across various campaigns. These are especially helpful for standard elements like headers, footers, signature blocks, or terms and conditions.
To personalize your messages using a content block:
- Type @ in the content section.
- In the personalization menu that appears, click the Content blocks tab.
- Select the content block to be inserted.
- Click Done to add the selected Content Block, and it gets added to the message as shown below.
- Turn on the Insert only the content of the content block toggle to disconnect the content from the existing content block, and any future updates to the content block will not be reflected in the campaign. This step is optional. For more information, refer to Content Blocks.
Personalize Using Auxiliary Data
You can personalize your WhatsApp content using auxiliary data by selecting the auxiliary data attributes in the personalization editor.
To personalize content using Auxiliary Data attributes:
- Enter @ in the fields wherever personalization is supported to invoke the personalization editor.
- Select the Aux Data tab.
- In the Aux data drop-down list, select the Auxiliary Data file whose attribute you wish to use for personalization.
- In the Lookup value drop-down list, select the primary key specified for the Auxiliary Data during import. This will identify the user for whom the Auxiliary Data is being fetched.
- In the Attribute drop-down list, specify the attribute to be personalized using Auxiliary Data.
- Click Done. The Auxiliary Data JINJA will get added to the field or the editor.
For more information, refer to Personalize Campaign Content Using Auxiliary Data.
Personalized Preview
The Personalization Preview feature enables you to tailor content effectively, ensuring it meets the needs of your target audience. For more information, refer to Personalized Preview.
info |
Information For more information on personalization errors, refer to Common Personalization Errors and FAQs. |