Skip to main content

Use functions alongside tokens in your templates

Where to find functions in the token list, and how to insert one as a placeholder.

Functions load in the same list as your template tokens, grouped together at the bottom under Functions. Each one is inserted as a ready-to-use placeholder, so you can drop it into a template and fill in the details rather than typing the whole thing by hand.

How it works

  • Tokens and functions live in one list. Functions load from the same place as your template tokens, so everything you can insert appears in a single feed.

  • Functions have their own group. They appear in a dedicated Functions group at the bottom of the token list, so they are easy to find and kept separate from your regular tokens.

  • Functions are pre-filled as placeholders. Each one is inserted with an empty value, for example reservation_ext_reference(''), ready for you to complete.

How to insert a function

  1. Open the template editor.

    The template editor

  2. Open the token list where you normally insert tokens.

    Click on Token

  3. Scroll to the Functions group at the bottom of the list.

    Click on Functions

  4. Select the function you want. It is added to your template as a placeholder, for example reservation_ext_reference('').

    Selecting a function from the list

  5. Fill in the placeholder with the value the function needs.

When to use it

  • Building advanced templates faster. Insert function placeholders directly instead of writing them by hand.

  • Reducing setup errors. Keeping tokens and functions in one consistent list means less chance of mistyping a function.

What this does not do

  • Placeholders are empty by design. Functions insert with an empty value and still need the relevant guest or reservation context to resolve. Like your other tokens, they fill in at send time.

Common questions

Where do I find functions? In the template editor, open the token list and scroll to the Functions group at the bottom.

What is the difference between a token and a function? A token inserts a single saved piece of data. A function is a dynamic helper that looks up or transforms data, and it inserts as a placeholder you complete.

Why is the function value empty when I insert it? Functions are added as empty placeholders on purpose, so you can insert them quickly and then add the specific value. The function resolves at send time once the relevant context is available.

What to do next

For conditional logic rather than lookups, see Dynamic content with Twig logic. For reformatting a date or time token, see Formatting dates and times with tokens.

Getting help

Open Talk to Us in the left menu of the platform, or email support@bookboost.io.

Did this answer your question?