Tokens in Modern engine

Modern templating engine

This page describes only the Modern templating engine.

Still using Classic syntax? See the Classic documentation.

Learn the differences.

Tokens in Modern template engine are placeholders for dynamic data in documents. They work like variables that get replaced with values during document generation.

Each token, typically enclosed in curly braces {{token}}, is linked to a specific piece of data from a source, such as a JSON file.

For example, to insert a client’s name into a template, use the token {{Name}}. When the document is generated, this token will be replaced with the actual name, such as “Alex Johnson”.

Template:

Modern template

JSON:

{
  "Name": "Alex Johnson",
  "Period": "March 2026",
  "Total": "$1,245.80"
}

Result:

Result with tokens in Modern engine

See more examples:

Advanced cases

Tokens can also be used in more advanced scenarios. For example, you can:

You can use special characters and spaces within your token names, but you’ll need to enclose the tag in square brackets inside the curly braces: {{[Full Name]}}.

Template:

Modern template with tokens

JSON:

{
 "num-1": 1,
 "num*2": 2,
 "Full Name": "John Doe"
}

Result:

Result with tokens in Modern engine

System tokens

There are two predefined system tokens: {{@date}} and {{@number}}. System tokens use the @ prefix.

  • {{@date|format(dd.MM.yyyy HH:mm)}} provides the current date and time in the required format.

  • {{@number}} inserts a unique number into your document or Process parameters.

Note

Check out this article for more information about automatic numbering.

Let’s add these system tokens to our template:

Modern template with system tokens

And use the same JSON data we used earlier:

{
  "Name": "Alex Johnson",
  "Period": "March 2026",
  "Total": "$1,245.80"
}

When the document is generated, the result looks like this:

Result with system tokens in Modern engine

Tokens in Processes

You can see the tokens used in your template by opening the token panel on the right side of the editor in Processes.

To open the panel, click the Tokens button above the template editor:

Tokens button above the template editor

You can also change the types of tokens used in your template. See how it works in this article.

Modern tokens panel