Templates / Track buyer query citation sources with GPT-4o and Google Sheets

Track buyer query citation sources with GPT-4o and Google Sheets

Ready for 3.0

by Sara Soleymani ✓ · 19 views · created 2026-07-10 · 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 on a schedule (every week at 09:00). Along the way it connects Google Sheets. It also calls api.openai.com over HTTP.

How it runs

Trigger: On a schedule (every week at 09:00).

  1. Read Queries from Sheets (Google Sheets): uses Google Sheets
  2. Expand Queries to Samples (Code): runs custom JavaScript code
  3. Batch Process Samples (Loop Over Items (Split in Batches)): loops over the items in batches
  4. Aggregate Citation Data (Code): runs custom JavaScript code
  5. Post to OpenAI API (HTTP Request): calls api.openai.com (POST)
  6. Classify Citation Domains (HTTP Request): calls api.openai.com (POST)
  7. Extract URL Citations (Code): runs custom JavaScript code
  8. Join Domain Classifications (Code): runs custom JavaScript code
  9. Append Citations to Sheets (Google Sheets): append

Services it uses

Google Sheets

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

From the author

Quick overview This workflow tracks which sources ChatGPT cites for buyer queries.vIt runs weekly to test buyer queries against OpenAI’s GPT-4o web search, extracts the cited URLs, and logs per-query citation counts and domain classifications to Google…

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