Monitor Meta CAPI event match quality with Meta Graph API and Claude
Ready for 3.0What this workflow does
This workflow has 9 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: conversion events, alert threshold (Code): runs custom JavaScript code
- List active pixels (Meta) (Facebook Graph API): uses Facebook Graph API
- Select active pixels (Code): runs custom JavaScript code
- Pixel PII stats (Meta) (Facebook Graph API): uses Facebook Graph API
- Score event match quality per pixel (Code): runs custom JavaScript code
- Build AI match-quality summary prompt (Code): runs custom JavaScript code
- Summarize match-quality gaps with Claude AI (HTTP Request): calls api.anthropic.com (POST)
- Print EMQ scorecard & alerts (Code): runs custom JavaScript code
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 - Facebook Graph API
n8n-nodes-base.facebookGraphApi
From the author
Quick overview This workflow runs on demand to monitor Meta Conversions API Event Match Quality across the pixels in a Meta ad account, calculates a weighted 0–100 match-quality score from Graph API stats, and uses Anthropic Claude to summarize risks and…