Configure Once, Generate Many: Doxy's Approach to Document Automation

Published on 1/12/2025 by Mat Fish
Configure Once, Generate Many: Doxy's Approach to Document Automation

Doxy, a platform that turns Google Docs templates into automated PDF generators, follows a "configure once, generate many" approach to document automation. This means that after setting up and validating your template, you can generate unlimited documents from it without any additional configuration. This powerful one-to-many relationship lets you create a single template and generate thousands of customized documents. For example, you could create one invoice template and generate thousands of customized invoices or set up a single contract template and use it for all your clients.

How Does It Work?

When you add a template to Doxy, the platform performs a comprehensive validation process. This process includes:

This validation process ensures that your template is set up correctly and that all variables are properly formatted. Once your template has been validated, Doxy extracts a schema that is used for data validation and to provide users with a ready-made structure for form, Excel, Google Sheets, and API integration.

Benefits of Schema Extraction

The schema extracted from your template enables:

In addition to the benefits listed above, schema extraction also helps to:

Download as JSON Button: Simplifying API Integration

To further simplify API integration, Doxy has added a "Download JSON" button. This button leverages Doxy's existing template validation infrastructure to generate a complete API request body for any validated template. The generated JSON includes all text variables, table structures, image references, and proper nesting and formatting. This JSON can be used as-is when calling the POST documents endpoint. You can use this JSON directly in Doxy's Swagger documentation to test the API, your development environment, and the API client of your choice.

Conclusion

Doxy's "configure once, generate many" approach and schema extraction process simplifies and streamlines document automation. By validating templates and extracting a schema, Doxy ensures that documents are generated correctly and efficiently, whether you're generating single documents using the UI form or thousands of documents using bulk generation or API integration.