Block 1 - Email Is Valid?
- Type / Role
- n8n-nodes-base.if - if
- Config choices
- Version 2.3
This workflow is provided as-is. Please review and test before using in production.
Who’s this for This template is designed for teams and developers who need to generate PDF documents automatically from HTML templates. It’s suitable for use cases such as invoices, confirmation...
n8n-nodes-base.if, n8n-nodes-base.hunter, n8n-nodes-base.respondtowebhook, n8n-nodes-base.code, @pdfgeneratorapi/n8n-nodes-pdf-generator-api.pdfgeneratorapi, n8n-nodes-base.gmail, n8n-nodes-base.postgres, n8n-nodes-base.httprequest
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Marián Današ.
Original n8n.io sourceThis template is designed for teams and developers who need to generate PDF documents automatically from HTML templates. It’s suitable for use cases such as invoices, confirmations, reports, certificates, or any custom document that needs to be created dynamically based on incoming data.
This workflow automates the full lifecycle of document generation, from request validation to delivery and storage. It is triggered by a POST webhook that receives structured JSON data describing the requested document and client information.
Before generating the document, the workflow validates the client’s email address using Hunter Email Verification to prevent invalid or mistyped emails. If the email is valid, the workflow loads the appropriate HTML template from a Postgres database, fills it with the incoming data, and converts it into a PDF using PDF Generator API.
Once the PDF is generated, it is sent to the client via Gmail, uploaded to Supabase Storage, and the transaction is recorded in the database for tracking and auditing purposes.
Before activating the workflow, make sure all required services and connections are prepared and available in your n8n environment.
This workflow can be adapted to different document generation scenarios by extending or modifying its existing steps:
This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.
| Workflow | Generate PDF documents from HTML with PDF Generator API, Gmail and Supabase |
|---|---|
| Complexity | advanced |
| Nodes | 17 |
| Categories | Document Extraction |
| Author | Marián Današ |
| Published | 07 Jan 2026 |
Use the JSON export at /data/workflows/12554/12554.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.
Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.
Who’s this for This template is designed for teams and developers who need to generate PDF documents automatically from HTML templates. It’s suitable for use cases such as invoices, confirmation...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Document Extraction use case.