Build documents with Document Builder Templates
Use Document Builder Templates to assemble documents from reusable sections and text options. You can add employee data, choose content for each section, and apply a Document Template for branding and layout.
HR Admins who create and generate documents in Salesforce.
Create a Document Builder Template
-
In HR Admin, find Document Builder Templates under Other.

-
Click New.

-
Enter a name, such as
Reference Letter DEorPerformance Review Template.
-
Click New to create a section.
-
Give each section a numerical position, such as
1for an introduction,2for the main content, and3for the closing.
-
Select a section.

-
Click New to add a text template.
-
Enter an option name, such as
Appraisal.
-
Add plain text, rich text, or supported employee merge fields.
-
Save the text template. Add more options when a section needs selectable variants, such as Outstanding, Good, or Satisfactory review text.

Add merge fields
Use these employee values in template content:
| Merge field | Value |
|---|---|
{employee_name} | Full name. |
{first_name} | First name. |
{last_name} | Last name. |
{start_date} | Employment start date. |
{end_date} | Employment end date, when present. |
{employee_number} | Employee ID. |
{department} | Department name. |
{job_title} | Current position. |
{manager_name} | Direct manager. |
{salary} | Salary information when permissions allow access. |
{workload} | Work schedule details. |
{$Label.flair__Afternoon} | A custom label for multilingual content. |
Use curly braces for plain-text fields. Rich-text fields may use different syntax.
Generate a document
Choose a template and employee
-
In the App Launcher (⋮⋮ grid icon), search for
Document Builder Documents. -
Open Document Builder Documents.
-
Click New.

-
Under Select an Option, search for and select a Document Builder Template.
-
Select the employee or employees who will receive the document.
-
Save the record. The template sections appear in Document Builder.

Assemble and export the document
-
For a section, click the information icon to review its HelpText or content instructions.
-
In the left sidebar, select a text option for each section. The selected content appears in the preview on the right.
-
Optional: Edit the selected content. Switching to another option discards these manual edits.

-
Click Export and Save Document. The file is saved under Documents for the employee in the Employee Hub.
-
Optional: Download a PDF for printing.

Apply a Document Template layout
Use a Document Template when the generated content needs a branded layout.
-
Go to Staff and Docs → Document Templates.
-
Click Create Document Templates.

-
For the template object, select Document Builder.

-
In the source file, add
[result]for plain text or[~~result]to preserve formatting. -
Upload the source file with its branding and layout.

-
Map the placeholder to Result.

-
Click Preview.

-
Select the Document Builder Document to use.

-
Generate the document. The result uses the uploaded branding and the selected modular content.

Connect Document Builder to other processes
- Use a workflow to trigger document generation.
- Combine the generated document with an e-signature process.
- Use an approval flow to review the document.
Troubleshooting
A template does not appear in Document Builder
- Confirm that the template is saved.
- Confirm that each section has at least one text option.
- Remove special characters from the template name.
Merge fields do not populate
- Match the field name exactly, including capitalization.
- Confirm that the employee record contains the value.
- Confirm that you have permission to view the field.
Formatting changes in the result
- Use rich-text fields for complex formatting.
- Test the output in another browser.
- Apply a Document Template when the document needs a consistent layout.