Block 1 - Transform data
- Type / Role
- n8n-nodes-base.code - code
- Config choices
- Version 2
This workflow is provided as-is. Please review and test before using in production.
Monthly Energy Generation Report (PostgreSQL → PDF → Email) This workflow automatically collects monthly energy generation data from a PostgreSQL database, converts it into a structured PDF report ...
n8n-nodes-base.code, n8n-nodes-base.httprequest, n8n-nodes-base.gmail, n8n-nodes-base.postgres, n8n-nodes-base.scheduletrigger, n8n-nodes-base.stickynote
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by WeblineIndia.
Original n8n.io sourceThis workflow automatically collects monthly energy generation data from a PostgreSQL database, converts it into a structured PDF report and emails it to stakeholders. It eliminates manual report creation and ensures timely delivery of performance summaries.
energy_data table.date_range, records, note).Import the workflow JSON into n8n.
Configure credentials:
Update:
energy_data).Activate workflow.
| Issue | Possible Cause | Solution |
|---|---|---|
| Workflow does not trigger | Cron not set correctly | Verify Schedule Trigger node interval is monthly |
| No data returned from Postgres | Wrong schema/table or DB creds | Check DB connection and table name |
| PDF not generated | Invalid/missing PDF.co API key | Generate a new key in PDF.co dashboard |
| Email not sent | Gmail OAuth expired or wrong recipient | Reconnect Gmail credentials and confirm recipient email |
| PDF output malformed | Incorrect JSON → HTML conversion | Check Code node formatting and PDF.co request body |
Our n8n workflow automation experts at WeblineIndia can help you:
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 | Automated monthly energy reports with PostgreSQL, PDF.co & email delivery |
|---|---|
| Complexity | intermediate |
| Nodes | 7 |
| Categories | Document Extraction |
| Author | WeblineIndia |
| Published | 01 Sept 2025 |
Use the JSON export at /data/workflows/8113/8113.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.
Monthly Energy Generation Report (PostgreSQL → PDF → Email) This workflow automatically collects monthly energy generation data from a PostgreSQL database, converts it into a structured PDF report ...
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.