Templates / Score Meta ad account health weekly with Claude and Gmail

Score Meta ad account health weekly with Claude and Gmail

Ready for 3.0

by Nocode Expert ✓ · 14 views · created 2026-07-28 · 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 12 nodes and runs on a schedule (every week). It uses only n8n's built-in nodes. It also calls api.anthropic.com over HTTP.

How it runs

Trigger: On a schedule (every week).

  1. Set config: health score (Code): runs custom JavaScript code
  2. Build comparison windows (Code): runs custom JavaScript code
  3. Fetch account this week (Meta) (HTTP Request): calls an HTTP API
  4. Fetch account prior week (Meta) (HTTP Request): calls an HTTP API
  5. Fetch ad set insights (Meta) (HTTP Request): calls an HTTP API
  6. Fetch ad set entities (Meta) (HTTP Request): calls an HTTP API
  7. Fetch ad insights (Meta) (HTTP Request): calls an HTTP API
  8. Run checks and score (Code): runs custom JavaScript code
  9. Build AI triage prompt (Code): runs custom JavaScript code
  10. Rank fixes with Claude AI (HTTP Request): calls api.anthropic.com (POST)

…plus 1 more step. See the full node list below.

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

From the author

Quick overview This workflow pulls hourly performance from the Meta Marketing API for the last 30 days, calculates cost-per-result by hour, asks Anthropic Claude to recommend a dayparting schedule, and emails a formatted report via Gmail. How it works 1. Runs…

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.