Templates / Analyze Google Ads search terms and get negative keyword suggestions with OpenAI GPT-5.4-mini

Analyze Google Ads search terms and get negative keyword suggestions with OpenAI GPT-5.4-mini

Ready for 3.0

by Zeljislav Petrovic · 106 views · created 2026-04-29 · 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 AI workflow has 14 nodes and runs on a schedule (every 30 days at 02:00) (plus 1 other trigger). Along the way it connects OpenAI Chat Model and Google Sheets.

How it runs

Trigger: On a schedule (every 30 days at 02:00) (plus 1 other trigger).

  1. Set Google Ads IDs & business context (Edit Fields (Set)): sets 11 fields: google_ads_mcc, google_ads_customer, google_ads_developer_token…
  2. Fetch search terms data from Google Ads (HTTP Request): calls an HTTP API (POST)
  3. Clean & format fetched data for AI (Code): runs custom JavaScript code
  4. Analyze search terms & suggest keyword exclusions/inclusions (Basic LLM Chain): sends a prompt to an LLM, with model: GPT 5.4-mini
  5. Create spreadsheet for storing analyzed search terms (Google Sheets): work with spreadsheet
  6. Extract & format search terms analysis table (Code): runs custom JavaScript code
  7. Save search terms & exclusion/inclusion suggestions (Google Sheets): append
  8. Extract & format global exclusions list (Code): runs custom JavaScript code
  9. Save global exclusion suggestions (Google Sheets): append
  10. Extract & format search terms inference summary (Code): runs custom JavaScript code

…plus 1 more step. See the full node list below.

Services it uses

OpenAI Chat ModelGoogle Sheets

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 (8)

From the author

Who is this template for? This workflow is built for PPC managers, digital marketing agencies, and in-house marketing teams who run Google Ads search campaigns and want to stop wasting budget on irrelevant queries. Instead of manually reviewing hundreds or…

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