Skip to content
NEWMeet Alaaddin, your AI genie with a voice. trig8n launches 1 January 2027. See what is new

Library / Email Automation

Email Automation

Find and triage keyword cannibalization with Search Console, OpenAI, and Gmail

On a schedule, it handles email with OpenAI / ChatGPT using Data Table, Gmail, Google APIs.

What it does

## Find the queries where two of your pages compete, and drop the ones that only look that way Grouping Search Console by query and listing every page that appears is a five minute job and almost pure noise. On the property this was built against, 39 queries had two or more of their own URLs and one was worth acting on. ### How it works Two 28-day windows come out of Search Console by query and page, so every overlap carries whether it is growing or fading. Two filters then remove what a group-by cannot see past: operator queries like site:yourdomain.com, which arrive as one query carrying dozens of URLs, and Google AI Mode fan-out prompts, which are long, first-person and never clicked. What survives gets checked rather than reported. Fetch Each URL Once requests both pages without following redirects and reads the status, the location header, the canonical and the hreflang alternates. That is what separates a real overlap from one page under two URLs, which is the common case after a move: Search Console keeps reporting the old path for weeks. What Kind Of Overlap Is It? routes each pair. A redirect pair or a declared alternate is counted and left alone; only the rest reach the model, which says which URL should own the query. ### Setup 1. A Google service account credential, and its email added as a user on the property inside Search Console. Owning the Cloud project grants nothing. 2. Your property in Settings, in the form sc-domain:example.com or https://example.com/. 3. A Data Table called query_overlaps with columns pair_key, query, urls, verdict, impressions and last_seen. 4. A Gmail credential for the digest, and an OpenAI-compatible key on the model node.

The steps

  1. Check Every Monday
  2. Or Run It After A Migration
  3. Settings
  4. Ask Search Console
  5. Ask The Window Before
  6. Both Windows
  7. Group Every Query By Its Pages
  8. Drop The Operator Queries
  9. Drop The AI Mode Prompts
  10. Anything Left To Check?
  11. List Every URL Once
  12. Fetch Each URL Once
  13. Read What Each URL Is
  14. Read What You Reported

28 steps in total.

Similar automations