Templates / Generate and rank landing page headlines with GPT-4o-mini, Google Sheets and Gmail

Generate and rank landing page headlines with GPT-4o-mini, Google Sheets and Gmail

Needs changes

by Incrementors ✓ · 57 views · created 2026-04-20 · Content Creation, AI Summarization

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 13 nodes and runs when someone submits an n8n form (“Landing Page Headline Generator”). Along the way it connects OpenAI Chat Model, Google Sheets and Gmail.

How it runs

Trigger: When someone submits an n8n form (“Landing Page Headline Generator”).

  1. 2. Set — Config Values (Edit Fields (Set)): sets 11 fields: sheetId, sheetName, recipientEmail…
  2. 3. HTTP — Scrape Landing Page (HTTP Request): calls an HTTP API
  3. 4. Code — Clean Page Content (Code): runs custom JavaScript code
  4. 5. AI Agent — Generate Headlines (AI Agent): runs an AI agent, with model: 6. OpenAI — GPT-4o-mini Model; output parser: 7. Parser — Structured Headline Output
  5. 8. Code — Split Headlines for Sheets (Code): runs custom JavaScript code
  6. 9. Google Sheets — Log Headline Tests (Google Sheets): append
  7. 10. IF — All Headlines Logged? (If): checks a condition and branches into true / false
  8. 11. Code — Build Gmail Report (Code): runs custom JavaScript code
  9. 13. Set — More Rows (Edit Fields (Set)): sets 1 field: result
  10. 12. Gmail — Send Headline Report (Gmail): uses Gmail

Services it uses

OpenAI Chat ModelGoogle SheetsGmail

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • AI Agent v1 (old agent modes) in 5. AI Agent — Generate Headlines (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Published 2026 — 6% of 2026 templates need changes for 3.0. See how template age affects 3.0 readiness →

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.
Removed in 3.0Replace with
AI Agent v1 (old agent modes)
5. AI Agent — Generate Headlines (v1.7)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (10)

From the author

Description Submit your landing page URL, current headline, conversion goal, and target audience using a simple form and the workflow does the rest. It scrapes your page, cleans the content, and sends everything to GPT-4o-mini which generates 10 headline…

Excerpt from Incrementors'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.