If you actively use scenarios, you may need to set silent days (free from communication) during public holidays. To do this, you can use a Jinja snippet provided in this article.
You can place the Jinja snippet below directly into the condition node's code editor. It includes commonly celebrated Public Holidays across the EU.
{% set day_month = time | from_timestamp('%-d.%-m') %}
{% if day_month in ["1.1", "18.4", "21.4", "1.5", "9.6", "24.12", "25.12", "26.12"] %}
False
{% else %}
True
{% endif %}The code checks whether the current date matches any of a predefined list of specific days (for example, public holidays). If today is one of those dates, the code returns False; otherwise, it returns True. You can adjust and add the days depending on the country and its local holidays.
Example use case #1
Below is an example scenario with a "Repeat Daily" trigger and the Public Holidays Silent Days condition used.
Example use case #2
If you use an "On event" trigger, however, the customer might not re-enter the scenario (as in a "Repeat Daily" trigger) and fall out of the flow without receiving any communication. To make sure the campaign is sent in such cases, try using a Wait node:
Note: You must use a longer period for two or more subsequent public holidays.