On this page: Learn how to use conditional rules to add dynamic content into your messages, both in personalization expressions and as content component variants in the Email Designer.
Adobe Journey Optimizer allows you to leverage conditional rules created in the library to add dynamic content into your messages.
Dynamic content can be created into any field where you can add personalization using the personalization editor. This includes subject line, links, push notifications content, or text-type offers’ representations. Learn more about personalization
Additionally, you can use conditional rules in the Email Designer to create multiple variants of a content component.
Add dynamic content into expressions perso-expressions
The steps to add dynamic content in expressions are as follows:
-
Navigate to the field where you want to add dynamic content, then open the personalization editor.
-
Select the Conditions menu to display the list of available conditional rules. Click the + button next to a rule to add it into the current expression.
You can also create a new rule by selecting Create new. Learn how to create conditions
-
Add between the
{%if}and{%/if}tags the content that you want to display if the conditional rule is met. You can add as many rules as needed to create several variants of an expression.In the example below, two variants have been created for a mobile message content, depending on the recipient’s preferred language.
-
Once your content is ready, you can preview different variants using either simulation method: click Simulate content to test content variations with sample input data or AI auto-generation, or click Simulate content, then select Simulate content (AEP profiles) from the dropdown to preview with test profiles. Learn how to test and preview messages
Add dynamic content into emails emails
The steps to create variants of a content component in the Email Designer are as follows:
-
In the Email Designer, select a content component, then click Enable conditional content.
-
The Conditional Content pane displays on the left. In this pane, you can create multiple variants of the selected content component using conditions.
Configure your first variant by selecting the Select condition button.
-
The conditions library displays. Select the conditional rule to associate to the variant, then click Select. In this example, we want to adapt the component text depending on the recipient’s preferred language.
You can also create a new rule by clicking Create new. Learn how to create conditions
-
The conditional rule is associated to the variant. For better readability, rename the variant by selecting the Rename action from the More actions icon.
-
Configure how the component should display if the rule is met when sending the message. In this example, we want to display the text in French if it is the recipient’s preferred language.
-
Add as many variants as needed for the content component. You can switch at any time between the different variants to check how the content component will display depending on the conditional rules.
note NOTE -
If none of the rules defined in the variants are met when sending the message, the content component will display the content defined in the Default variant.
-
Conditional content will be evaluated against associated rules in the order in which the variants are displayed. The default variant is always displayed if no other conditions are met.
-
When simulating or rendering proofs for emails containing multiple conditional variants, Journey Optimizer may require more processing time. If you experience timeouts or error messages, consider reducing the total number of variants or simplifying conditional rules. Learn more about testing your content on this page.
-
-
To delete a variant, click the More actions icon next to the desired variant and select Delete.
This section contains structured knowledge intended to support interpretation, retrieval, and question answering related to this topic.
For complete understanding, this information should be combined with the documentation on this page. Neither source is intended to stand alone; the page describes the feature, while this section provides additional context that helps disambiguate terminology, intent, applicability, and constraints.
- TL;DR: Adobe Journey Optimizer lets you use conditional rules created in the library to add dynamic content into your messages, both in personalization expressions and as variants of a content component in the Email Designer.
Intents:
- Add a conditional rule into an expression from the Conditions menu of the personalization editor.
- Add, between the
{%if}and{%/if}tags, the content to display if the conditional rule is met, and add as many rules as needed to create several variants of an expression. - Preview the different variants of an expression with Simulate content or with Simulate content (AEP profiles).
- Enable conditional content on a content component in the Email Designer and create multiple variants of the component using conditions.
- In the Email Designer, rename a variant with the Rename action, or delete it with the Delete action, from the More actions icon.
- Create a new conditional rule by selecting Create new.
Glossary:
- Dynamic content: Content added into your messages using conditional rules. It can be created into any field where you can add personalization using the personalization editor, including subject line, links, push notifications content, or text-type offers’ representations.
- Conditional rule (product-specific): A rule created in the library that you add into an expression or associate to a variant of a content component, to display content when the rule is met.
- Conditional Content pane (product-specific): The pane that displays on the left after you select Enable conditional content in the Email Designer, where you can create multiple variants of the selected content component using conditions.
- Variant (product-specific): One version of the content created with conditional rules: several variants of an expression in the personalization editor, or multiple variants of a content component in the Email Designer, where you associate a conditional rule to each variant other than the Default variant. In the Email Designer, you can switch at any time between the variants to check how the content component will display depending on the conditional rules.
- Default variant (product-specific): The variant whose content the content component displays if none of the rules defined in the variants are met when sending the message.
- Simulate content: The simulation method to test content variations with sample input data or AI auto-generation.
- Simulate content (AEP profiles): The simulation method, selected from the dropdown of Simulate content, to preview the variants with test profiles.
Guardrails:
- In the Email Designer, conditional content is evaluated against associated rules in the order in which the variants are displayed.
Terminology:
- Canonical name: Adobe Journey Optimizer — Acronym: AJO — variants: Journey Optimizer
- Canonical name: Adobe Experience Platform — Acronym: AEP — variants: Platform
FAQ:
- Where can I create dynamic content? In any field where you can add personalization using the personalization editor, including subject line, links, push notifications content, or text-type offers’ representations. You can also use conditional rules in the Email Designer to create multiple variants of a content component.
- Where do I add the content to display when a conditional rule is met in an expression? Between the
{%if}and{%/if}tags. - What does a content component display if none of the rules of its variants are met? The content component displays the content defined in the Default variant when sending the message.
- In which order are the variants of a content component evaluated? Conditional content is evaluated against associated rules in the order in which the variants are displayed.
- Can I create a new conditional rule while adding dynamic content? Yes. Select Create new, both from the Conditions menu of the personalization editor and from the conditions library in the Email Designer.
Troubleshooting:
- The Email Designer fails to render properly after adding conditional blocks: Verify that each new condition’s syntax is correct and that no duplicate or conflicting statements exist. If issues persist, consider rebuilding problematic sections in a fresh template and test each conditional block incrementally.
- Timeouts or error messages when simulating or rendering proofs for emails containing multiple conditional variants: Journey Optimizer may require more processing time for these emails. Consider reducing the total number of variants or simplifying conditional rules.
Examples:
- In personalization expressions, two variants have been created for a mobile message content, depending on the recipient’s preferred language.
- In the Email Designer, the component text is adapted depending on the recipient’s preferred language: the variant displays the text in French if it is the recipient’s preferred language.
Related pages:
- For more about personalization: Learn more about personalization
- To create a new conditional rule: Learn how to create conditions
- To preview the variants and test your content: Learn how to test and preview messages
- For the Email Designer, where you select a content component to create its variants: Email Designer
Personas:
- developer: Can add a conditional rule into an expression from the Conditions menu of the personalization editor. Can add the content to display if the conditional rule is met between the
{%if}and{%/if}tags. Can add as many rules as needed to create several variants of an expression. Where: “Add dynamic content into expressions”.
Onboarding:
- Level: Intermediate
- First minimal step: Navigate to the field where you want to add dynamic content, then open the personalization editor.
- Next: Once your content is ready, to preview the different variants: Learn how to test and preview messages