エンタープライズ向けブロックチェーン文書自動化:マルチチェーン取引監査レポートとGoogle Drive、Notionとの統合

上級

これはDocument Extraction, AI Summarization分野の自動化ワークフローで、20個のノードを含みます。主にCode, Notion, Webhook, EmailSend, GoogleDriveなどのノードを使用。 以太坊およびSolanaブロックチェーンの監査レポート生成で、PDFをDriveおよびNotionにエクスポート可能

前提条件
  • Notion API Key
  • HTTP Webhookエンドポイント(n8nが自動生成)
  • Google Drive API認証情報
  • ターゲットAPIの認証情報が必要な場合あり

カテゴリー

ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
  "id": "qJ787oClYEkl9Kz1",
  "meta": {
    "instanceId": "b14f5dd921befc4584084cc386aea593f73c7c2b00b50933075d7967a4d1c502",
    "templateCredsSetupCompleted": true
  },
  "name": "Enterprise Blockchain Document Automation: Multi-Chain Transaction Audit Reports with Google Drive & Notion Integration",
  "tags": [
    {
      "id": "6Bd5Rth2OTf9nq38",
      "name": "blockchain",
      "createdAt": "2025-09-13T02:05:07.482Z",
      "updatedAt": "2025-09-13T02:05:07.482Z"
    },
    {
      "id": "QOxbZB87U6rb2Fqo",
      "name": "solana",
      "createdAt": "2025-09-13T02:05:15.567Z",
      "updatedAt": "2025-09-13T02:05:15.567Z"
    },
    {
      "id": "IskMuxAEm0XglOir",
      "name": "eth",
      "createdAt": "2025-09-13T02:05:18.129Z",
      "updatedAt": "2025-09-13T02:05:18.129Z"
    },
    {
      "id": "4fhXioaB07FYjgDU",
      "name": "audit",
      "createdAt": "2025-09-13T02:05:29.474Z",
      "updatedAt": "2025-09-13T02:05:29.474Z"
    }
  ],
  "nodes": [
    {
      "id": "b9741788-3c54-4060-85f3-e227c7ed0f9c",
      "name": "Blockchain Event Webhook トリガー",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -448,
        240
      ],
      "webhookId": "07f4d8d3-e797-4cb9-9591-01a9f4a951b3",
      "parameters": {
        "path": "blockchain-transaction",
        "options": {},
        "httpMethod": "POST",
        "responseMode": "responseNode"
      },
      "typeVersion": 1
    },
    {
      "id": "dfcaa9a6-8eee-432f-ac39-28ca989d1233",
      "name": "Ethereum Transaction Monitor",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -16,
        208
      ],
      "parameters": {
        "url": "https://api.alchemy.com/v2/{{ $credentials.alchemy.apiKey }}/",
        "method": "POST",
        "options": {},
        "sendBody": true,
        "sendHeaders": true,
        "authentication": "genericCredentialType",
        "bodyParameters": {
          "parameters": []
        },
        "genericAuthType": "httpHeaderAuth",
        "headerParameters": {
          "parameters": [
            {
              "name": "Content-Type",
              "value": "application/json"
            }
          ]
        }
      },
      "credentials": {
        "httpHeaderAuth": {
          "id": "BByciG6fcfsvVecy",
          "name": "Header Auth account"
        }
      },
      "typeVersion": 3
    },
    {
      "id": "7e3fa61b-7293-493b-87ac-6d334af4a917",
      "name": "Solana Transaction Monitor",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -16,
        608
      ],
      "parameters": {
        "url": "https://api.mainnet-beta.solana.com",
        "method": "POST",
        "options": {},
        "sendBody": true,
        "sendHeaders": true,
        "bodyParameters": {
          "parameters": [
            {}
          ]
        },
        "headerParameters": {
          "parameters": [
            {
              "name": "Content-Type",
              "value": "application/json"
            }
          ]
        }
      },
      "typeVersion": 3
    },
    {
      "id": "fed4d819-3ad5-4c7e-ab53-30bfafa78064",
      "name": "Transaction Data Processor",
      "type": "n8n-nodes-base.code",
      "position": [
        320,
        464
      ],
      "parameters": {
        "jsCode": "\n// Process blockchain transaction data\nconst processTransactionData = (items) => {\n  const processedData = items.map(item => {\n    const data = item.json;\n\n    // Extract key transaction details\n    const transactionData = {\n      transactionHash: data.transactionHash || data.signature,\n      blockNumber: data.blockNumber || data.slot,\n      from: data.from || data.feePayer,\n      to: data.to || data.accounts?.[0],\n      value: data.value || data.amount,\n      gasUsed: data.gasUsed || data.computeUnitsConsumed,\n      timestamp: new Date().toISOString(),\n      blockchain: data.blockchain || (data.signature ? 'solana' : 'ethereum'),\n      contractAddress: data.logs?.[0]?.address || data.programId,\n      eventData: data.logs || data.instructions,\n      auditTrail: {\n        verified: true,\n        riskScore: calculateRiskScore(data),\n        complianceStatus: checkCompliance(data)\n      }\n    };\n\n    return { json: transactionData };\n  });\n\n  return processedData;\n};\n\n// Risk scoring algorithm\nconst calculateRiskScore = (data) => {\n  let score = 0;\n\n  // High value transactions increase risk\n  if (parseFloat(data.value || 0) > 1000000) score += 30;\n\n  // Unknown addresses increase risk\n  if (!data.from || !data.to) score += 20;\n\n  // Failed transactions increase risk\n  if (data.status === 'failed') score += 40;\n\n  // Multiple contract interactions increase risk\n  if ((data.logs?.length || 0) > 5) score += 15;\n\n  return Math.min(score, 100);\n};\n\n// Compliance check\nconst checkCompliance = (data) => {\n  const checks = {\n    kycVerified: true, // Placeholder - integrate with KYC service\n    sanctionsCheck: true, // Placeholder - integrate with sanctions list\n    jurisdictionCompliant: true,\n    reportingRequired: parseFloat(data.value || 0) > 10000\n  };\n\n  return checks;\n};\n\nreturn processTransactionData($input.all());\n"
      },
      "typeVersion": 2
    },
    {
      "id": "bb5c89d6-a39b-4e31-90be-5116dda92fc9",
      "name": "Audit Report PDF Generator",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        576,
        80
      ],
      "parameters": {
        "url": "https://api.apitemplate.io/v2/create",
        "method": "POST",
        "options": {},
        "sendBody": true,
        "sendHeaders": true,
        "authentication": "genericCredentialType",
        "bodyParameters": {
          "parameters": [
            {}
          ]
        },
        "genericAuthType": "httpHeaderAuth",
        "headerParameters": {
          "parameters": [
            {
              "name": "Content-Type",
              "value": "application/json"
            }
          ]
        }
      },
      "credentials": {
        "httpHeaderAuth": {
          "id": "BByciG6fcfsvVecy",
          "name": "Header Auth account"
        }
      },
      "typeVersion": 3
    },
    {
      "id": "c7929f10-68b8-4a9c-b8fd-b1c0431151be",
      "name": "Upload to Google ドライブ",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        880,
        160
      ],
      "parameters": {
        "name": "Blockchain_Audit_Report_{{ $json.transactionHash }}_{{ new Date().toISOString().split('T')[0] }}.pdf",
        "driveId": {
          "__rl": true,
          "mode": "list",
          "value": "My Drive"
        },
        "options": {},
        "folderId": {
          "__rl": true,
          "mode": "list",
          "value": "root",
          "cachedResultName": "/ (Root folder)"
        }
      },
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "NUaKJykQqq5DtSNV",
          "name": "Google Drive account"
        }
      },
      "typeVersion": 3
    },
    {
      "id": "3745e197-e37b-40d8-80c0-17044fc62ebf",
      "name": "Create Notion Audit Entry",
      "type": "n8n-nodes-base.notion",
      "position": [
        640,
        528
      ],
      "parameters": {
        "options": {},
        "resource": "databasePage",
        "databaseId": "{{ $credentials.notion.auditDatabaseId }}"
      },
      "credentials": {
        "notionApi": {
          "id": "10FiuTaIn4tHuWTs",
          "name": "Notion account"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "6f2845e7-f7de-41dc-b735-f03e21844bd1",
      "name": "Finance Team Notification",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        976,
        512
      ],
      "webhookId": "9467f8c6-e08f-4b28-95f5-28c7a4b555aa",
      "parameters": {
        "options": {
          "ccEmail": "compliance@company.com",
          "bccEmail": "audit-logs@company.com",
          "allowUnauthorizedCerts": false
        },
        "subject": "🔗 New Blockchain Transaction Audit Report - {{ $json.blockchain }} {{ $json.transactionHash }}",
        "toEmail": "finance-team@company.com",
        "fromEmail": "blockchain-audit@company.com"
      },
      "credentials": {
        "smtp": {
          "id": "bu96rpU9INmI4MC5",
          "name": "SMTP account"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "ac0c6ef3-9a21-4d49-bbcf-810f49311d5c",
      "name": "Smart Contract Audit Trail",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        816,
        896
      ],
      "parameters": {
        "url": "{{ $json.blockchain === 'ethereum' ? 'https://api.etherscan.io/api' : 'https://api.solscan.io/transaction' }}",
        "method": "POST",
        "options": {},
        "sendQuery": true,
        "sendHeaders": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "module",
              "value": "contract"
            },
            {
              "name": "action",
              "value": "getabi"
            },
            {
              "name": "address",
              "value": "{{ $json.contractAddress }}"
            },
            {
              "name": "apikey",
              "value": "{{ $credentials.etherscan.apiKey }}"
            }
          ]
        },
        "headerParameters": {
          "parameters": [
            {
              "name": "Content-Type",
              "value": "application/json"
            }
          ]
        }
      },
      "typeVersion": 3
    },
    {
      "id": "ac1c6c14-0e7f-4141-90be-024e252cd3be",
      "name": "Webhook トリガー Response",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        1328,
        528
      ],
      "parameters": {
        "options": {
          "responseCode": 200
        }
      },
      "typeVersion": 1
    },
    {
      "id": "d8780878-0d1c-4b43-9301-80d3365eeba7",
      "name": "付箋",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -672,
        144
      ],
      "parameters": {
        "width": 400,
        "height": 224,
        "content": "## Blockchain Event Webhook \n**Double click** to edit me. [Guide](https://docs.n8n.io/workflows/sticky-notes/)\nCatatan: Entry point sistem, bisa dipanggil external service"
      },
      "typeVersion": 1
    },
    {
      "id": "c83c59dc-71cb-442a-938a-ca4596a5c102",
      "name": "付箋1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -224,
        80
      ],
      "parameters": {
        "width": 336,
        "height": 288,
        "content": "## Ethereum Transaction Monitor \n**Double click** to edit me. [Guide](https://docs.n8n.io/workflows/sticky-notes/)\nPakai API key Alchemy, ambil data dari eth_getLogs"
      },
      "typeVersion": 1
    },
    {
      "id": "c308f341-bdde-4676-b2d4-b0e76f002de9",
      "name": "付箋2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -224,
        496
      ],
      "parameters": {
        "width": 352,
        "height": 272,
        "content": "## Solana Transaction Monitor\n**Double click** to edit me. [Guide](https://docs.n8n.io/workflows/sticky-notes/)\nDirect ke api.mainnet-beta.solana.com"
      },
      "typeVersion": 1
    },
    {
      "id": "5e4e9000-a0b8-479f-afa9-11f18713823d",
      "name": "付箋3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        160,
        336
      ],
      "parameters": {
        "width": 272,
        "height": 272,
        "content": "## Transaction Data Processor\n**Double click** to edit me. [Guide](https://docs.n8n.io/workflows/sticky-notes/)\nAI logic untuk calculate risk (0-100), compliance check"
      },
      "typeVersion": 1
    },
    {
      "id": "32923617-6012-4339-9608-7061febff7e4",
      "name": "付箋4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        432,
        -48
      ],
      "parameters": {
        "width": 272,
        "height": 288,
        "content": "##  Audit Report PDF Generator\n**Double click** to edit me. [Guide](https://docs.n8n.io/workflows/sticky-notes/)\nPakai APITemplate.io, butuh template ID"
      },
      "typeVersion": 1
    },
    {
      "id": "c5513557-0cb7-4531-bb4d-59defc2fc013",
      "name": "付箋5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        512,
        352
      ],
      "parameters": {
        "width": 256,
        "height": 336,
        "content": "## Create Notion Audit Entry\n**Double click** to edit me. [Guide](https://docs.n8n.io/workflows/sticky-notes/)\n\nStruktur: Hash, Blockchain, Risk Score, Date, Link, Compliance"
      },
      "typeVersion": 1
    },
    {
      "id": "0ebe6e0d-b48f-469b-906b-66d2443c5f0d",
      "name": "付箋6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        768,
        16
      ],
      "parameters": {
        "height": 288,
        "content": "## Upload to Google Drive\n**Double click** to edit me. [Guide](https://docs.n8n.io/workflows/sticky-notes/)\nBlockchain_Audit_Report_{hash}_{date}.pdf"
      },
      "typeVersion": 1
    },
    {
      "id": "b30de4ca-a9cc-436b-a3d9-cbab8583a06a",
      "name": "付箋7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        848,
        352
      ],
      "parameters": {
        "height": 320,
        "content": "## Finance Team Notification\n**Double click** to edit me. [Guide](https://docs.n8n.io/workflows/sticky-notes/)\n\nCC compliance, BCC audit-logs, format lengkap"
      },
      "typeVersion": 1
    },
    {
      "id": "ceddccac-d4af-410f-a8e9-8606496b9f77",
      "name": "付箋8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        704,
        720
      ],
      "parameters": {
        "height": 320,
        "content": "## Smart Contract Audit Trail\n**Double click** to edit me. [Guide](https://docs.n8n.io/workflows/sticky-notes/)\n Untuk audit trail blockchain-native\nFungsi: Verify contract ABI via Etherscan/Solscan"
      },
      "typeVersion": 1
    },
    {
      "id": "e679f575-0e94-4ba8-b4a0-b09ed6c83c93",
      "name": "付箋9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1216,
        400
      ],
      "parameters": {
        "height": 256,
        "content": "## Webhook Response \n**Double click** to edit me. [Guide](https://docs.n8n.io/workflows/sticky-notes/)\nKonfirmasi bahwa semua proses berhasil"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "callerPolicy": "workflowsFromSameOwner",
    "executionOrder": "v1",
    "executionTimeout": -1
  },
  "versionId": "36ce51c7-7d40-459c-b3a6-90ca9c2fbe1a",
  "connections": {
    "Upload to Google Drive": {
      "main": [
        [
          {
            "node": "Webhook Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Blockchain Event Webhook": {
      "main": [
        [
          {
            "node": "dfcaa9a6-8eee-432f-ac39-28ca989d1233",
            "type": "main",
            "index": 0
          },
          {
            "node": "7e3fa61b-7293-493b-87ac-6d334af4a917",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "3745e197-e37b-40d8-80c0-17044fc62ebf": {
      "main": [
        [
          {
            "node": "6f2845e7-f7de-41dc-b735-f03e21844bd1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "6f2845e7-f7de-41dc-b735-f03e21844bd1": {
      "main": [
        [
          {
            "node": "Webhook Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "bb5c89d6-a39b-4e31-90be-5116dda92fc9": {
      "main": [
        [
          {
            "node": "Upload to Google Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "ac0c6ef3-9a21-4d49-bbcf-810f49311d5c": {
      "main": [
        [
          {
            "node": "Webhook Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "7e3fa61b-7293-493b-87ac-6d334af4a917": {
      "main": [
        [
          {
            "node": "fed4d819-3ad5-4c7e-ab53-30bfafa78064",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "fed4d819-3ad5-4c7e-ab53-30bfafa78064": {
      "main": [
        [
          {
            "node": "bb5c89d6-a39b-4e31-90be-5116dda92fc9",
            "type": "main",
            "index": 0
          },
          {
            "node": "3745e197-e37b-40d8-80c0-17044fc62ebf",
            "type": "main",
            "index": 0
          },
          {
            "node": "ac0c6ef3-9a21-4d49-bbcf-810f49311d5c",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "dfcaa9a6-8eee-432f-ac39-28ca989d1233": {
      "main": [
        [
          {
            "node": "fed4d819-3ad5-4c7e-ab53-30bfafa78064",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
よくある質問

このワークフローの使い方は?

上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。

このワークフローはどんな場面に適していますか?

上級 - 文書抽出, AI要約

有料ですか?

このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。

ワークフロー情報
難易度
上級
ノード数20
カテゴリー2
ノードタイプ8
難易度説明

上級者向け、16ノード以上の複雑なワークフロー

作成者
Tegar karunia ilham

Tegar karunia ilham

@tegarkaruniailham

Helping business owners & marketers automate their processes with n8n. Specialist in custom workflows, API integrations, and template development. 📈 100+ successful automation projects 🔧 Premium n8n templates available 💡 Free consultation for custom automation Book a consultation for your business digital transformation!"

外部リンク
n8n.ioで表示

このワークフローを共有

カテゴリー

カテゴリー: 34