Generate Document Agent
The Generate Document agent creates formatted .docx documents from markdown content. It supports style guides to control fonts, headings, spacing, and branding, producing professional documents suitable for external distribution.
Use Cases
- Your workflow needs to produce a downloadable, formatted document (reports, proposals, summaries).
- You want to convert AI-generated markdown content into a branded Word document.
- A business process requires document output rather than inline text (e.g., generating SOWs, contracts, or reports).
| Input | Type | Description |
|---|
markdown | Text | The document content in markdown format. |
style_guide | Document | (Optional) A reference .docx document whose styles are applied to the output. |
Outputs
| Output | Type | Description |
|---|
document | Document | The generated .docx file. |
Configurations
| Parameter | Description | Default |
|---|
title | Document title (used in metadata and optionally as a header). | None |
How to Use This Agent
Generate a weekly summary report:
scheduled_trigger -> knowledge_search -> custom_agent("Write a weekly summary report in markdown") -> generate_document -> send_email -> workflow_output
- Custom Agent -- often used upstream to generate the markdown content.
- Chart Builder -- generates charts that can be included in documents.