API、メール、Google Driveを使って週次エネルギーコストレポートを生成する
中級
これはDocument Extraction, Multimodal AI分野の自動化ワークフローで、12個のノードを含みます。主にCode, Cron, EmailSend, GoogleDrive, HttpRequestなどのノードを使用。 EnergiDataService、電子メール、Google ドライブを使用して週次のエネルギー消費レポートを生成します
前提条件
- •Google Drive API認証情報
- •ターゲットAPIの認証情報が必要な場合あり
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
"id": "5if9twDNChTpUQFf",
"meta": {
"instanceId": "14e4c77104722ab186539dfea5182e419aecc83d85963fe13f6de862c875ebfa"
},
"name": "Generate Weekly Energy Consumption Reports with API, Email and Google Drive",
"tags": [],
"nodes": [
{
"id": "4827c44f-1995-4cd9-837f-f06c55ce9697",
"name": "週次スケジュール (月曜日 8AM)",
"type": "n8n-nodes-base.cron",
"position": [
-200,
200
],
"parameters": {
"triggerTimes": {
"item": [
{
"hour": 8,
"mode": "everyWeek",
"weekday": "monday"
}
]
}
},
"typeVersion": 1
},
{
"id": "028bf36b-a75b-474d-a596-dcd8f4db7c20",
"name": "エネルギー・データ取得",
"type": "n8n-nodes-base.httpRequest",
"position": [
20,
200
],
"parameters": {
"url": "https://api.energidataservice.dk/dataset/ConsumptionDE35Hour",
"options": {}
},
"typeVersion": 1
},
{
"id": "f0fa171b-52b2-4350-8d0f-808117715e30",
"name": "レコードの正規化",
"type": "n8n-nodes-base.code",
"position": [
240,
200
],
"parameters": {
"jsCode": "const itemlist = $input.first().json.records;\nreturn itemlist.map(r => ({ json: r }));"
},
"typeVersion": 2
},
{
"id": "a47b2980-6da2-4dbc-bb09-d23d4b936d9f",
"name": "ファイル変換",
"type": "n8n-nodes-base.convertToFile",
"position": [
460,
200
],
"parameters": {
"options": {}
},
"typeVersion": 1.1
},
{
"id": "613baa2d-3929-4e88-aa65-5303860dcfb4",
"name": "週次レポートメール送信",
"type": "n8n-nodes-base.emailSend",
"position": [
680,
100
],
"parameters": {
"text": "Please find attached the latest weekly energy consumption report.",
"options": {},
"subject": "Weekly Energy Consumption Report",
"toEmail": "test@yopmail.com",
"fromEmail": "test@yopmail.com",
"attachments": "=data"
},
"typeVersion": 1
},
{
"id": "588f3a86-3932-499f-b3aa-e60cbc2c8ebd",
"name": "レポートファイルを Google Drive にアップロード",
"type": "n8n-nodes-base.googleDrive",
"position": [
680,
300
],
"parameters": {
"name": "=energy_report_{{ $now.format('yyyy_MM_dd_HH_ii_ss') }}",
"driveId": {
"__rl": true,
"mode": "list",
"value": "My Drive"
},
"options": {},
"folderId": {
"__rl": true,
"mode": "list",
"value": "root",
"cachedResultName": "/ (Root folder)"
}
},
"credentials": {
"googleDriveOAuth2Api": {
"id": "GrSonA33DqizXziW",
"name": "Google Drive account 4"
}
},
"typeVersion": 3
},
{
"id": "7c910c92-a9d4-4a2e-9e91-69d859ea633f",
"name": "付箋: ノード説明1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-240,
40
],
"parameters": {
"width": 160,
"height": 120,
"content": "📝 - **Schedule Weekly (Mon 8AM)**: Trigger every Monday at 8AM."
},
"typeVersion": 1
},
{
"id": "ff3f08c5-430d-4b3e-8ef5-f3f93d32efe7",
"name": "付箋: ノード説明2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-20,
40
],
"parameters": {
"width": 160,
"height": 120,
"content": "📝 - **Fetch Energy Data**: Call EnergiDataService.dk API."
},
"typeVersion": 1
},
{
"id": "1627fcfa-d1f6-40f5-90dd-0352b2a6fb63",
"name": "付箋: ノード説明3",
"type": "n8n-nodes-base.stickyNote",
"position": [
200,
40
],
"parameters": {
"width": 160,
"height": 120,
"content": "📝 - **Normalize Records**: Flatten JSON response (records → items)."
},
"typeVersion": 1
},
{
"id": "48440a87-317b-47e4-808c-b07e6411bdd0",
"name": "付箋: ノード説明4",
"type": "n8n-nodes-base.stickyNote",
"position": [
420,
40
],
"parameters": {
"width": 160,
"height": 120,
"content": "📝 - **Convert to File**: Turn items into a CSV (binary `data`)."
},
"typeVersion": 1
},
{
"id": "dd003fb3-dccc-4e2f-90d4-f9acbdcca301",
"name": "付箋: ノード説明5",
"type": "n8n-nodes-base.stickyNote",
"position": [
660,
-40
],
"parameters": {
"width": 160,
"height": 120,
"content": "📝 - **Email Weekly Report**: Email the CSV file."
},
"typeVersion": 1
},
{
"id": "2f2425e1-86d2-499c-be72-3f42d723385c",
"name": "付箋: ノード説明6",
"type": "n8n-nodes-base.stickyNote",
"position": [
660,
500
],
"parameters": {
"width": 160,
"height": 120,
"content": "📝 - **Upload File to Drive**: Save CSV to Google Drive."
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "c9007e5b-7c88-4384-97bf-12dff0a2672c",
"connections": {
"a47b2980-6da2-4dbc-bb09-d23d4b936d9f": {
"main": [
[
{
"node": "613baa2d-3929-4e88-aa65-5303860dcfb4",
"type": "main",
"index": 0
},
{
"node": "588f3a86-3932-499f-b3aa-e60cbc2c8ebd",
"type": "main",
"index": 0
}
]
]
},
"028bf36b-a75b-474d-a596-dcd8f4db7c20": {
"main": [
[
{
"node": "f0fa171b-52b2-4350-8d0f-808117715e30",
"type": "main",
"index": 0
}
]
]
},
"f0fa171b-52b2-4350-8d0f-808117715e30": {
"main": [
[
{
"node": "a47b2980-6da2-4dbc-bb09-d23d4b936d9f",
"type": "main",
"index": 0
}
]
]
},
"4827c44f-1995-4cd9-837f-f06c55ce9697": {
"main": [
[
{
"node": "028bf36b-a75b-474d-a596-dcd8f4db7c20",
"type": "main",
"index": 0
}
]
]
}
}
}よくある質問
このワークフローの使い方は?
上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。
このワークフローはどんな場面に適していますか?
中級 - 文書抽出, マルチモーダルAI
有料ですか?
このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。
関連ワークフロー
月次エネルギー発電レポート
月次エネルギーレポートを PostgreSQL、PDF.co、メール送信で自動生成
Code
Gmail
Postgres
+
Code
Gmail
Postgres
7 ノードWeblineIndia
文書抽出
Googleスheetsからの仕事の公開の期限切れチェックと再通知のためにHTTP Last-Modifiedを使用
Google Sheets、HTTP チェック、Gmail を使った求人情報掲載期限の自動提醒
If
Set
Code
+
If
Set
Code
19 ノードWeblineIndia
人事
Claude AI、GoMarble MCP、Googleスライドを使用して週次マーケティングサマリー案内資料の自動生成
Claude AI、GoMarble MCP、Googleスライドを使って週次のMeta広告レポートを自動化
Set
Code
Gmail
+
Set
Code
Gmail
15 ノードSankalp Dev
文書抽出
Outlook を使用して Square の月次売上レポートを自動送信
Outlook を通じて Square の月次販売レポートを自動送信する
If
Code
Split Out
+
If
Code
Split Out
16 ノードRosh Ragel
文書抽出
GPT-4.1-mini、Firecrawl、Parseraを使ってウェブサイトをLLM就緒の知識ベースに変換
GPT-4.1-mini、Firecrawl、Parseraを使用して、ウェブサイトをLLMが利用可能な知識ベースに変換します
Set
Switch
Split Out
+
Set
Switch
Split Out
31 ノードAayushman Sharma
文書抽出
Google Drive と Sheets を連携して複数のデータセットから複数ワークシートの Excel ワークブックを作成
データセットを統合してGoogle DriveとSheetsでマルチスプシートExcelブックを作成
Code
Merge
Google Drive
+
Code
Merge
Google Drive
12 ノードRobert Breen
文書抽出
ワークフロー情報
難易度
中級
ノード数12
カテゴリー2
ノードタイプ7
作成者
WeblineIndia
@weblineindiaA Leading Software Engineering, Consulting & Outsourcing Services Company in USA & India serving Clients Globally since 1999.
外部リンク
n8n.ioで表示 →
このワークフローを共有