Automation library · Alerts and monitoring

Monitor AI budgets and optimize costs with Claude and Slack

Started by a clock, and works across Email, Slack and n8n data table. It hands the judgement calls to Claude. 23 steps, 2 branches: large, and worth reading before you trust it with anything live.

LargeCalls a model: Claude

23 stepsLarge: read it before trusting it with anything live
2Branches: places the flow splits
0Loops or waits
3Services it connects to

The flow

Starts it 1Model 13Logic 5Service 4

The steps in the order they run, from what starts it.

  1. 1Schedule TriggerSchedule triggerStarts it
  2. 2Anthropic Model - Cost IntelligenceLm Chat AnthropicModel
  3. 3Cost Analysis Output ParserOutput Parser StructuredModel
  4. 4Anthropic Model - Budget AlertLm Chat AnthropicModel
  5. 5Budget Alert Output ParserOutput Parser StructuredModel
  6. 6Anthropic Model - RoutingLm Chat AnthropicModel
  7. 7Routing Output ParserOutput Parser StructuredModel
  8. 8Cost Projection Calculator ToolTool CodeModel
  9. 9Anthropic Model - CoordinatorLm Chat AnthropicModel
  10. 10Coordinator Output ParserOutput Parser StructuredModel
  11. 11Workflow ConfigurationSetLogic
  12. 12Cost Intelligence AgentAgentModel
  13. 13Budget Alert Agent ToolAgent ToolModel
  14. 14Routing Recommendation Agent ToolAgent ToolModel
  15. 15Optimization Coordinator AgentAgentModel
  16. 16Generate Mock Metrics DataCodeLogic
  17. 17Route by Budget StatusSwitchLogic
  18. 18Store Cost AnalysisData TableService
  19. 19Route by Action TypeSwitchLogic
  20. 20Send Slack AlertSlackService
  21. 21Send Executive Report EmailEmail SendService
  22. 22Merge Notification ResultsMergeLogic
  23. 23Store Optimization ActionsData TableService

How it's built

Starts on
A clock
Steps
23, with 2 branches
Size
Large: read it before trusting it with anything live
Connects to
Email, Slack, n8n data table
Model
Claude

Questions

What does it need to run?

An n8n account, plus your own Email and Slack accounts, and a key for Claude. You connect your own accounts after importing it; none are included.

What starts it?

It starts on a clock.

Does it use AI?

Yes. It calls Claude. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 23 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 23 steps before you point it at anything that matters.