Find wasted Meta ad spend by placement, region, age and hour with Claude
Ready for 3.0What 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”.
- Set config: result events, floor (Code): runs custom JavaScript code
- Fetch account totals (Meta) (Facebook Graph API): uses Facebook Graph API
- Compute benchmark (Code): runs custom JavaScript code
- List delivery breakdowns (Code): runs custom JavaScript code
- Fetch breakdown insights (Meta) (Facebook Graph API): uses Facebook Graph API
- Flatten & score slices (Code): runs custom JavaScript code
- Flag underperforming slices vs benchmark (Code): runs custom JavaScript code
- Any budget at risk? (If): checks a condition and branches into true / false
- Build AI prioritization prompt (Code): runs custom JavaScript code
- Print — nothing to cut (Code): runs custom JavaScript code
…plus 2 more steps. See the full node list below.
Services it uses
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)
- Manual Trigger
n8n-nodes-base.manualTrigger - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Facebook Graph API
n8n-nodes-base.facebookGraphApi - If
n8n-nodes-base.if
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…