Monitor AI budgets and optimize costs with Anthropic Claude and Slack alerts
Ready for 3.0What this workflow does
This AI workflow has 23 nodes and runs on a schedule (every hour). Along the way it connects Anthropic Chat Model and Slack.
How it runs
Trigger: On a schedule (every hour).
- Workflow Configuration (Edit Fields (Set)): sets 5 fields: monthlyBudgetLimit, criticalThreshold, warningThreshold…
- Generate Mock Metrics Data (Code): runs custom JavaScript code
- Cost Intelligence Agent (AI Agent): runs an AI agent, with model: Anthropic Model - Cost Intelligence; output parser: Cost Analysis Output Parser
- Route by Budget Status (Switch): routes items into 3 branches
- Store Cost Analysis (Data table): uses Data table
- Optimization Coordinator Agent (AI Agent): runs an AI agent, with model: Anthropic Model - Coordinator; 3 tools (Budget Alert Agent Tool, Cost Projection Calculator Tool, Routing Recommendation Agent Tool); output parser: Coordinator Output Parser
- Route by Action Type (Switch): routes items into 2 branches
- Send Slack Alert (Slack): uses Slack
- Send Executive Report Email (Send Email): sends an email over SMTP
- Merge: merges the data from its input branches
…plus 1 more step. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (13)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - AI Agent
@n8n/n8n-nodes-langchain.agent - Anthropic Chat Model
@n8n/n8n-nodes-langchain.lmChatAnthropic - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Switch
n8n-nodes-base.switch - AI Agent Tool
@n8n/n8n-nodes-langchain.agentTool - Code Tool
@n8n/n8n-nodes-langchain.toolCode - Slack
n8n-nodes-base.slack - Send Email
n8n-nodes-base.emailSend - Data table
n8n-nodes-base.dataTable - Merge
n8n-nodes-base.merge
From the author
How It Works This workflow automates enterprise budget monitoring and cost optimization using Anthropic Claude as the core AI engine across multiple specialist agents. It targets finance teams, operations managers, and CFOs managing complex multi-department…