Quick overview
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 Sheets. How it works Runs every week on a schedule trigger. Reads a list of buyer queries (including brand and competitor context) from the queries tab in Google Sheets. Sends each query to OpenAI’s gpt-4o-mini-search-preview three times with web search enabled and extracts the url_citation annotations from each response. Aggregates citations per query and domain, calculating citation totals and a sample hit rate across the three runs. Sends the unique cited domains to OpenAI’s gpt-4o-mini to classify each domain into a source taxonomy (brand site, competitor site, review platform, community, publisher, or docs/other). Appends the aggregated rows with the domain classification and an example URL to the citations tab in Google Sheets. Setup Add an OpenAI API key as an HTTP Header Auth credential (Authorization: Bearer YOUR_KEY) for both OpenAI HTTP requests. Add a Google Sheets credential with access to the target spreadsheet. Create a sheet with tabs queries and citations--> queries: query_id | query | brand | competitors. citations--> run_date | query_id | query | domain | citations | sample_hit_rate | source_type | example_url Replace YOUR_GOOGLE_SHEET_ID in both Google Sheets nodes and ensure the spreadsheet has queries and citations tabs with the expected columns. An n8n automation workflow template by Sara Soleymani.
Sara Soleymani
web
free
Others in the same category, ranked by how often they are opened.