๐ฌ Summarize web pages from Google Sheets using OpenAI GPT-4o-mini
โก 3 views ยท ๐ฌ Document Extraction & Analysis
Description
Quick overview
This workflow reads a list of web page URLs from Google Sheets, fetches each page, and uses OpenAI Chat Completions to generate a factual title, short summary, key points, topic, and confidence score, then writes the results back to the same sheet.
How it works
- Starts when you manually execute the workflow.
- Loads run settings (maximum pages per run and the OpenAI model) and reads rows from the
pagestab in Google Sheets. - Selects up to the configured limit of rows that have a URL but no existing summary, normalizes/validates the URL, and skips duplicates.
- Fetches each web page over HTTP and extracts plain text (including the HTML title) for summarization.
- Sends the page text to the OpenAI Chat Completions API with instructions to return strict JSON containing title, summary, key points, topic, and confidence.
- Parses the OpenAI response, marks rows as
donewhen a real summary is produced (orfailedwith blank fields if the page or API call fails), and updates the matching rows in Google Sheets byrow_number.
Setup
- Create or use a Google Sheet with a tab named
pagesthat includes columnsrow_numberandurl, plustitle,summary,key_points,topic,confidence,status, andsummarised_atfor the workflow to fill. - Add Google Sheets OAuth2 credentials and paste your Google Sheet URL into both Google Sheets nodes (read and update).
- Add an OpenAI API credential for the OpenAI HTTP request node.
- Optionally adjust
max_per_run(1โ100) and choose an allowed model (for examplegpt-4o-mini) in the configuration step before running.
๐ Nodes Used
Google Sheets, HTTP Request
๐ฅ Import
Download workflow.json and import into n8n:
Workflow menu โ Import from File