Skip to content

Personalization and Template Variable Mapping

Personalization inserts customer-specific values into a message, such as a first name, a policy number or a product recommendation.

Personalization sources

You can personalize content using any of these:

SourceExample
Profile attributes{{first_name}}, {{city}}, loyalty tier
EventsThe product a customer viewed, or the amount of their last order
Entity dataA policy’s renewal date, an account’s balance, catalogue items and offers
Uploaded valuesValues from a CSV you upload with a campaign, or lookup fields in a journey
Model outputsRecommended products

When a value is missing for a customer, FirstHive uses the fallback value you set in Communication Settings, so messages never go out with a blank or an unresolved token.

The values used for each customer are stored with the send, so you can see exactly what each customer received in reports and previews.

Template variable mapping

Messaging vendors often approve templates with their own variable names, such as var1, var2, or named parameters. Variable mapping lets you connect your FirstHive tokens to those names, so a vendor-approved template renders correctly without renaming variables.

For each personalization token in a template, you can set:

  • The vendor variable name it maps to.
  • A default value to use when the data is missing.
  • A format, for example a date format.

Mapping works for Email, SMS, WhatsApp and RCS, at both template and variant level. Short URLs can also be mapped to named vendor variables.

Example

A WhatsApp template approved by Meta reads:

Hi {{1}}, your policy {{2}} is due for renewal on {{3}}.

Map {{1}} to first_name, {{2}} to policy_number, and {{3}} to renewal_date with the format DD MMM YYYY.