How to use placeholders to create automated messages with custom fields in Proactive Campaigns
- Proactive Campaigns
Placeholder is the shortcode element for creating automated messages. It is the reference for user data. Using a placeholder, you can extract needed information to your ticket for a particular user without any manual actions.
Check out Zendesk’s article to learn about all use cases of placeholders. In our turn, we are going to explain the correct use of placeholders with custom fields while creating the campaign with an imported CSV file, however, you can use this option with the list created inside the app.
Before you start launching the campaign, you need to create a user custom field in your Zendesk instance. To do it, go to the “Admin Center,” select People > Configuration > User fields. Then, create a custom field by clicking the Add field button at the right corner of the page.
Next, choose the field type and give it a name. For instance, we select the Number field type and create the 'Tracking number' custom field. Pay attention that every field has its specific field key, so copy a created one to use it later.
Next, for example, we create a CSV file with the 'Tracking Number' column name with related data.
Then, create a new campaign. In the 'Import Users List tab,' upload your CSV file, map the Tracking Number field and click 'Save.'
Afterward, insert the shortcode {{ticket.requester.custom_fields.[key_name]}}
in the email body field, but insert the tracking_number
as we did, or your field name instead of the [key_name]
block.
We added {{ticket.requester.custom_fields.tracking_number}}
.
Finally, continue creating your campaign. Every receiver will see their own corresponding tracking number on the email message if you did everything correctly.
If you have any questions, problems, or proposals feel comfortable to contact us.