---
title: "How do I vary the text of my emails depending on the contact or the time in Sarbacane Engage?"
description: "Vary a greeting at random, or display a different text depending on the time, the day or a contact's information."
url: https://help.sarbacane.com/en/articles/490-how-do-i-vary-the-text-of-my-emails-depending-on-the-contact-or-the-time-in-sarbacane-engage
collection: "Engage : les variables de personnalisation"
updated: 2026-11-26
language: en
alternates: [es, fr]
---

# How do I vary the text of my emails depending on the contact or the time in Sarbacane Engage?

Vary a greeting at random, or display a different text depending on the time, the day or a contact's information.

To keep your emails from all looking the same, Sarbacane Engage can pick a text at random among several, or display a text according to a rule: "Bonsoir" after 5 pm, "Bon week-end" on Fridays, a text depending on a contact's information… You insert them with **#**, like a variable.

## Prerequisites

-   A Sarbacane Engage licence.
    
-   A sequence with at least one email step.
    

## Steps

**Insert a random text**

1.  In the email editor, place the cursor where you want the text, then click **#**.
    
2.  For a ready-made example, open the random tab and click {Bonjour|Hello|Hey} or {Cordialement|A très bientôt|Bonne journée}.
    
3.  To write your own texts, open the custom random tab, fill in the text fields (use the link to add another random text if needed), then click the insert button.
    

**Insert a conditional text**

4.  Click **#**, then open the conditional tab for a ready-made example: "Bonsoir" after 5 pm and "Bonjour" otherwise, "Bon week-end" on Fridays, or "la semaine prochaine" on Fridays instead of the next day.
    
5.  To write your own rule, open the custom conditional tab. Under the condition, choose the type (for example variable), then the field, the condition and the value.
    
6.  Under the text to display, enter the text. To add another rule, click the link to add a condition.
    
7.  Under the default value used when no condition is met, enter the fallback text, then click the insert button.
    
8.  In the top right, click the button to save the sequence.
    

**Best practice** Before launching the sequence, test the sending to check the text displayed.

## Expected result

The text code appears in the email, for example {Bonjour|Hello|Hey}. When sending, each contact receives only one of the texts, according to chance or the rule.

## Troubleshooting

### The contact received the default text

No condition was met for them. Check the field on their record and the value entered in the condition.

## Related articles

-   [How do I insert a variable into a Sarbacane Engage sequence email?](https://help.sarbacane.com/en/articles/278.md)
    
-   [Which variables can I use in Sarbacane Engage?](https://help.sarbacane.com/en/articles/277.md)
    
-   [How do I test sending a sequence in Sarbacane Engage?](https://help.sarbacane.com/en/articles/276.md)
