{
  "name": "Assess blockchain smart contract and tokenomics risk with GPT-4o and Gmail",
  "nodes": [
    {
      "id": "2c308a2b-d2b7-4335-b67d-4c97d93551f2",
      "name": "Start Analysis",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        256,
        304
      ]
    },
    {
      "id": "ed4c35e7-1b3e-4770-b669-14bc2c392746",
      "name": "Read Solidity Files",
      "type": "n8n-nodes-base.readWriteFile",
      "position": [
        480,
        304
      ]
    },
    {
      "id": "488d0fb6-bfe3-4746-a37c-ea6c8b5af1e5",
      "name": "Blockchain Risk Orchestrator",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        976,
        304
      ]
    },
    {
      "id": "5d75566f-9c36-44fc-a94e-596c5633ce84",
      "name": "Orchestrator Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        672,
        672
      ]
    },
    {
      "id": "e52308cf-a2fb-4268-bc75-64d806d3a8c8",
      "name": "Smart Contract Auditor Agent",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        832,
        640
      ]
    },
    {
      "id": "58bcb178-d29e-4561-b047-2b0360d5ea74",
      "name": "Auditor Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        768,
        816
      ]
    },
    {
      "id": "d941fb11-613a-40b6-a74f-fff1c2bb4eb2",
      "name": "Static Analysis Tool",
      "type": "@n8n/n8n-nodes-langchain.toolCode",
      "position": [
        896,
        816
      ]
    },
    {
      "id": "94520621-6cd9-4e1a-a322-c0dff930195f",
      "name": "Risk Score Calculator",
      "type": "@n8n/n8n-nodes-langchain.toolCalculator",
      "position": [
        1152,
        800
      ]
    },
    {
      "id": "1345d433-0c91-4ab4-95af-964cf42d0b2b",
      "name": "Tokenomics Sustainability Agent",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        1216,
        624
      ]
    },
    {
      "id": "1b73ec13-2265-462c-a78b-4c12adb1d5bc",
      "name": "Tokenomics Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1312,
        800
      ]
    },
    {
      "id": "24b85003-b15c-438c-86e3-20aa50d308e3",
      "name": "Monte Carlo Simulation Tool",
      "type": "@n8n/n8n-nodes-langchain.toolCode",
      "position": [
        1472,
        800
      ]
    },
    {
      "id": "685b4822-8b5c-4979-80ff-9f2af32d7a6e",
      "name": "Structured Risk Report",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1664,
        768
      ]
    },
    {
      "id": "285d478b-152d-43e1-b6fb-7d38b8a07e0e",
      "name": "Prepare Storage Data",
      "type": "n8n-nodes-base.set",
      "position": [
        1600,
        304
      ]
    },
    {
      "id": "761f9a11-1cc6-4f3a-8e19-f069eeb14411",
      "name": "Store Risk Analysis",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        1824,
        304
      ]
    },
    {
      "id": "d49346a2-9ae1-457f-8719-e1b0ab026674",
      "name": "Send Risk Report Email",
      "type": "n8n-nodes-base.gmail",
      "position": [
        2096,
        304
      ]
    },
    {
      "id": "0b70e035-e44c-461b-9ffd-10f8457ca980",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        208,
        160
      ],
      "parameters": {
        "width": 1120,
        "height": 336,
        "content": "## Trigger, Orchestrate Specialist Agents\n**What:** Blockchain Risk Orchestrator delegates tasks to Smart Contract Auditor and Tokenomics Sustainability agents.\n**Why:** Parallel specialised analysis "
      }
    },
    {
      "id": "feae089b-d969-4d16-b53c-e76605654dc9",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        768,
        -128
      ],
      "parameters": {
        "width": 400,
        "height": 256,
        "content": "## Setup Steps\n1. Configure the Read Solidity Files node with the correct disk path to your `.sol` files.\n2. Add LLM API credentials to all Chat Model nodes (Orchestrator, Auditor, Tokenomics).\n3. Set"
      }
    },
    {
      "id": "09414b7c-ba3e-4eb4-aeae-4e9ca7d5173f",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        224,
        -240
      ],
      "parameters": {
        "width": 528,
        "height": 368,
        "content": "## How It Works\nThis workflow automates blockchain risk assessment using a multi-agent AI architecture, targeting DeFi developers, blockchain auditors, and Web3 project teams who need rigorous smart c"
      }
    },
    {
      "id": "80030564-edfa-463e-bf11-a99491e2751e",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1200,
        -144
      ],
      "parameters": {
        "width": 448,
        "height": 256,
        "content": "## Setup Steps\n1. Configure the Read Solidity Files node with the correct disk path to your `.sol` files.\n2. Add LLM API credentials to all Chat Model nodes (Orchestrator, Auditor, Tokenomics).\n3. Set"
      }
    },
    {
      "id": "0ffba75d-26ae-43fc-bd9c-adff14144075",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        160,
        512
      ],
      "parameters": {
        "width": 928,
        "height": 512,
        "content": "## Smart Contract Audit\n**What:** Auditor Agent applies static analysis to detect vulnerabilities in Solidity code.\n**Why:** Identifies exploitable flaws (e.g., reentrancy, overflow) before deployment"
      }
    },
    {
      "id": "5d2d2126-7b64-46b0-bc9e-77fddf6dcc85",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1104,
        608
      ],
      "parameters": {
        "width": 832,
        "height": 480,
        "content": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n## Tokenomics Simulation\n**What:** Tokenomics Agent runs Monte Carlo simulations and calculates risk scores.\n**Why:** Models economic sustainability under uncertainty, reveali"
      }
    },
    {
      "id": "4289bb92-95d5-4826-b7aa-7a715bcdd09a",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1376,
        208
      ],
      "parameters": {
        "width": 880,
        "height": 320,
        "content": "## Parse, Store & Report\n**What:** Structured Risk Report Parser consolidates findings; data is stored and emailed via Gmail.\n**Why:** Delivers a traceable, shareable audit trail to all stakeholders a"
      }
    }
  ],
  "connections": {
    "Auditor Model": {
      "ai_languageModel": [
        [
          {
            "node": "Smart Contract Auditor Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Start Analysis": {
      "main": [
        [
          {
            "node": "Read Solidity Files",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Tokenomics Model": {
      "ai_languageModel": [
        [
          {
            "node": "Tokenomics Sustainability Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Orchestrator Model": {
      "ai_languageModel": [
        [
          {
            "node": "Blockchain Risk Orchestrator",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Read Solidity Files": {
      "main": [
        [
          {
            "node": "Blockchain Risk Orchestrator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Store Risk Analysis": {
      "main": [
        [
          {
            "node": "Send Risk Report Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Storage Data": {
      "main": [
        [
          {
            "node": "Store Risk Analysis",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Static Analysis Tool": {
      "ai_tool": [
        [
          {
            "node": "Smart Contract Auditor Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Risk Score Calculator": {
      "ai_tool": [
        [
          {
            "node": "Smart Contract Auditor Agent",
            "type": "ai_tool",
            "index": 0
          },
          {
            "node": "Tokenomics Sustainability Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Structured Risk Report": {
      "ai_outputParser": [
        [
          {
            "node": "Blockchain Risk Orchestrator",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Monte Carlo Simulation Tool": {
      "ai_tool": [
        [
          {
            "node": "Tokenomics Sustainability Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Blockchain Risk Orchestrator": {
      "main": [
        [
          {
            "node": "Prepare Storage Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Smart Contract Auditor Agent": {
      "ai_tool": [
        [
          {
            "node": "Blockchain Risk Orchestrator",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Tokenomics Sustainability Agent": {
      "ai_tool": [
        [
          {
            "node": "Blockchain Risk Orchestrator",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  }
}