Actions7
- Document Actions
- Template Actions
Overview
The node "DocuGenerate" automates the creation of high-quality PDF documents from Word templates by interacting with an external document generation API. Specifically, the "List Documents" operation under the "Document" resource allows users to retrieve a list of documents associated with a selected template. This is useful in scenarios where you want to manage or review generated documents programmatically, such as fetching all documents created from a specific template for reporting or further processing.
Practical examples include:
- Listing all invoices generated from a particular invoice template.
- Retrieving all contracts created from a contract template for audit purposes.
- Displaying all certificates issued based on a certificate template.
Properties
| Name | Meaning |
|---|---|
| Template Name or ID | Select a template from a dropdown list loaded dynamically via the API, or specify a template ID manually. This identifies which template's documents to list. |
Output
The node outputs JSON data representing the list of documents retrieved from the external service. Each item in the output JSON array corresponds to a document associated with the specified template. The exact structure depends on the API response but typically includes document metadata such as document ID, name, creation date, and status.
No binary data output is indicated for this operation.
Dependencies
- Requires an API key credential for authenticating requests to the external document generation service at
https://api.docugenerate.com. - The node uses this API key to authorize HTTP GET requests to fetch templates and documents.
- Proper configuration of the API key credential within n8n is necessary for successful operation.
Troubleshooting
- Empty Document List: If no documents are returned, verify that the selected template ID is correct and that documents have been generated for it.
- Authentication Errors: Errors related to authorization usually indicate an invalid or missing API key. Ensure the API key credential is correctly set up and has sufficient permissions.
- Network Issues: Timeouts or connection errors may occur if the API endpoint is unreachable. Check network connectivity and API service status.
- Invalid Template Selection: Selecting a non-existent template or providing an incorrect template ID can cause errors or empty results. Use the dynamic dropdown to select valid templates or ensure manual IDs are accurate.
Links and References
- DocuGenerate API Documentation (hypothetical link for reference)
- n8n Expressions Documentation - for using expressions to specify template IDs dynamically