SMS templates and variables
Create project templates, understand approval, and use customer and subscription variables
A template is message content for a specific event type. Variables are replaced with customer or event information when the message is sent.
Default templates
Open SMS service → Templates. Default templates are available for getting started, but cannot be edited or deleted. Create a project template for custom content and select it after approval.
Create a template
- Open the templates page and choose to create a template.
- Set its title, key, and event type.
- Write the body and insert variables appropriate to that event.
- Save and monitor its review status.
- After approval, select it in event or reminder settings.
The key is a technical identifier; the title helps you find it in the dashboard. Use a clear ASCII key such as subscription_reminder_custom.
Review statuses
| Status | Meaning |
|---|---|
| Pending | New content or an edit awaits review |
| Approved | Usable when active and compatible with the event |
| Rejected | Review and revise the content before use |
Editing a custom template returns it to review. Saving does not mean the new content is approved or in use.
Variables
| Variable | Meaning |
|---|---|
{{project_name}} | Project name |
{{display_name_attribute}} | Customer name from $displayName; defaults to the Persian word for “user” |
{{product_name}} | Product or package name associated with the subscription event |
{{expire_date}} | Expiry date in a pre-expiry reminder |
{{days}} | Day offset associated with the reminder |
{{code}} | One-time code for login |
Not every event supplies every variable. For example, do not use {{code}} in purchase notifications. Insert the exact variable name without changing case or spacing. Arbitrary variable names do not create new data.
Example content
For a pre-expiry reminder:
Dear
{{display_name_attribute}}, your subscription to{{project_name}}expires on{{expire_date}}. Renew to continue using the service.
This is illustrative wording. Register it under the appropriate event and obtain approval before use. Add purchase links and discount codes through reminder options rather than duplicating them manually in the template.
Variable replacement and appended links affect final message length and cost.
Next: automatic reminders.