{
  "name": "Monitor cryptocurrency payments across multiple blockchains with AgentGatePay",
  "nodes": [
    {
      "id": "51d9e284-b69f-4650-9fa2-6314737afafd",
      "name": "▶️ Manual Trigger",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -1264,
        176
      ]
    },
    {
      "id": "f580877c-e612-41cc-ba62-33e2eefd8539",
      "name": "2️⃣ Load Config",
      "type": "n8n-nodes-base.code",
      "position": [
        -1040,
        176
      ]
    },
    {
      "id": "6ece2262-a292-4b44-9107-c302d8922e24",
      "name": "3️⃣ 📈 Get User Analytics",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -832,
        176
      ]
    },
    {
      "id": "e1bafe66-a6e4-459d-bd80-8e9d9e8bc91d",
      "name": "4️⃣ 💳 Get Payment History",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -608,
        176
      ]
    },
    {
      "id": "b0e7f80b-cc9b-4976-93e9-597b39c27955",
      "name": "5️⃣ 📋 Get Audit Logs (24h)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -384,
        176
      ]
    },
    {
      "id": "f9b85f1e-93c9-4e3b-b216-5340ad1c8990",
      "name": "6️⃣ 🔑 Get Active Mandates",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -160,
        176
      ]
    },
    {
      "id": "fdac1867-7530-45fc-9fe4-57dad4a03ca1",
      "name": "7️⃣ 🔍 Prepare Verification",
      "type": "n8n-nodes-base.code",
      "position": [
        48,
        176
      ]
    },
    {
      "id": "4fa77ac5-21c4-4bbc-af94-b706b61435ef",
      "name": "7B️⃣ Has TX Hash?",
      "type": "n8n-nodes-base.if",
      "position": [
        272,
        176
      ]
    },
    {
      "id": "22fa056e-43cc-4bc1-8af9-070df4f8183a",
      "name": "8️⃣ ✅ Verify on Blockchain",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        496,
        80
      ]
    },
    {
      "id": "b6529d72-e14e-4f99-ab90-583f3ce3975a",
      "name": "8B️⃣ Skip Verification",
      "type": "n8n-nodes-base.code",
      "position": [
        496,
        288
      ]
    },
    {
      "id": "3d0ec196-1e34-4b77-bb6f-7fed3bf6fc3e",
      "name": "9️⃣ Merge Verification",
      "type": "n8n-nodes-base.merge",
      "position": [
        720,
        176
      ]
    },
    {
      "id": "e7f766f0-f856-4a61-9303-ec03f4fd581a",
      "name": "🔟 📊 Calculate Statistics",
      "type": "n8n-nodes-base.code",
      "position": [
        928,
        176
      ]
    },
    {
      "id": "37d17b89-9df7-473d-9a55-2710f48d69b7",
      "name": "1️⃣1️⃣ 🚨 Check Alerts",
      "type": "n8n-nodes-base.code",
      "position": [
        1152,
        176
      ]
    },
    {
      "id": "d346a783-2709-43ff-a8f5-be4122426660",
      "name": "1️⃣2️⃣ 📱 Format Dashboard",
      "type": "n8n-nodes-base.code",
      "position": [
        1376,
        176
      ]
    },
    {
      "id": "0a268443-15a8-4d1e-9acf-ba99eabe6173",
      "name": "1️⃣3️⃣ 📄 Generate CSV Export",
      "type": "n8n-nodes-base.code",
      "position": [
        1600,
        176
      ]
    },
    {
      "id": "9256806d-83ef-44c9-8480-e950a9a3b08f",
      "name": "1️⃣4️⃣ 📋 Final Report",
      "type": "n8n-nodes-base.code",
      "position": [
        1808,
        176
      ]
    },
    {
      "id": "8b215841-6522-41fd-953c-0e3bf9c6c11f",
      "name": "START HERE",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1840,
        16
      ],
      "parameters": {
        "width": 500,
        "height": 640,
        "content": "# Buyer Monitoring Dashboard\n\n**What it does:** Shows your spending, payment history, mandates, and alerts.\n\n**Quick start:**\n1. Edit Node 2: Add your wallet address, email and API key\n2. Click Execut"
      }
    },
    {
      "id": "884c3663-dc9a-443a-a486-57f5ab80968c",
      "name": "Sticky Note 1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1312,
        16
      ],
      "parameters": {
        "width": 1280,
        "height": 424,
        "content": "## Data Collection\n\nFetches analytics, payment history, audit logs, and active mandates from AgentGatePay API. All data filtered by your wallet address."
      }
    },
    {
      "id": "043b6ca6-3821-4d50-a9e3-d0c8d65a270f",
      "name": "Sticky Note 2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "width": 860,
        "height": 440,
        "content": "## Blockchain Verification\n\nIf you provide a tx_hash, verifies the payment on-chain. Otherwise skips and merges empty result. Helps confirm your latest transaction went through."
      }
    },
    {
      "id": "fc1d6874-d725-4042-9a5d-82c5211540b3",
      "name": "Sticky Note 3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        880,
        0
      ],
      "parameters": {
        "width": 404,
        "height": 440,
        "content": "## Analysis & Alerts\n\nCalculates spending trends, budget utilization, and checks for issues. Alerts trigger when budget drops below 10% or mandates expire soon."
      }
    },
    {
      "id": "3b6bdb16-9d3f-46d9-bfc4-4436fd4e4aa2",
      "name": "Sticky Note 4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1296,
        0
      ],
      "parameters": {
        "width": 680,
        "height": 440,
        "content": "## Output Generation\n\nFormats dashboard with key metrics, generates CSV export for spreadsheets, and creates the final report. Node 14 is your main output."
      }
    },
    {
      "id": "7a70ac2e-0512-406f-993c-aab97e252e3e",
      "name": "3️⃣ 💰 Get Merchant Revenue",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -848,
        1040
      ]
    },
    {
      "id": "6168ab41-1222-41bf-9180-2e3258b82ccd",
      "name": "4️⃣ 💳 Get Payment List",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -624,
        1040
      ]
    },
    {
      "id": "7b552971-de04-43a2-b4cd-6702fe777ff6",
      "name": "5️⃣ 🔗 Get Webhooks",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -400,
        1040
      ]
    },
    {
      "id": "14e2d4c3-8e9d-4899-9f50-bb18c719cefe",
      "name": "6️⃣ 📋 Get Audit Logs (24h)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -176,
        1040
      ]
    },
    {
      "id": "6b7ff7a9-9f5c-40d2-9042-fabdefe9ac1a",
      "name": "2️⃣ Load Config1",
      "type": "n8n-nodes-base.code",
      "position": [
        -1056,
        1040
      ]
    },
    {
      "id": "f457f21f-644b-44c3-8586-f10696414046",
      "name": "7️⃣ 🔍 Prepare Verification1",
      "type": "n8n-nodes-base.code",
      "position": [
        32,
        1040
      ]
    },
    {
      "id": "9477db90-b1ab-47f5-b726-683c4780d47d",
      "name": "7B️⃣ Has TX Hash?1",
      "type": "n8n-nodes-base.if",
      "position": [
        256,
        1040
      ]
    },
    {
      "id": "cc493fa7-86a8-4a63-8d46-aebbbb8e3de7",
      "name": "8️⃣ ✅ Verify on Blockchain1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        480,
        944
      ]
    },
    {
      "id": "e49e02db-39ad-433f-a9bd-ab484be229ae",
      "name": "8B️⃣ Skip Verification1",
      "type": "n8n-nodes-base.code",
      "position": [
        480,
        1152
      ]
    },
    {
      "id": "4406aca5-08e8-40eb-a074-77d12c0d02c9",
      "name": "9️⃣ Merge Verification1",
      "type": "n8n-nodes-base.merge",
      "position": [
        704,
        1040
      ]
    },
    {
      "id": "76cf6de5-8aee-489e-830f-7ea0f5d44adf",
      "name": "🔟 📊 Calculate Statistics1",
      "type": "n8n-nodes-base.code",
      "position": [
        912,
        1040
      ]
    },
    {
      "id": "a6d3c960-99e8-4676-86a1-aee8a98fdd62",
      "name": "1️⃣1️⃣ 🚨 Check Alerts1",
      "type": "n8n-nodes-base.code",
      "position": [
        1136,
        1040
      ]
    },
    {
      "id": "fba805bd-a73f-4898-bd1d-6dbd1b39fdca",
      "name": "1️⃣2️⃣ 📱 Format Dashboard1",
      "type": "n8n-nodes-base.code",
      "position": [
        1360,
        1040
      ]
    },
    {
      "id": "0aaacba9-a4cd-4632-9631-28379abb43ab",
      "name": "1️⃣3️⃣ 📄 Generate CSV Export1",
      "type": "n8n-nodes-base.code",
      "position": [
        1584,
        1040
      ]
    },
    {
      "id": "27021dc3-c417-40b6-8e8a-1325c22acd39",
      "name": "1️⃣4️⃣ 📋 Final Report1",
      "type": "n8n-nodes-base.code",
      "position": [
        1792,
        1040
      ]
    },
    {
      "id": "6b020098-1321-46ce-b8ea-2de307b926af",
      "name": "START HERE1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1840,
        848
      ],
      "parameters": {
        "width": 500,
        "height": 640,
        "content": "# Seller Monitoring Dashboard\n\n**What it does:** Shows your revenue, payments received, webhooks, and alerts.\n\n**Quick start:**\n1. Edit Node 2: Add your merchant wallet, email and API key\n2. Click Exe"
      }
    },
    {
      "id": "749ae0c1-1ae3-4645-a9e6-cfbb8284ef13",
      "name": "Sticky Note ",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1328,
        848
      ],
      "parameters": {
        "width": 1248,
        "height": 456,
        "content": "## Revenue Collection\n\nFetches merchant revenue, payments received, webhook config, and audit logs from AgentGatePay API. All data filtered by your wallet address."
      }
    },
    {
      "id": "f6768cf2-d84c-410f-b80c-a780197c740b",
      "name": "Sticky Note 5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -16,
        848
      ],
      "parameters": {
        "width": 828,
        "height": 456,
        "content": "## Payment Verification\n\nIf you provide a tx_hash, verifies the payment you received on-chain. Otherwise skips and merges empty result. Helps confirm your latest payment arrived."
      }
    },
    {
      "id": "67a24286-4e8e-4760-845c-84f32eb21bf1",
      "name": "Sticky Note 6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        832,
        848
      ],
      "parameters": {
        "width": 468,
        "height": 456,
        "content": "## Analysis & Alerts\n\nCalculates revenue trends, webhook success rates, top buyers. Alerts trigger when webhooks fail or payment success rate drops below 90%."
      }
    },
    {
      "id": "0913465b-82d3-41b5-b64a-5bfdf39f1c09",
      "name": "Sticky Note 7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1328,
        848
      ],
      "parameters": {
        "width": 632,
        "height": 456,
        "content": "## Output Generation\n\nFormats dashboard with key metrics, generates CSV export for accounting, and creates the final report. Node 14 is your main output."
      }
    }
  ],
  "connections": {
    "2️⃣ Load Config": {
      "main": [
        [
          {
            "node": "3️⃣ 📈 Get User Analytics",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "2️⃣ Load Config1": {
      "main": [
        [
          {
            "node": "3️⃣ 💰 Get Merchant Revenue",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "7B️⃣ Has TX Hash?": {
      "main": [
        [
          {
            "node": "8️⃣ ✅ Verify on Blockchain",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "8B️⃣ Skip Verification",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "▶️ Manual Trigger": {
      "main": [
        [
          {
            "node": "2️⃣ Load Config",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "7B️⃣ Has TX Hash?1": {
      "main": [
        [
          {
            "node": "8️⃣ ✅ Verify on Blockchain1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "8B️⃣ Skip Verification1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "5️⃣ 🔗 Get Webhooks": {
      "main": [
        [
          {
            "node": "6️⃣ 📋 Get Audit Logs (24h)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "8B️⃣ Skip Verification": {
      "main": [
        [
          {
            "node": "9️⃣ Merge Verification",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "9️⃣ Merge Verification": {
      "main": [
        [
          {
            "node": "🔟 📊 Calculate Statistics",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "8B️⃣ Skip Verification1": {
      "main": [
        [
          {
            "node": "9️⃣ Merge Verification1",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "9️⃣ Merge Verification1": {
      "main": [
        [
          {
            "node": "🔟 📊 Calculate Statistics1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "4️⃣ 💳 Get Payment List": {
      "main": [
        [
          {
            "node": "5️⃣ 🔗 Get Webhooks",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🔟 📊 Calculate Statistics": {
      "main": [
        [
          {
            "node": "1️⃣1️⃣ 🚨 Check Alerts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "3️⃣ 📈 Get User Analytics": {
      "main": [
        [
          {
            "node": "4️⃣ 💳 Get Payment History",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🔟 📊 Calculate Statistics1": {
      "main": [
        [
          {
            "node": "1️⃣1️⃣ 🚨 Check Alerts1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "1️⃣1️⃣ 🚨 Check Alerts": {
      "main": [
        [
          {
            "node": "1️⃣2️⃣ 📱 Format Dashboard",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "4️⃣ 💳 Get Payment History": {
      "main": [
        [
          {
            "node": "5️⃣ 📋 Get Audit Logs (24h)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "6️⃣ 🔑 Get Active Mandates": {
      "main": [
        [
          {
            "node": "7️⃣ 🔍 Prepare Verification",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "8️⃣ ✅ Verify on Blockchain": {
      "main": [
        [
          {
            "node": "9️⃣ Merge Verification",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "1️⃣1️⃣ 🚨 Check Alerts1": {
      "main": [
        [
          {
            "node": "1️⃣2️⃣ 📱 Format Dashboard1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "3️⃣ 💰 Get Merchant Revenue": {
      "main": [
        [
          {
            "node": "4️⃣ 💳 Get Payment List",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "5️⃣ 📋 Get Audit Logs (24h)": {
      "main": [
        [
          {
            "node": "6️⃣ 🔑 Get Active Mandates",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "6️⃣ 📋 Get Audit Logs (24h)": {
      "main": [
        [
          {
            "node": "7️⃣ 🔍 Prepare Verification1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "7️⃣ 🔍 Prepare Verification": {
      "main": [
        [
          {
            "node": "7B️⃣ Has TX Hash?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "8️⃣ ✅ Verify on Blockchain1": {
      "main": [
        [
          {
            "node": "9️⃣ Merge Verification1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "7️⃣ 🔍 Prepare Verification1": {
      "main": [
        [
          {
            "node": "7B️⃣ Has TX Hash?1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "1️⃣2️⃣ 📱 Format Dashboard": {
      "main": [
        [
          {
            "node": "1️⃣3️⃣ 📄 Generate CSV Export",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "1️⃣2️⃣ 📱 Format Dashboard1": {
      "main": [
        [
          {
            "node": "1️⃣3️⃣ 📄 Generate CSV Export1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "1️⃣3️⃣ 📄 Generate CSV Export": {
      "main": [
        [
          {
            "node": "1️⃣4️⃣ 📋 Final Report",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "1️⃣3️⃣ 📄 Generate CSV Export1": {
      "main": [
        [
          {
            "node": "1️⃣4️⃣ 📋 Final Report1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}