# Custom Templating

The authoring platform allows you to use a templating substitution system to dynamically inject the following content into trainings:

* Learner Name
* Learner Department
* Learner Role
* Company Name

This allows for content that feels very bespoke to the learner and thus hopefully engages them more when reading through the content.

### Adding in a Template Substitution

You can start typing the open bracket  "`{` " to see a dropdown list of available substitutions. You can either type in the name of the substitution and click enter, or you can just point and click on the one you want.

<figure><img src="/files/nknwGBgBj59j9BL23fU2" alt=""><figcaption></figcaption></figure>

Below we see what a sentence with all of the substitutions might look like. You can use these substitutions anywhere in the training, including page titles and section titles.

<figure><img src="/files/pRsvkgky1lXWupjmOTlc" alt=""><figcaption></figcaption></figure>

When a learner takes your training, they will see the result of the substitution templates. Below we see that all of this learners information was filled in successfully. If a learner does not have a department or role, then it will display as blanks. We encourage you to have department and roles for all learners.

<figure><img src="/files/DIH6zIWDYDpU0F04kjKy" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.itsaffinity.com/product-guides/lms-authoring/customizing-content/custom-templating.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
