Use Generate document in an AI Agent or Copilot to create a file on request. Generate a meeting summary from rich text, or use a Word template when a contract or report needs a specific layout. To generate a file from form data or process variables during a workflow, use the workflow action. Generate document action
Add the Generate document Tool
Open Tools in the AI Agent or Copilot.
Select Add a tool → Generate document → Next.
Name the tool and select Add or Add and configure.
Detail
Set the tool name and description. Say when to use the tool and what file it should produce. Then choose a Document generation mode.
Document generation mode
The system supports two document generation modes:
Mode | Description |
Generate | Generate a document using a built-in blank template with a Rich Text content input |
Generate with templates | Generate a document using one or multiple Word template files from document libraries |
Generate Mode
When Generate mode is selected, the system uses a built-in blank template to generate the document. This mode is suitable for documents with relatively simple structures where most content is dynamically generated by AI.
This mode contains a single input parameter:
Input name | Input type | Description |
Content | Rich text | Used to populate the main body of the generated document |
Fill using
The Content field supports two fill methods:
Fill method | Description |
Custom value | Manually enter fixed content as the document body |
Dynamically fill with AI | Let AI dynamically generate the content based on the configured parameters |
When Custom value is selected, you can directly enter fixed text in the Value field. The content will be inserted into the generated document as the document body. This is suitable for fixed instructions, standard text, or predefined notifications.
When Dynamically fill with AI is selected, click Customize to configure AI content generation parameters. In the popup window, you can configure:
Display Name
Description
Clear parameter names and descriptions help the AI better understand what content should be generated.
Generate with templates Mode
Use a Word template when the document needs an existing layout or identified placeholders. Select a single template, or add several and merge their contents into one output in the configured order.
Template file
In the Template file configuration area, you need to configure the following settings:
Setting | Description |
Application | Select the application containing the template file |
Data source | Select the document library storing the template file |
Path | Select the specific Word template file |
Click the button on the right side of the Path field to select a Word template file from the selected document library.
After selecting a file and clicking OK, the system will:
Automatically parse the Word document
Identify content controls inside the document
Display the detected content controls in the Content value section for dynamic content mapping
To use multiple template files, click Add another template file.
Configure content controls
Find the controls you want to fill. For a control that uses Dynamically fill with AI, use Customize in the Value column to describe the expected content. For a known value, select Custom value and choose a matching variable available to the current Agent or Copilot. For example, map the contract number to a verified identifier and let the agent draft a summary from the information it receives. Create a Word template · Compare the input options
Output Settings
Set Output format and Generated document name. The tool can produce Word or PDF output. If you need a single PDF, choose Single PDF file and check that the result opens as a PDF with the intended name.
Completion
Use After running to set when the assistant continues. Choose Waiting for response if the assistant needs the generated file before it replies. Use Response behavior to control how the assistant responds after execution.
Outputs available to the agent and other tools
Use Customize to check the output mappings. The documented output is File object, of type Attachment. Verify that the calling agent can use the returned file in a later step.
In a test run, generate a short file from a known rich text body. Check the returned attachment, file name, format, and contents.
Run template mode using a Word file with known sample controls. Check that the mapped values appear in the right places. If you use several templates, verify that the file contains each section in the configured order.
