Templates / Detect Meta Ads spend anomalies and creative fatigue with OpenAI and Slack

Detect Meta Ads spend anomalies and creative fatigue with OpenAI and Slack

Ready for 3.0

by Rahul Joshi ✓ · 39 views · created 2026-10-01 · Market Research, AI Chatbot

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 54 nodes and runs on a schedule (cron 0 9 * * *) (plus 2 other triggers). Along the way it connects Slack, Google Sheets, OpenAI Chat Model and HTTP Request.

How it runs

Trigger: On a schedule (cron 0 9 * * *) (plus 2 other triggers).

  1. Set Workflow Config (Edit Fields (Set)): sets 30 fields: ad_accounts, graph_version, default_slack_channel…
  2. Acknowledge Slack Within 3s (Respond to Webhook): sends the response back to the webhook caller
  3. Send Workflow Error Alert to Slack (Slack): uses Slack
  4. Is Scheduled Run? (If): checks a condition and branches into true / false
  5. Read Alert Log Sheet (Google Sheets): uses Google Sheets
  6. Parse Slack Button Payload (Code): runs custom JavaScript code
  7. Split Ad Accounts (Code): runs custom JavaScript code
  8. Route by Action Type (Switch): routes items into 5 branches
  9. Loop Over Ad Accounts (Loop Over Items (Split in Batches)): loops over the items in batches
  10. Pause Ad in Meta (HTTP Request): calls an HTTP API (POST)

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

Services it uses

SlackGoogle SheetsOpenAI Chat ModelHTTP Request

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

From the author

Quick overview This workflow runs daily and pulls Meta Ads account and ad insights from the Meta Graph API, detects spend/performance anomalies and creative fatigue, uses OpenAI (gpt-4o-mini) to propose fixes for flagged accounts, and posts either an alert or…

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.