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.
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:
Review these nodes before publishing:
When Executed by Another Workflow: expects url and css_selector as workflow inputsGET URL: fetches the webpage content from the provided URLExtract HTML Content: extracts the content using the provided CSS selector or defaults to bodyOpenAI Chat Model: connect your OpenAI credential and confirm the selected modelCheck Cache and Write to Cache: store and retrieve cached summaries for 24 hoursThis 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.
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.