Overview
Dust agents can generate files from text content and convert files between different formats using the File Generation capability. This allows your agents to create downloadable documents in formats like PDF, Word, Excel, and more.
The File Generation capability supports the following output formats:
How to Enable File Generation
When creating or editing an agent:
- In the Agent Builder, click on Add Tools
- Select the File Generation capability
- Save your agent
No additional configuration is required.
How It Works
Generating Files
The agent can generate files from text content you provide or content it creates. When generating files for binary formats (PDF, DOCX, XLSX, PPTX), the agent can accept content in:
Converting Files
The agent can also convert files between different formats. For example:
- Convert a Markdown file to PDF
- Convert HTML to Word document
- Convert CSV to Excel
Example Use Cases
Creating a Report:
Converting a Document:
Generating a Spreadsheet:
Generated files appear in the conversation and can be downloaded directly. All
files in a conversation are accessible via the folder icon.
Limitations
- Maximum file content size is 64,000 characters for generated content
- Complex formatting in source content may not always convert perfectly between formats
- For interactive data visualizations, consider using Frames instead