メールのパーソナライゼーション
Email personalization allows you to tailor email content to each recipient by using attributes and placeholders. This helps you create more relevant and engaging messages while reaching many customers at once.
プレースホルダー
プレースホルダーを使用して、名前、口座番号、その他のプロフィールデータなどの標準属性とカスタム属性を使用してメールをパーソナライズします。これにより、多くの視聴者に送信する場合でも、各メッセージが受信者に合わせて調整されているように感じられます。 標準属性とカスタム属性は、People プロファイルにリンクされます。属性とその設定方法の詳細については、People を参照してください。
リンクを追加するときに、リンクを特別なリンクとして定義することもできます。
- ブラウザで表示:
{$browserlink} - 購読解除:
{$unsubscribe}
ブラウザーで表示 機能は、API 経由で送信される電子メール トラフィックに対して自動的に有効になりません。有効にするには、[Support](https://support.nttcpaas.com/hc/ja/requests/new (opens in a new tab)] またはアカウント マネージャーにお問い合わせください。
Simple expressions
Simple expressions let you format and manipulate any personalization you add to an email message. The available options depend on the data type of the attribute you insert, ensuring consistent display.
Supported formatting options:
- String: Proper case, lower case, upper case
- Numeric: Round (down if less than X.5, up if greater than or equal to X.5), floor (always round down), format with two decimals
- Date/Time: US format (yyyy-MM-dd or yyyy-MM-dd hh:mm), EU format (dd/MM/yyyy or dd/MM/yyyy hh:mm), day of year, day of week, month of date
Example:
If you insert the firstName attribute, you can format it as:
- Proper case → John
- Lower case → john
- Upper case → JOHN
表示条件
表示条件では、メール内のコンテンツを表示または非表示にするためのルールを定義できます。これにより、同じメッセージが視聴者全体に送信された場合でも、各受信者は自分の属性や興味に合わせたコンテンツを見ることができます。メッセージごとに最大 50 個の条件を作成できます。
表示条件の作成方法
表示条件を作成するには:
- メールエディタで、表示条件タブに移動します。
- [条件の作成] を選択します。
- 名前と説明を入力します。
- 属性を選択します(例:インタレスト=メッセージング)。
- より複雑なロジックを作成するには、AND または OR 演算子を使用します (たとえば、Interest = Messaging OR Technology)。
- Save (保存) を選択します。
コンテンツへの条件の割り当て
コンテンツに表示条件を割り当てるには:
- メールデザインで、行またはコンテンツブロックを選択します。
- プロパティ パネルで、[表示条件の追加] を選択します。
- 適用する条件を選択します。
- [プレースホルダーのテスト] タブを使用して、**プレビュー] で条件をテストします。
例:
ニュースレターに複数のトピックが含まれている場合は、表示条件を使用して、受信者の関心に一致するセクション(メッセージやテクノロジーなど)のみを表示できます。
Repeat block
The repeat block feature lets you add personalized lists to your email messages, where items are dynamically loaded for each campaign or recipient. Use repeat blocks to create messages such as:
- Cart abandonment reminders
- Newsletters
- Low stock alerts
- Price drop notifications
- Policy expiration reminders
A repeat block works by looping over a list (array) of data and automatically repeating a section of your template for each entry in that list. Item properties are dynamically inserted into each repeated block.
How to create a repeat block
To create a repeat block:
- Create a Custom email message or open a template.
- Design the layout for the content you want to display.
- Select the block you want to repeat.
- Select the Placeholder icon.
- In the pop-up window, choose the list of items (from Catalogs or List attributes).
- To refine your list, select Filter to define which items should appear.
- Set the Maximum amount of items to display.
Best practice: Limit repeat blocks to 15 items per message for optimal performance and readability.
Personalization with Catalogs
If Catalogs are your source of data, you can match items to each recipient to personalize your message:
- Choose the Catalog field you want to match to a People attribute. Only items that match the recipient’s attribute are shown in the email.
- Add multiple match rules to tailor the list further. For example, show products from the Catalog that match the recipient’s Size and also fall under a Category they are interested in.
- Use the Sort option to control the order in which items are displayed.
- Under the Available placeholders section, review the data you can dynamically insert into your message.
- Select Preview to test how the personalized list appears for each recipient.
Template language
The new template language introduces a more powerful, readable, and standardized syntax for dynamic email content. Use the template language within your HTML content and define placeholder values in the to parameter of your request.
Recommended syntax for new projects:
- Placeholders:
{$placeholder} - Expressions:
{{ ... }} - Logic tags:
{% ... %}
Tags
Tags create logic and control the flow of templates. They are denoted with curly braces and percent signs:
{% tag %}
Conditions
Use the {% if %} tag to show content based on whether an expression evaluates to true.
Close every block with {% endif %}. You can extend logic with {% elseif %} and {% else %}.
Example:
| Input | Output |
|---|---|
{% if {$firstName} == "Alex" %} Hey Alex!{% elseif {$firstName} == "Anna" %}Hey Anna!{% else %}Hi Stranger!{% endif %} | Hey Anna! |
Operators
You can use logical and comparison operators inside if statements.
Loops
Use {% for %} to iterate through collections such as arrays or objects. Add limit:n to restrict the number of iterations. Close every block with {% endfor %}.
Iterating over a list of elements
Iterating over a list of elements
Input | Output |
|---|---|
You left products in your cart: \{\{ product \}\}\{% endfor %\} | You left products in your cart: Shirt Jeans Shoes |
Iterating over a list of objects
Input | Output |
|---|---|
You left products in your cart: \{% endfor %\} | You left products in your cart: Shirt, 10 EUR, 2 Jeans, 20 EUR, 1 Shoes, 50 EUR, 1 |
Calculate the item position in the list
You can calculate the size of your list and add rules depending on the position of the item in the list.
Input | Output |
|---|---|
Your Policies for | Your Policies for |
Expressions
You can include expressions inside your email templates using the expression function. For details, see Expression Language.