Extract
AI-generatedSummary
Fetches a webpage and uses an AI model to extract specific information based on a query.
Inputs
- url (required) — The URL to fetch and extract relevant chunks from.
- query (required) — What information to extract from the page content.
- format — Output format for extracted chunks. Defaults to
markdown. - useSafeguard — Enable prompt-injection detection on selected extracted content.
Output shape
One output item per input item containing a JSON object with result and unsafe fields.
The
resultfield contains the extracted text (string) or JSON, andunsafeis a boolean indicating if the content passed safeguard checks.
Examples
Example 1: Extract article summaries from news sites
URL: https://example.com/news, Query: 'Summarize the main points', Format: 'markdown'
Example 2: Get structured data from product pages
URL: https://example.com/product/123, Query: 'Extract price and availability', Format: ''
