Templates / Identify and fix low-quality Meta ads with OpenAI and Gmail reports

Identify and fix low-quality Meta ads with OpenAI and Gmail reports

Ready for 3.0

by Nocode Expert ✓ · 33 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 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).

  1. Set config: quality digest (Code): runs custom JavaScript code
  2. Fetch ad quality rankings (Meta) (HTTP Request): calls an HTTP API
  3. Flag below-average ads (Code): runs custom JavaScript code
  4. Build AI quality prompt (Code): runs custom JavaScript code
  5. Explain quality fixes with OpenAI (HTTP Request): calls api.openai.com (POST)
  6. Print quality digest report (Code): runs custom JavaScript code
  7. Send a message (Gmail): uses Gmail
  8. Optional: log flagged ads to Google Sheets (Google Sheets): append

Services it uses

Google SheetsGmail

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)

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…

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.