Templates / Detect cloud cost anomalies with AWS Cost Explorer, GCP Billing and GPT-4o-mini

Detect cloud cost anomalies with AWS Cost Explorer, GCP Billing and GPT-4o-mini

Ready for 3.0

by Rahul Joshi ✓ · 22 views · created 2026-10-12 · DevOps, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 29 nodes and runs on a schedule (cron 0 9 * * *) (plus 1 other trigger). Along the way it connects Google Sheets, Slack and OpenAI. It also calls ce.us-east-1.amazonaws.com over HTTP.

How it runs

Trigger: On a schedule (cron 0 9 * * *) (plus 1 other trigger).

  1. Set Cost Agent Config (Code): runs custom JavaScript code
  2. Look Up Anomaly in Log (Google Sheets): uses Google Sheets
  3. Read Anomaly Log Sheet (Google Sheets): uses Google Sheets
  4. Validate Action Token (Code): runs custom JavaScript code
  5. AWS Enabled? (If): checks a condition and branches into true / false
  6. Token Valid? (If): checks a condition and branches into true / false
  7. Get AWS Cost by Service & Region (HTTP Request): calls ce.us-east-1.amazonaws.com (POST)
  8. GCP Enabled? (If): checks a condition and branches into true / false
  9. Record Decision in Log (Google Sheets): update
  10. Show Invalid Link Page (Respond to Webhook): sends the response back to the webhook caller

…plus 17 more steps. See the full node list below.

Services it uses

Google SheetsSlackOpenAI

HTTP calls to: ce.us-east-1.amazonaws.com

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 (10)

From the author

Quick overview This workflow runs daily to detect AWS and optional GCP cost spikes, enriches AWS anomalies with CloudTrail context and an OpenAI explanation, posts actionable alerts and a run summary to Slack, and logs anomalies plus approve/ignore decisions…

Excerpt from Rahul Joshi's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.