Skip to main content

Summarize webpage content with OpenAI GPT-5-mini and 24h caching

Workflow preview

Workflow preview
100%
Summarize webpage content with OpenAI GPT-5-mini and 24h caching preview
Open on n8n.io

1. Workflow Overview

This workflow summarizes the content of a webpage from a provided URL. It can optionally target a specific part of the page using a CSS selector, then uses an AI summarization chain to generate a c...

Best for

  • Document Extraction automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.executeworkflowtrigger, n8n-nodes-base.code, n8n-nodes-base.set, n8n-nodes-base.httprequest, n8n-nodes-base.html, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.chainsummarization, n8n-nodes-base.if

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Wetomate AI.

Original n8n.io source

1.1 Workflow description

Title
Summarize webpage content with OpenAI GPT-5-mini and 24h caching
Workflow name
Summarize webpage content with OpenAI GPT-5-mini and 24h caching

This workflow summarizes the content of a webpage from a provided URL. It can optionally target a specific part of the page using a CSS selector, then uses an AI summarization chain to generate a concise summary. To improve performance and reduce repeated requests, the workflow caches summaries for 24 hours and returns the cached result when available.

Setup

Before using this workflow, configure your OpenAI credential and make sure the workflow is called by another workflow with the required input values.

You need to provide:

  • url: the webpage to summarize
  • css_selector: optional CSS selector to extract a specific section of the page; if left empty, the workflow uses body

Review these nodes before publishing:

  • When Executed by Another Workflow: expects url and css_selector as workflow inputs
  • GET URL: fetches the webpage content from the provided URL
  • Extract HTML Content: extracts the content using the provided CSS selector or defaults to body OpenAI Chat Model: connect your OpenAI credential and confirm the selected model Summarization Chain: generates the final summary
  • Check Cache and Write to Cache: store and retrieve cached summaries for 24 hours

How it works

This workflow is triggered by another workflow and receives a webpage URL plus an optional CSS selector. It first checks workflow static data to see whether a summary for that URL is already cached and still valid within the 24-hour time-to-live period.

If cached data exists, the workflow immediately returns the stored summary. If not, it fetches the webpage content from the provided URL, extracts the relevant HTML content using the CSS selector, and sends the extracted text to an AI summarization chain.

After the summary is generated, the workflow writes the result to the cache with a timestamp so future requests for the same URL can be served faster. The workflow then returns the final output.

Usecases

Use this workflow to summarize webpage content from a URL so it can be reused in downstream automations, agents, or AI-powered workflows. It is especially useful when you want to extract the main content of a page, reduce it into a concise summary, and avoid repeated processing by caching the result for 24 hours.

This workflow can also be used as a tool for LLM chain models. For example, you can call it from an agent or another workflow to let an LLM retrieve and summarize webpage content before answering a question, generating a report, enriching research, or providing context-aware responses. This makes it useful for AI assistants, retrieval workflows, research agents, support bots, and content analysis pipelines.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - When Executed by Another Workflow

Type / Role
n8n-nodes-base.executeWorkflowTrigger - executeWorkflowTrigger
Config choices
Version 1.1

Block 2 - Check Cache

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 3 - Write to Cache

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 4 - Only Data

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 5 - GET URL

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 6 - Extract HTML Content

Type / Role
n8n-nodes-base.html - html
Config choices
Version 1.2

Block 7 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.3

Block 8 - Summarization Chain

Type / Role
@n8n/n8n-nodes-langchain.chainSummarization - chainSummarization
Config choices
Version 2.1

Block 9 - Check Cache for Data

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 10 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Done

Type / Role
n8n-nodes-base.noOp - noOp
Config choices
Version 1

Block 15 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Summarize webpage content with OpenAI GPT-5-mini and 24h caching
Complexity advanced
Nodes 15
Categories Document Extraction, AI Summarization
Author Wetomate AI
Published 17 May 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/15776/15776.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Summarize webpage content with OpenAI GPT-5-mini and 24h caching do?

This workflow summarizes the content of a webpage from a provided URL. It can optionally target a specific part of the page using a CSS selector, then uses an AI summarization chain to generate a c...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Document Extraction, AI Summarization use case.