Block 1 - Schedule Weekly (Mon 8AM)
- Type / Role
- n8n-nodes-base.cron - cron
- Config choices
- Version 1
This workflow is provided as-is. Please review and test before using in production.
Generate Weekly Energy Consumption Reports with API, Email and Google Drive This workflow automates the process of retrieving energy consumption data, formatting it into a CSV report, and distri...
n8n-nodes-base.cron, n8n-nodes-base.httprequest, n8n-nodes-base.code, n8n-nodes-base.converttofile, n8n-nodes-base.emailsend, n8n-nodes-base.googledrive, 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 automates the process of retrieving energy consumption data, formatting it into a CSV report, and distributing it every week via email and Google Drive.
Energy providers, sustainability departments, facility managers, renewable energy operators.
Workflow triggers every Monday at 8 AM, fetches consumption data, emails CSV report and saves a copy to Google Drive.
https://api.energidataservice.dk/dataset/ConsumptionDE35Hour
(sample API)
Sample Response Structure:
{
"records": [
{
"HourDK": "2025-08-25T01:00:00",
"MunicipalityNo": ___,
"MunicipalityName": "Copenhagen",
"ConsumptionkWh": 12345.67
}
]
}
records array from the API response and maps each entry into separate JSON items for easier handling downstream.const itemlist = $input.first().json.records;
return itemlist.map(r => ({ json: r }));
data.fromEmail: Sender email address (configure in node).toEmail: Recipient email address.subject: "Weekly Energy Consumption Report".attachments: =data (binary data from the previous node).energy_report_{{ $now.format('yyyy_MM_dd_HH_ii_ss') }}
Change report frequency, email template, data format (CSV/Excel) or add-ons.
| Issue | Cause | Solution |
|---|---|---|
| Data not fetched | API endpoint incorrect | Verify URL |
| Email delivery issues | SMTP configuration incorrect | Verify SMTP |
| Drive save fails | Permissions/Drive ID incorrect | Check Drive permissions |
Contact WeblineIndia for additional customization and support, we're happy to help.
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 weekly energy consumption reports with EnergiDataService, email and Google Drive |
|---|---|
| Complexity | intermediate |
| Nodes | 12 |
| Categories | Document Extraction, Multimodal AI |
| Author | WeblineIndia |
| Published | 19 Aug 2025 |
Use the JSON export at /data/workflows/7592/7592.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.
Generate Weekly Energy Consumption Reports with API, Email and Google Drive This workflow automates the process of retrieving energy consumption data, formatting it into a CSV report, and distri...
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, Multimodal AI use case.