Identify and fix low-quality Meta ads with OpenAI and Gmail reports
Ready for 3.0What this workflow does
This workflow has 10 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects Google Sheets and Gmail. It also calls api.openai.com over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).
- Set config: quality digest (Code): runs custom JavaScript code
- Fetch ad quality rankings (Meta) (HTTP Request): calls an HTTP API
- Flag below-average ads (Code): runs custom JavaScript code
- Build AI quality prompt (Code): runs custom JavaScript code
- Explain quality fixes with OpenAI (HTTP Request): calls api.openai.com (POST)
- Print quality digest report (Code): runs custom JavaScript code
- Send a message (Gmail): uses Gmail
- Optional: log flagged ads to Google Sheets (Google Sheets): append
Services it uses
HTTP calls to: api.openai.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 (6)
- Manual Trigger
n8n-nodes-base.manualTrigger - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Google Sheets
n8n-nodes-base.googleSheets - Gmail
n8n-nodes-base.gmail
From the author
Quick overview This workflow pulls daily reach and frequency insights from the Meta Marketing API, detects early signs of audience saturation, asks Anthropic Claude to summarize the status and recommended actions, and emails a formatted saturation forecast…