Creating Custom Salutations

In Samba, you have the ability to automatically adjust a customer’s name and your salutation to personalize your messages even more.

In those cases where a customer has provided a foreign name, Samba will automatically provide an inflected version of the name where it makes sense and when no name is available, Samba will insert a standard, generic greeting.

Learn more about how to work with this attribute in the following tutorial:

How to Include a Salutation in an Email Template

First, navigate to the editor of the email you wish to modify and go to the text field you wish to customize. Once there, add the following code:

{{customer_custom_param_Salutation}}

The system then generates an e-mail for each one, where the variable will be filled in

  1. Inflected customer´s name, for example. “Pavle”,
  2. nothing – for invalid or unrecognized name

You can paste this parameter directly into subject of the email.

Scenarios in template

If the template did not look good without a completed salutation, you can handle such cases directly in the template by creating 2 scenarios as follows (see syntax Mustache.js):

{{#customer_custom_param_Salutation}}
Hello, {{customer_custom_param_Salutation}}
{{/customer_custom_param_Salutation}}
{{^customer_custom_param_Salutation}}
Greetings,
{{/customer_custom_param_Salutation}}

Thanks to this construction will first choice. “Hello Pavle,” will be displayed only to those who have been recognized a name have been inflected,and the others will see only “Greetings,“.

For now you can only use salutations for CZ, SK and HU names. If you are using English, we recommend you use only the part with “Greetings, customer”.

Beware scenario design works only in an email template and can not be used in email subject

How to segment your customers by salutation

Within the precision segmentation, you select the custom filter “Custom parameter”> “Salutation”. If you choose “value: Any value”, you select all the customers for whom the bolding has been created and you can send a special campaign version to this group. You will appreciate this when the construction method directly in the template described above would be too difficult or impossible.

This post is also available in: Čeština (Czech)

Updated on October 23, 2019

Was this article helpful?

Related Articles