{
  "name": "Monitor revenue tax compliance and auto-correct anomalies with Anthropic, MagicCSV, Gmail and WhatsApp",
  "nodes": [
    {
      "id": "bc9f080a-eec0-4e7e-adec-bbf24989d4b1",
      "name": "Weekly/Monthly Schedule",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        0,
        0
      ]
    },
    {
      "id": "7a0e9645-ef3c-413d-91dd-ac697e0c66f6",
      "name": "Workflow Configuration",
      "type": "n8n-nodes-base.set",
      "position": [
        224,
        0
      ]
    },
    {
      "id": "a49239a6-46f8-43d0-900c-aecc1a69d85f",
      "name": "Fetch Revenue Data",
      "type": "n8n-nodes-base.n8n",
      "position": [
        448,
        0
      ]
    },
    {
      "id": "c60ecd66-6758-4f7c-a15d-f19dd5cf0400",
      "name": "Tax Categorization Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        672,
        0
      ]
    },
    {
      "id": "f0fb76c9-d34e-438f-8851-e77b355124cd",
      "name": "Anomaly Detection Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1024,
        0
      ]
    },
    {
      "id": "777b0dc9-5283-4e1e-81f2-20e10ed078d9",
      "name": "Correction Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1432,
        0
      ]
    },
    {
      "id": "2f953c16-89c1-4ae0-a9ed-e8125cbe939e",
      "name": "Sync to Accounting Software",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1840,
        0
      ]
    },
    {
      "id": "aa0ab3a1-3866-4e62-a94d-e8b4fb008830",
      "name": "Format Compliance Summary",
      "type": "n8n-nodes-base.set",
      "position": [
        2064,
        0
      ]
    },
    {
      "id": "ab735744-cb75-47b1-89e8-78c831446f8c",
      "name": "Send Summary to Tax Agent",
      "type": "n8n-nodes-base.gmail",
      "position": [
        2288,
        0
      ]
    },
    {
      "id": "9d8e114b-e1ff-4c3c-8882-b5c95f860118",
      "name": "Categorization Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        808,
        224
      ]
    },
    {
      "id": "c33a5f58-d091-480e-90eb-f7efdac55312",
      "name": "Anomaly Detection Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1160,
        224
      ]
    },
    {
      "id": "d8b1c051-deef-417b-8276-0930051d643d",
      "name": "Correction Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1632,
        224
      ]
    },
    {
      "id": "2a03aabb-ed5a-4511-8dd5-8c0cd9955bfc",
      "name": "Anthropic Model - Categorization",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "position": [
        680,
        224
      ]
    },
    {
      "id": "6d84202d-bb10-449c-beff-5219f46b391d",
      "name": "Anthropic Model - Anomaly Detection",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "position": [
        1032,
        224
      ]
    },
    {
      "id": "cd41cc6a-079a-4d09-90af-ef63719d3ff5",
      "name": "Anthropic Model - Correction",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "position": [
        1376,
        224
      ]
    },
    {
      "id": "2828c382-c79f-46b6-b155-63da5e4d509f",
      "name": "Send WhatsApp Alert",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        2512,
        0
      ]
    },
    {
      "id": "ac1eebc9-dadc-4dc2-9f04-ade808041eb5",
      "name": "MCP Client Tool",
      "type": "@n8n/n8n-nodes-langchain.mcpClientTool",
      "position": [
        1504,
        224
      ]
    },
    {
      "id": "0869192b-462f-4741-bfe9-41ee6a1f4e9a",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        -496
      ],
      "parameters": {
        "width": 560,
        "height": 288,
        "content": "## How It Works\nThis workflow automates tax compliance monitoring and revenue analysis for accounting teams and finance managers handling multi-source income data. It solves the critical problem of ma"
      }
    },
    {
      "id": "8ee243be-d7c7-42f3-8d4a-f78926584c48",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        624,
        -496
      ],
      "parameters": {
        "width": 544,
        "height": 224,
        "content": "## Setup Steps\n1. Configure MagicCSV integration with your accounting software API credentials\n2. Add Anthropic API key for categorization, anomaly detection, and compliance models\n3. Connect accounti"
      }
    },
    {
      "id": "b1449dcb-1d4f-4235-a316-f34f23cfeedf",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1216,
        -624
      ],
      "parameters": {
        "width": 464,
        "height": 352,
        "content": "## Prerequisites\nAnthropic API access, MagicCSV account, accounting software with API capabilities\n## Use Cases\nMulti-entity corporations tracking cross-border revenue, e-commerce businesses with dive"
      }
    },
    {
      "id": "c8c071f2-e6eb-42c4-a265-9e0e14da99b1",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1808,
        -128
      ],
      "parameters": {
        "width": 896,
        "height": 640,
        "content": "## Automated Distribution\n**Why:** Simultaneous sync to accounting software and multi-channel notifications (Gmail, WhatsApp) ensure stakeholders receive timely compliance updates."
      }
    },
    {
      "id": "54d793f5-4dca-4da7-820a-dca4b4985d08",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        640,
        -128
      ],
      "parameters": {
        "width": 1136,
        "height": 768,
        "content": "## AI-Powered Triple Validation\n**Why:** Three-stage AI analysis (categorization, anomaly detection, compliance checking) ensures accurate tax classification and identifies potential issues before sub"
      }
    },
    {
      "id": "1fe640a9-2b46-47a2-8199-10c3ab047023",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -32,
        -128
      ],
      "parameters": {
        "width": 640,
        "height": 608,
        "content": "## Scheduled Data Retrieval\n**Why:** Automated weekly/monthly fetching ensures continuous monitoring without manual intervention, maintaining up-to-date tax records."
      }
    }
  ],
  "connections": {
    "MCP Client Tool": {
      "ai_tool": [
        [
          {
            "node": "Correction Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Correction Agent": {
      "main": [
        [
          {
            "node": "Sync to Accounting Software",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Revenue Data": {
      "main": [
        [
          {
            "node": "Tax Categorization Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Workflow Configuration": {
      "main": [
        [
          {
            "node": "Fetch Revenue Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Anomaly Detection Agent": {
      "main": [
        [
          {
            "node": "Correction Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Weekly/Monthly Schedule": {
      "main": [
        [
          {
            "node": "Workflow Configuration",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Correction Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Correction Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Tax Categorization Agent": {
      "main": [
        [
          {
            "node": "Anomaly Detection Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Compliance Summary": {
      "main": [
        [
          {
            "node": "Send Summary to Tax Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Summary to Tax Agent": {
      "main": [
        [
          {
            "node": "Send WhatsApp Alert",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Sync to Accounting Software": {
      "main": [
        [
          {
            "node": "Format Compliance Summary",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Anthropic Model - Correction": {
      "ai_languageModel": [
        [
          {
            "node": "Correction Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Categorization Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Tax Categorization Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Anomaly Detection Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Anomaly Detection Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Anthropic Model - Categorization": {
      "ai_languageModel": [
        [
          {
            "node": "Tax Categorization Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Anthropic Model - Anomaly Detection": {
      "ai_languageModel": [
        [
          {
            "node": "Anomaly Detection Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}