Detect Meta Pixel flatlines with Claude and Gmail alerts
Ready for 3.0What this workflow does
This workflow has 8 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: flatline thresholds (Code): runs custom JavaScript code
- Fetch pixels & last-fired time (Meta) (HTTP Request): calls an HTTP API
- Detect flatlined pixels (Code): runs custom JavaScript code
- Build AI diagnosis prompt (Code): runs custom JavaScript code
- Diagnose pixel flatlines with Claude AI (HTTP Request): calls api.anthropic.com (POST)
- Print pixel flatline report (Code): runs custom JavaScript code
- Send a message (Gmail): uses Gmail
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 (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 checks Meta (Facebook) ad account pixels for inactivity using the Meta Marketing API, flags pixels that have stopped firing beyond a defined threshold, asks Anthropic Claude to suggest likely causes and first checks, and emails a…