Tokens in PPTX templates

Tokens are placeholders to insert dynamic data. They act as variables and replaced with actual values when the document is generated.

PPTX token basics

Tokens are enclosed in {{curly braces}} and represent fields from a data source like JSON.

For example, if you’re generating a document and you want to insert the employee’s first name and last name dynamically, you might define tokens like {{FirstName}} and {{LastName}}.

When generating the document, these tokens would be replaced with the actual name, such as “John Doe”.

Template:

Tokens in PPTX template

JSON:

{
  "FirstName": "John",
  "LastName": "Doe",
  "Department": "Marketing"
}

Result:

Result tokens in PPTX template

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

System tokens

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

  • {{@date}} token provides full current date with time.

  • {{@number}} token inserts unique numbers in a document or in Process’ parameters.

Note

Review the article to get more information about automatic numbering.

If we add the system tokens to our template:

PPTX template with system tokens

And use the same JSON:

{
  "FirstName": "John",
  "LastName": "Doe",
  "Department": "Marketing"
}

We’ll get this result:

Result with PPTX system tokens

Tokens in Processes

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

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

PPTX tokens button in the template editor

You can also change the types of tokens extracted from your template. Learn how it works.

PPTX tokens panel