Blog
How to write DLT SMS templates: format, variables and examples
The parts of a DLT content template, how to use variables, worked examples for each SMS category and how to fix common rejections.
- Author
- By TXTPro Editorial Team
- Published
- Reading time
- 7 min read
What does a DLT SMS template contain?
Every commercial SMS in India is checked against a content template registered on a DLT platform under TRAI’s TCCCPR, 2018. A template is made of:
- Fixed text — the words that never change, including your brand name.
- Variables — placeholders such as {#var#} for values that change in each message, such as a name, an order number or a date.
- Header — the sender ID the template is linked to.
- Category — promotional, service or transactional, which decides the consent and delivery rules.
- Content Template ID — issued on approval and sent with every message, together with your PE ID and header.
Hi {#var#}, your appointment at YourClinic is confirmed for {#var#}. - YourClinicHi Asha, your appointment at YourClinic is confirmed for 14 Nov, 11:00 AM. - YourClinicWhen the message is sent, the operator compares it with the registered template. The fixed text must match exactly; only the variable parts may differ.
How to use {#var#} variables correctly
- Use a variable only for content that genuinely changes between recipients or messages.
- Keep the meaning in the fixed text. A template that is mostly variables, such as “{#var#} {#var#} {#var#}”, could carry any content and is likely to be rejected.
- Platforms limit how many characters one variable can hold. If a value is longer, such as a full address, shorten it or rewrite the template; check the limit on your operator’s DLT platform.
- Some DLT platforms provide typed placeholders for values such as numbers, links or call-back numbers. Use the placeholder type your platform asks for.
- Do not use a free-text variable to slip in links or phone numbers. URLs, APK links and call-back numbers in SMS must be whitelisted on the DLT platform.
DLT template examples by category
Service template: login OTP
{#var#} is your OTP to log in to YourBrand. It is valid for 10 minutes. Do not share it with anyone. - YourBrandService template: order update
Hi {#var#}, your YourBrand order {#var#} has been shipped and is expected by {#var#}. Track it in the YourBrand app. - YourBrandTransactional template: payment OTP
{#var#} is your OTP to confirm your payment for order {#var#} at YourBrand. Do not share it with anyone. - YourBrandSome operators reserve the Transactional category for bank OTPs that complete a banking transaction and list other payment OTPs under Service, so confirm with your operator before registering.
Promotional template
The new YourBrand winter collection is now in stores. Visit us this weekend to explore it. Opt out: {#var#} - YourBrandThese examples are illustrative; operators review the wording and category of every template. Learn how categories work in Transactional SMS vs Promotional SMS and the DLT registration guide.
Common DLT template rejections and how to fix them
| Typical rejection reason | How to fix it |
|---|---|
| Category does not match the content | Move any offer into a separate promotional template, or remove it from the service message. |
| Brand name missing or inconsistent with the header | Name your brand in the fixed text, consistent with the header the template is linked to. |
| Too many variables or vague fixed text | Keep variables to the values that change, and state the purpose of the message in fixed text. |
| Link, APK or call-back number not whitelisted | Whitelist the domain, link or number on the DLT platform first, and avoid public URL shorteners. |
| Content is unclear or incomplete | Write a complete, specific message that a recipient would understand without extra context. |
Rejection reasons and wording vary by operator. Where the platform gives a reason, fix that point and submit the corrected template for review.
After approval: sending with your template
- Send every message with the PE ID, header and Content Template ID that belong together, through the telemarketer chain declared on your DLT account.
- Match the fixed text exactly, including spaces and punctuation. A changed word can make the message fail scrubbing.
- Approved templates cannot usually be edited. Submit a new template for changes and switch to its ID once approved.
- Watch delivery reports after go-live; template mismatches show up as rejected or failed messages. See SMS delivery reports and webhooks.
Frequently asked questions
What is {#var#} in a DLT template?
It is the placeholder for a value that changes in each message, such as a name, OTP or order number. The fixed text around it must match the approved template exactly.
Can one DLT template be used with several headers?
No. One content template cannot be linked to multiple headers. Register the template separately for each header that needs it.
Why was my DLT template rejected?
The most common reasons are a category that does not match the content, a missing or inconsistent brand name, too many variables, and links or call-back numbers that are not whitelisted. The operator’s DLT platform often shows the reason.
Who approves SMS DLT templates?
SMS headers and templates are approved through the applicable DLT platform and telecom operator process. TXTPro helps you prepare and review headers and templates, but does not approve DLT registrations or templates itself and cannot guarantee approval or timelines.
Sources and further reading
Editorial note: This article is written by the TXTPro editorial team (KSVL Solutions) for general information. Regulations and platform policies change; check the linked official sources and seek professional advice for your situation. See our editorial standards.
