URL Retriever

The URL Retriever lets you fetch and process content from web links, supporting OCR, metadata extraction, and flexible output for powering AI workflows.

URL Retriever

Component description

How the URL Retriever component works

URL Retriever Component

The URL Retriever is a versatile flow component designed to fetch and process web content from specified URLs, returning the information as structured documents. It serves as a bridge between external online content and your AI workflow, enabling you to integrate, analyze, or process web-based information efficiently.

What Does It Do?

This component retrieves the content of one or multiple URLs provided as input. It can extract the main text, metadata, and even process content from images using Optical Character Recognition (OCR). The retrieved data is then made available in various structured formats suitable for downstream AI tasks such as summarization, question answering, or knowledge extraction.

Input Options

You can supply URLs to the component in two ways:

  • Text URLs:

    • Input Type: Message
    • Description: A list of plain URL links for the component to fetch content from.
  • URL Records:

    • Input Type: UrlRecord
    • Description: A list of structured URL records, which may include additional metadata.

Advanced Input Parameters

ParameterTypeDefaultDescription
Apply OCRBooleanfalseIf enabled, applies OCR to extract text from images in the document.
Cache TTLDropdown2 weeksHow long the content should be cached, with options from no cache up to 1 year.
From H1 if existsBooleantrueBegins extraction from the H1 tag if present, focusing on main content.
Load from pointerBooleantrueLoads content starting from the most relevant section based on your query.
Hide ResourcesBooleanfalseHides the retrieved resources from being output or displayed.
Max TokensInteger3000Sets the maximum number of tokens for the output text.
Skip Last HeaderBooleantrueSkips the last header during extraction for streamlined content.
StrategyDropdownInclude equal size from each documentsDetermines how content is combined: concatenate fully or include equal parts from each document.
Export ContentMulti-selectAllChoose which HTML elements to export (H1-H6, Paragraph).
Include MetadataMulti-selectProductSpecify which metadata fields to include (e.g., Product, Author, Website, etc.).
VerboseBooleanfalseEnables detailed output for debugging or information purposes.
Tool NameString(empty)Optionally assign a custom name to the tool for agent reference.
Tool DescriptionMultiline(empty)Provide a description to help agents understand the tool’s purpose.

Outputs

The URL Retriever provides its outputs in several formats, allowing flexible integration with various AI processes:

Output NameTypeDescription
DocumentsMessageThe processed content from the URLs, ready for use in messaging-oriented workflows.
Raw DocumentsDocumentThe raw, unprocessed document objects for advanced downstream processing.
Documents As ToolToolThe content packaged as a tool, enabling agent-based workflows to utilize the documents.

Why Use the URL Retriever?

  • Integrate External Knowledge: Seamlessly bring web-based information into your AI applications, such as chatbots, search engines, or knowledge bases.
  • Customizable Extraction: Fine-tune what content and metadata you want, control the amount of data, and use OCR for images.
  • Performance & Efficiency: Use caching to avoid redundant downloads, and limit token output for performance.
  • Flexible Output Formats: Choose the output format that best fits your next workflow step—structured document, message, or tool.

Example Use Cases

  • Building knowledge-grounded conversational agents that answer questions using up-to-date web content.
  • Aggregating product data from e-commerce sites for comparison or analytics.
  • Monitoring and analyzing blog or news articles based on specific topics or keywords.
  • Extracting information from web pages containing mixed media (text and images).

Summary Table

FeatureDescription
Fetches URLsRetrieves and processes web content from provided URLs.
OCR SupportExtracts text from images in documents if enabled.
Metadata ExtractionOptionally includes metadata such as author, product, or schema.org types.
Customizable OutputSelect which HTML elements or metadata to export.
CachingConfigurable cache lifetimes for efficiency.
Multiple Output TypesSupports message, raw document, and tool outputs for workflow flexibility.

The URL Retriever is a powerful and flexible bridge between web content and your AI workflows, offering granular control over content extraction and integration.

Examples of flow templates using URL Retriever component

To help you get started quickly, we have prepared several example flow templates that demonstrate how to use the URL Retriever component effectively. These templates showcase different use cases and best practices, making it easier for you to understand and implement the component in your own projects.

Frequently asked questions

What does the URL Retriever component do?

The URL Retriever fetches and processes content from specified web links, making text and metadata from online documents available for your workflow or AI agent.

Can it extract content from images or PDFs?

Yes, by enabling the OCR option, the component can extract text from image-based documents or scanned PDFs.

What types of outputs does it provide?

It outputs processed documents as text messages, raw document objects, or as a tool for agent workflows, depending on your setup.

How does caching work in URL Retriever?

You can set how long retrieved content is cached, reducing repeated downloads and speeding up your flows.

Can I control what parts of a webpage are extracted?

Yes, you can specify which headings, paragraphs, or metadata fields to include in the output, allowing for targeted extraction.

Is this suitable for building knowledge bots or web data automations?

Absolutely. The URL Retriever is essential for any automation or chatbot that needs to read, process, or summarize live web content.

Try FlowHunt URL Retriever

Supercharge your workflows by integrating live web content. Extract, process, and utilize data from URLs with ease.

Learn more