Find scalable Meta Ads winners with Claude and email the budget plan via Gmail
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 Gmail. It also calls api.anthropic.com over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Set config: winners (Code): runs custom JavaScript code
- Fetch account benchmark (Meta) (HTTP Request): calls an HTTP API
- Fetch ad insights (Meta) (HTTP Request): calls an HTTP API
- Fetch ad set insights (Meta) (HTTP Request): calls an HTTP API
- Fetch ad set entities (Meta) (HTTP Request): calls an HTTP API
- Fetch campaign insights (Meta) (HTTP Request): calls an HTTP API
- Fetch campaign entities (Meta) (HTTP Request): calls an HTTP API
- Rank winners and size the lift (Code): runs custom JavaScript code
- Build AI scale prompt (Code): runs custom JavaScript code
- Write scale plan with Claude AI (HTTP Request): calls api.anthropic.com (POST)
…plus 2 more steps. See the full node list below.
Services it uses
Other Anthropic + Gmail templates (192) · Other Gmail + Facebook templates (43) · Other Anthropic + Facebook templates (23)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (4)
- Manual Trigger
n8n-nodes-base.manualTrigger - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Gmail
n8n-nodes-base.gmail
From the author
Quick overview This workflow pulls Meta Ads performance and budget data, identifies ads beating account benchmarks, calculates safe budget lifts for capped winners, and uses Anthropic Claude to write a scaling plan, then emails the formatted report via Gmail.…