How to use placeholders to create automated messages with custom fields in 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 custom field in your Zendesk instance. To do it, go to the “Admin tab”, select “User fields” in the “Manage” section. Then, create a custom field, for instance, we created the “Tracking number” field. Every field has its own field key. We’ll explain what to do with this key 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.