Skip to main content

Templates and variables

Templates are the messages that collection rule steps send. Each template belongs to a channel (email, SMS, WhatsApp, voice), has a category, a tone and a body with variables that the engine replaces with the charge's real data at send time.

Template editor

Categories

CategoryTypical use
Reminder (reminder)Before the due date
Overdue notice (overdue)After the due date
Negotiation (negotiation)Agreement proposal
Credit bureau warning (negativation_warning)Prior notice required before registering with the credit bureau
Protest warning (protest_warning)Prior notice before protest
Payment confirmation (payment_confirmation)Post-payment

Emails have a subject and a body; SMS/WhatsApp have only a body. Both subject and body accept variables.

Variable syntax

Write the variable between double curly braces; optionally, apply a formatter with |:

Olá {{ person.name }}, sua fatura {{ charge.documentNumber }} de
{{ charge.currentAmount | currency }} venceu em {{ charge.dueDate | date }}.
Pague pelo PIX: {{ charge.pixEmv }}

A variable with no value on file becomes empty text (the message does not break).

Available variables

Customer (person.)

VariableContent
{{ person.name }}Customer name
{{ person.legalName }}Legal name
{{ person.documentNumber }}CPF/CNPJ
{{ person.documentType }}Document type

Charge (charge.)

VariableContent
{{ charge.documentNumber }}Document/invoice number
{{ charge.originalAmount }}Original amount
{{ charge.currentAmount }}Updated amount (with interest/fine/discount)
{{ charge.interestAmount }}Interest amount
{{ charge.fineAmount }}Fine amount
{{ charge.discountAmount }}Discount amount
{{ charge.dueDate }}Due date
{{ charge.issueDate }}Issue date
{{ charge.daysOverdue }}Days overdue
{{ charge.status }}Charge status
{{ charge.barcode }}Boleto barcode
{{ charge.pixEmv }}Pix copy-and-paste code
{{ charge.paymentUrl }}Payment link

Your company (account.)

VariableContent
{{ account.name }}Company name
{{ account.tradeName }}Trade name
{{ account.documentNumber }}Company CNPJ
{{ account.phone }}Contact phone
{{ account.email }}Contact email
{{ account.website }}Company website

Classification (classification.)

VariableContent
{{ classification.name }}Name of the customer's classification

The collectionRule. and collectionRuleStep. prefixes (data about the rule and the step that originated the send) are also available for advanced cases.

Formatters

FormatterResult
currencyR$ 1.234,56
date25/12/2025
dateTime25/12/2025 14:30
document123.456.789-00
phone(11) 99999-9999

Example: {{ charge.currentAmount | currency }}, {{ person.documentNumber | document }}.

Validation

When saving, the system validates the template: unknown prefixes, nonexistent formatters and unbalanced braces ({{ without }}) are flagged as errors before the template goes live. The variable panel in the editor lists everything available — click to insert without typos.

Best practices

  • Have one template per step and match the tone to how overdue the debt is: friendly before the due date, firm after 15 days.
  • Always include a payment path (charge.pixEmv, charge.paymentUrl or charge.barcode) — a collection message with no way to pay generates calls to your support team.
  • For credit bureau and protest warnings, use the correct category: they document the prior notice in the audit trail.