Description
n8n-nodes-diro
This is an n8n community node for Diro – a document automation platform that generates PDF/PNG documents from templates.
n8n is a fair-code licensed workflow automation platform.
Features
- Generate Documents: Create PDF or PNG documents from templates with dynamic data
- Manage Documents: List, retrieve, and delete generated documents
- Manage Templates: List and retrieve your document templates
Installation
Follow the installation guide in the n8n community nodes documentation.
npm install n8n-nodes-diro
Credentials
To use this node, you need a Diro API key:
1. Sign up at www.getdiro.com
2. Go to Dashboard > API Keys
3. Create a new API key (requires Pro or Enterprise plan)
4. Copy the API key (starts with diro_)
Operations
Document
| Operation | Description |
|———–|————-|
| Generate | Generate a new document from a template |
| Get | Get a document by ID |
| Get Many | List all documents |
| Delete | Delete a document |
Template
| Operation | Description |
|———–|————-|
| Get | Get a template by ID (includes field definitions) |
| Get Many | List all templates |
Usage
Generate a Document
1. Add the Diro node to your workflow
2. Select Document as the resource
3. Select Generate as the operation
4. Enter the Template ID (from your Diro dashboard)
5. Enter the Data as JSON:
{
"name": "John Doe",
"score": 85,
"date": "2024-01-15"
}
6. (Optional) Set format to PDF or PNG
7. Execute the node
The response includes the document ID and download URL (pdfUrl).
Example Workflow
[Webhook] -> [Diro: Generate Document] -> [Send Email with PDF link]