Scrape and summarize webpages with AI
Ready for 3.0What this workflow does
This AI workflow has 14 nodes and runs manually, when you click “Execute workflow”. Along the way it connects OpenAI Chat Model. It also calls paulgraham.com over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Fetch Essay List (HTTP Request): calls paulgraham.com
- Extract essay names (HTML): parses or builds HTML
- Split Out: splits a list into separate items
- Limit: keeps the first few items
- Fetch essay texts (HTTP Request): calls an HTTP API
- Extract title (HTML): parses or builds HTML
- Extract Text Only (HTML): parses or builds HTML
- Merge: merges the data from its input branches
- Summarization Chain: summarizes text with AI, with model: OpenAI Chat Model; document loader: Default Data Loader
- Clean up (Edit Fields (Set)): sets 3 fields: title, summary, url
Services it uses
HTTP calls to: paulgraham.com
Scraping pages by hand? Firecrawl is a simpler option (10% off for new users).
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 (11)
- Manual Trigger
n8n-nodes-base.manualTrigger - HTTP Request
n8n-nodes-base.httpRequest - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - HTML
n8n-nodes-base.html - Split Out
n8n-nodes-base.splitOut - Summarization Chain
@n8n/n8n-nodes-langchain.chainSummarization - Edit Fields (Set)
n8n-nodes-base.set - Merge
n8n-nodes-base.merge - Default Data Loader
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - Recursive Character Text Splitter
@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter - Limit
n8n-nodes-base.limit
From the author
This workflow integrates both web scraping and NLP functionalities. It uses HTML parsing to extract links, HTTP requests to fetch essay content, and AI-based summarization using GPT-4o. It's an excellent example of an end-to-end automated task that is not…