> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flowforma.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Document generator

> Dynamically create complete documents from your FlowForma flow data, merging one or multiple Word templates and customising content per recipient.

<Info>
  Check out the modern Document Generation plugin: [FlowForma Doc Gen plugin installation](/product/flowforma-doc-gen/flowforma-doc-gen-plugin-installation).
</Info>

FlowForma document generation allows you to embed advanced document generation functionality into your flow.

The generator lets you dynamically create complete documents from one or multiple document templates by adding data from your form fields to your templates. The content of each document is customised for the intended recipient.

The generator also lets you merge data from different document templates. The data is merged based on the rules you define in the document template.

Check out these how-to videos to see for yourself:

<iframe width="100%" height="360" src="https://www.youtube.com/embed/sdsamHsxlMg" title="FlowForma document generation how-to video" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen />

<iframe width="100%" height="360" src="https://www.youtube.com/embed/agW3W0OHn4M" title="FlowForma document generation how-to video" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen />

<iframe width="100%" height="360" src="https://www.youtube.com/embed/jeNeCE_oWJM" title="FlowForma document generation how-to video" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen />

<iframe width="100%" height="360" src="https://www.youtube.com/embed/R5xzPyz2efI" title="FlowForma document generation how-to video" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen />

<iframe width="100%" height="360" src="https://www.youtube.com/embed/yrovGINs9n8" title="FlowForma document generation how-to video" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen />

## Document generation example

One example is generating an employment contract in a new joiner flow. Rather than using a different document template for each type of employee, you can use one document template and add rules to it. Say you have sales and non-sales departments: for the sales department, you insert targets and bonuses in the contract, and you can define a rule that hides this information from the document for non-sales employees.

Below are types of data you could insert in the generated employment contract:

* Name of the employee
* Address of the employee
* Start date
* Salary
* Department
* Manager
* Job description: you can dynamically insert text from a different template based on the selection made in this field; e.g. if you select Business Analyst, the job description for the business analyst is inserted in the document
* Place of work
* Benefits
* Etc.
