Templates / Find wasted Meta ad spend by placement, region, age and hour with Claude

Find wasted Meta ad spend by placement, region, age and hour with Claude

Ready for 3.0

by Nocode Expert ✓ · 75 views · created 2026-07-11 · Market Research, 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 workflow has 13 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Facebook Graph API. It also calls api.anthropic.com over HTTP.

How it runs

Trigger: Manually, when you click “Execute workflow”.

  1. Set config: result events, floor (Code): runs custom JavaScript code
  2. Fetch account totals (Meta) (Facebook Graph API): uses Facebook Graph API
  3. Compute benchmark (Code): runs custom JavaScript code
  4. List delivery breakdowns (Code): runs custom JavaScript code
  5. Fetch breakdown insights (Meta) (Facebook Graph API): uses Facebook Graph API
  6. Flatten & score slices (Code): runs custom JavaScript code
  7. Flag underperforming slices vs benchmark (Code): runs custom JavaScript code
  8. Any budget at risk? (If): checks a condition and branches into true / false
  9. Build AI prioritization prompt (Code): runs custom JavaScript code
  10. Print — nothing to cut (Code): runs custom JavaScript code

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

Services it uses

Facebook Graph API

HTTP calls to: api.anthropic.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 (5)

From the author

Quick overview This workflow pulls the last 30 days of Meta Ads insights across multiple breakdowns, calculates an account cost-per-result benchmark, flags high-waste delivery slices, and uses Anthropic Claude to rank a prioritized “kill list” with…

Excerpt from Nocode Expert'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.