Automatización de documentos empresariales a nivel de blockchain: admite informes de auditoría de transacciones multi-cadena e integración con Google Drive y Notion
Este es unDocument Extraction, AI Summarizationflujo de automatización del dominio deautomatización que contiene 20 nodos.Utiliza principalmente nodos como Code, Notion, Webhook, EmailSend, GoogleDrive. Generar informes de auditoría de las cadenas de bloques Ethereum y Solana, con soporte para exportación PDF a Drive y Notion
- •Clave de API de Notion
- •Punto final de HTTP Webhook (n8n generará automáticamente)
- •Credenciales de API de Google Drive
- •Pueden requerirse credenciales de autenticación para la API de destino
Nodos utilizados (20)
{
"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": "Evento Blockchain 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": "Monitor de Transacciones Ethereum",
"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": "Monitor de Transacciones Solana",
"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": "Procesador de Datos de Transacción",
"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": "Generador de PDF de Informe de Auditoría",
"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": "Subir a Google Drive",
"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": "Crear Entrada de Auditoría Notion",
"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": "Notificación al Equipo Financiero",
"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": "Registro de Auditoría de Contrato Inteligente",
"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": "Respuesta Webhook",
"type": "n8n-nodes-base.respondToWebhook",
"position": [
1328,
528
],
"parameters": {
"options": {
"responseCode": 200
}
},
"typeVersion": 1
},
{
"id": "d8780878-0d1c-4b43-9301-80d3365eeba7",
"name": "Nota Adhesiva",
"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": "Nota Adhesiva1",
"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": "Nota Adhesiva2",
"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": "Nota Adhesiva3",
"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": "Nota Adhesiva4",
"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": "Nota Adhesiva5",
"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": "Nota Adhesiva6",
"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": "Nota Adhesiva7",
"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": "Nota Adhesiva8",
"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": "Nota Adhesiva9",
"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": {
"c7929f10-68b8-4a9c-b8fd-b1c0431151be": {
"main": [
[
{
"node": "ac1c6c14-0e7f-4141-90be-024e252cd3be",
"type": "main",
"index": 0
}
]
]
},
"b9741788-3c54-4060-85f3-e227c7ed0f9c": {
"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": "ac1c6c14-0e7f-4141-90be-024e252cd3be",
"type": "main",
"index": 0
}
]
]
},
"bb5c89d6-a39b-4e31-90be-5116dda92fc9": {
"main": [
[
{
"node": "c7929f10-68b8-4a9c-b8fd-b1c0431151be",
"type": "main",
"index": 0
}
]
]
},
"ac0c6ef3-9a21-4d49-bbcf-810f49311d5c": {
"main": [
[
{
"node": "ac1c6c14-0e7f-4141-90be-024e252cd3be",
"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
}
]
]
}
}
}¿Cómo usar este flujo de trabajo?
Copie el código de configuración JSON de arriba, cree un nuevo flujo de trabajo en su instancia de n8n y seleccione "Importar desde JSON", pegue la configuración y luego modifique la configuración de credenciales según sea necesario.
¿En qué escenarios es adecuado este flujo de trabajo?
Avanzado - Extracción de documentos, Resumen de IA
¿Es de pago?
Este flujo de trabajo es completamente gratuito, puede importarlo y usarlo directamente. Sin embargo, tenga en cuenta que los servicios de terceros utilizados en el flujo de trabajo (como la API de OpenAI) pueden requerir un pago por su cuenta.
Flujos de trabajo relacionados recomendados
Tegar karunia ilham
@tegarkaruniailhamHelping 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!"
Compartir este flujo de trabajo