{
  "name": "Monitor AI budgets and optimize costs with Anthropic Claude and Slack alerts",
  "nodes": [
    {
      "id": "1b074af4-75fb-4298-92c2-2e3ba59a6171",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -2512,
        64
      ]
    },
    {
      "id": "6d2a41ae-1ffc-41cf-9795-9b6ce9d2b13a",
      "name": "Workflow Configuration",
      "type": "n8n-nodes-base.set",
      "position": [
        -2288,
        64
      ]
    },
    {
      "id": "1c6b78bb-5d71-4f87-81f3-7c13d68d650e",
      "name": "Generate Mock Metrics Data",
      "type": "n8n-nodes-base.code",
      "position": [
        -2064,
        64
      ]
    },
    {
      "id": "ccaddedb-574b-4c0d-8e47-1bf98ee09c21",
      "name": "Cost Intelligence Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -1824,
        192
      ]
    },
    {
      "id": "658e14b3-a034-49fc-a885-550e6640a2c2",
      "name": "Anthropic Model - Cost Intelligence",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "position": [
        -1808,
        416
      ]
    },
    {
      "id": "20e5df1a-b70c-4fa1-a9fa-6179b9dea00c",
      "name": "Cost Analysis Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -1648,
        416
      ]
    },
    {
      "id": "83662fe0-7734-4e84-b388-e0465ebcd244",
      "name": "Route by Budget Status",
      "type": "n8n-nodes-base.switch",
      "position": [
        -1472,
        48
      ]
    },
    {
      "id": "3a75cfa9-57f7-4270-9750-695d083acf2b",
      "name": "Budget Alert Agent Tool",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        -1120,
        304
      ]
    },
    {
      "id": "3af581a8-ada3-4e97-bde0-c293bb483389",
      "name": "Anthropic Model - Budget Alert",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "position": [
        -1232,
        512
      ]
    },
    {
      "id": "99753d08-6cbf-4f7a-96f6-ba3bb4a0d1d1",
      "name": "Budget Alert Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -1024,
        512
      ]
    },
    {
      "id": "74ca3f62-2d70-4bba-b078-31cc8ae3fcdd",
      "name": "Routing Recommendation Agent Tool",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        -832,
        304
      ]
    },
    {
      "id": "8322e3e4-3bbe-4895-a4ff-02c0cb7e20b0",
      "name": "Anthropic Model - Routing",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "position": [
        -832,
        512
      ]
    },
    {
      "id": "a006a1fe-b713-4d55-add4-42600d4e5890",
      "name": "Routing Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -656,
        512
      ]
    },
    {
      "id": "76dd80ee-03d6-448f-80ef-c2668aceacf6",
      "name": "Cost Projection Calculator Tool",
      "type": "@n8n/n8n-nodes-langchain.toolCode",
      "position": [
        -544,
        304
      ]
    },
    {
      "id": "eefb56af-3534-4ef4-b7c6-cf5923b3f138",
      "name": "Optimization Coordinator Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -816,
        80
      ]
    },
    {
      "id": "cdef0d6c-56c7-4b67-a57b-dbc78a99662a",
      "name": "Anthropic Model - Coordinator",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "position": [
        -1248,
        304
      ]
    },
    {
      "id": "df00ed04-f92d-4e73-ab47-02872116d1d4",
      "name": "Coordinator Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -416,
        304
      ]
    },
    {
      "id": "33d8972b-f4f1-4281-9ebc-7b14819f917b",
      "name": "Route by Action Type",
      "type": "n8n-nodes-base.switch",
      "position": [
        -208,
        64
      ]
    },
    {
      "id": "6ec2a5c4-aa78-4f27-b542-fc1ea1f4d481",
      "name": "Send Slack Alert",
      "type": "n8n-nodes-base.slack",
      "position": [
        80,
        96
      ]
    },
    {
      "id": "2894d8b0-18f5-49d4-a445-fcf8ea6ce3b1",
      "name": "Send Executive Report Email",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        80,
        288
      ]
    },
    {
      "id": "8460f76f-3034-4738-bc4c-251d53084168",
      "name": "Store Cost Analysis",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        -1472,
        304
      ]
    },
    {
      "id": "10a554da-afc9-47f8-ac96-7d6127fee933",
      "name": "Merge Notification Results",
      "type": "n8n-nodes-base.merge",
      "position": [
        304,
        192
      ]
    },
    {
      "id": "f0af69ea-a545-44dc-af17-93ead23451da",
      "name": "Store Optimization Actions",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        528,
        192
      ]
    },
    {
      "id": "75153ea4-eb72-4cc4-bad9-d9bd105fca48",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1200,
        -512
      ],
      "parameters": {
        "width": 464,
        "height": 352,
        "content": "## Prerequisites\nn8n (cloud or self-hosted), Anthropic API key (Claude), Slack workspace with bot token \n## Use Cases\nFinance teams automating multi-department budget variance detection and escalation"
      }
    },
    {
      "id": "dc60d655-db07-42fb-ae64-1fbfc9858f83",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1840,
        -384
      ],
      "parameters": {
        "width": 576,
        "height": 240,
        "content": "## Setup Steps\n1. Import workflow JSON into your n8n instance.\n2. Add Anthropic API credentials.\n3. Set Schedule Trigger frequency.\n4. Update Workflow Configuration node with budget thresholds per dep"
      }
    },
    {
      "id": "066e2f6f-017f-4784-b51a-170d5f2cdf3f",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2544,
        -384
      ],
      "parameters": {
        "width": 640,
        "height": 288,
        "content": "## How It Works\nThis workflow automates enterprise budget monitoring and cost optimization using Anthropic Claude as the core AI engine across multiple specialist agents. It targets finance teams, ope"
      }
    },
    {
      "id": "1be1536c-203c-4d2a-8011-e973ba813049",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2544,
        -64
      ],
      "parameters": {
        "width": 656,
        "height": 544,
        "content": "### Generate Mock Metrics Data\n**What:** Loads or simulates departmental cost and budget metrics.\n**Why:** Provides structured financial data for downstream AI analysis.\n"
      }
    },
    {
      "id": "56c2f6a4-4fec-4839-a6d2-295e4043e422",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1280,
        -112
      ],
      "parameters": {
        "width": 976,
        "height": 784,
        "content": "## Optimization Coordinator\n**What:** Aggregates all agent outputs and determines the optimal action plan.\n**Why:** Ensures coherent, conflict-free recommendations across all budget streams."
      }
    },
    {
      "id": "ffb9ce7c-7b75-4517-8423-831afd143adf",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1872,
        -96
      ],
      "parameters": {
        "width": 576,
        "height": 720,
        "content": "\n## Cost Intelligence Agent\n**What:** Anthropic Claude classifies budget status across Critical, Warning, Review, and Feedback tiers.\n**Why:** Prioritizes response urgency, directing resources where r"
      }
    },
    {
      "id": "cf7e1ee2-d7eb-48bf-9015-f0d4c57ce2b6",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -256,
        -112
      ],
      "parameters": {
        "width": 992,
        "height": 800,
        "content": "\n## Alert & Reporting\n**What:** Slack alerts for urgent issues; executive email report for leadership; results stored.\n**Why:** Delivers timely intelligence to the right stakeholders through the right"
      }
    }
  ],
  "connections": {
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Workflow Configuration",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Slack Alert": {
      "main": [
        [
          {
            "node": "Merge Notification Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route by Action Type": {
      "main": [
        [
          {
            "node": "Send Slack Alert",
            "type": "main",
            "index": 0
          },
          {
            "node": "Send Executive Report Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Routing Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Routing Recommendation Agent Tool",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Route by Budget Status": {
      "main": [
        [
          {
            "node": "Optimization Coordinator Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Workflow Configuration": {
      "main": [
        [
          {
            "node": "Generate Mock Metrics Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Budget Alert Agent Tool": {
      "ai_tool": [
        [
          {
            "node": "Optimization Coordinator Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Cost Intelligence Agent": {
      "main": [
        [
          {
            "node": "Route by Budget Status",
            "type": "main",
            "index": 0
          },
          {
            "node": "Store Cost Analysis",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Anthropic Model - Routing": {
      "ai_languageModel": [
        [
          {
            "node": "Routing Recommendation Agent Tool",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Coordinator Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Optimization Coordinator Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Budget Alert Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Budget Alert Agent Tool",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Generate Mock Metrics Data": {
      "main": [
        [
          {
            "node": "Cost Intelligence Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge Notification Results": {
      "main": [
        [
          {
            "node": "Store Optimization Actions",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Cost Analysis Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Cost Intelligence Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Send Executive Report Email": {
      "main": [
        [
          {
            "node": "Merge Notification Results",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge Notification Results",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Anthropic Model - Coordinator": {
      "ai_languageModel": [
        [
          {
            "node": "Optimization Coordinator Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Anthropic Model - Budget Alert": {
      "ai_languageModel": [
        [
          {
            "node": "Budget Alert Agent Tool",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Optimization Coordinator Agent": {
      "main": [
        [
          {
            "node": "Route by Action Type",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Cost Projection Calculator Tool": {
      "ai_tool": [
        [
          {
            "node": "Optimization Coordinator Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Routing Recommendation Agent Tool": {
      "ai_tool": [
        [
          {
            "node": "Optimization Coordinator Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Anthropic Model - Cost Intelligence": {
      "ai_languageModel": [
        [
          {
            "node": "Cost Intelligence Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}