Built an SEO topic scout in n8n: Gemini scores the ideas, I approve with one tap in Telegram

Hi everyone :waving_hand:

I’m working through a series of practical n8n projects for people who are learning, and I share each one as a free, open repo. This is project #4. It’s the first step towards a content assistant for my personal finance site, and it answers a question I kept asking myself every week: what should I write about next?

What it does

Workflow 1 (runs every Monday)

  • Reads seed keywords from a Google Sheet
  • Pulls Google Autocomplete suggestions for each one, which shows what people actually type
  • Reads trending questions from Reddit through RSS
  • Checks my existing post titles so it doesn’t suggest duplicates
  • Sends everything to Gemini in one call, which returns 10 scored topic ideas as structured JSON
  • Logs the ideas to the sheet and sends me the top 5 in Telegram, each with an Approve button

Workflow 2 (instant)

  • When I tap a button, it marks that topic as approved in the sheet and confirms in the chat

The approval step is the part I like most. Nothing moves forward without my decision, which matters for money-related content.

What tripped me up (in case it saves you an evening)

  • Callback data pasted from a formatted table lost its | separators, so my code received undefined. Typing it directly fixed it.
  • My ids were built from the date alone, so three test runs in one day created duplicate rows. Update Row fired three times and I got three confirmation messages. Adding the time to the id solved it.
  • An Update Row node lists every column by default. Leaving the extra ones empty would overwrite real data with blanks, so I keep only the match column and the column I’m changing.
  • On a Google Sheets node in the middle of a flow, Execute Once and Always Output Data stopped it running dozens of times, and stopped an empty tab from ending the workflow.
  • A Telegram bot can only send updates to one trigger, so each project needs its own bot.

Repo
Both workflow JSONs, the prompt, sample data and a README with setup steps are on GitHub. Search for:

github.com/codewithghani/n8n-seo-topic-scout-gemini-telegram-google-sheets

No keys, sheet IDs, chat IDs or emails are included. You import the JSON, connect your own Gemini, Sheets and Telegram credentials, and change the seed keywords to your niche.

One honest caveat: the scores and difficulty guesses are AI estimates from free public signals, not measured search volumes. I use them as a ranked idea list and check real numbers before writing anything.

I’d really value your input

  1. Where would you get better keyword data without paying much? I’m considering Google Search Console next.
  2. How do you build approval steps? I used inline buttons, but I’ve seen people use the Wait node or forms.
  3. Would you score each topic in its own AI call, or keep one batched call like I did to stay inside free-tier limits?
  4. What would you add or change in the structure or the prompt?

If you’d like to collaborate
I’m happy to team up on n8n projects: co-building a workflow, reviewing one you’re stuck on, or turning an idea into a beginner-friendly tutorial. I enjoy practical automation, especially AI and finance use cases. If you have a project where an extra pair of hands would help, send me a message here, or open an issue or discussion on the repo.

Next up is a second stage that takes an approved topic through research, drafting and editing, then saves it as a draft in WordPress for my review. I’ll share that too.

Thanks for reading, and I’m looking forward to your thoughts! :folded_hands:

Nice project, and keeping an approval step before anything moves forward is the right call for AI-scored ideas. A couple of suggestions that might make the scoring more stable:

  1. Ask Gemini for a fixed JSON schema (topic, intent, score, reason) and validate it in a Code or IF node before logging. If the response fails validation, retry once or route it to an error branch so a malformed run never writes bad rows to the sheet.
  2. For the duplicate check, normalise titles (lowercase, strip punctuation) before comparing them with the existing posts, otherwise near-identical titles can slip through.
  3. Store the Reddit question and the autocomplete phrase next to each idea in the sheet, so when you approve a topic you can see the exact search wording it came from.
  4. Add an Error Trigger workflow that pings Telegram if the Monday run fails, since scheduled workflows tend to fail silently.

Thanks for sharing the repo, it is a useful reference for people learning structured outputs in n8n.