Templates / Extract structured data from webpages with Apify and OpenAI

Extract structured data from webpages with Apify and OpenAI

Ready for 3.0

by Dr. Firas ✓ · 103 views · created 2026-08-07 · Document Extraction, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 21 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects OpenAI Chat Model. It also calls api.apify.com over HTTP.

How it runs

Trigger: When an HTTP POST request hits its webhook URL.

  1. Configuration (Edit Fields (Set)): sets 9 fields: apify_search_actor, apify_content_crawler_actor, crawler_type…
  2. Normalize Input (Edit Fields (Set)): sets 5 fields: target_url, subject, website_domain…
  3. Has Target Data? (If): checks a condition and branches into true / false
  4. Has Direct Target URL? (If): checks a condition and branches into true / false
  5. Respond - Missing Target Data (Respond to Webhook): sends the response back to the webhook caller
  6. Use Direct URL (Edit Fields (Set)): sets 1 field: resolved_url
  7. Search Page with Apify (HTTP Request): calls api.apify.com (POST)
  8. Scrape Page with Apify (HTTP Request): calls api.apify.com (POST)
  9. Extract First Result URL (Edit Fields (Set)): sets 1 field: resolved_url
  10. Respond - Search Request Failed (Respond to Webhook): sends the response back to the webhook caller

…plus 8 more steps. See the full node list below.

Services it uses

OpenAI Chat Model

HTTP calls to: api.apify.com

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 (8)

From the author

Quick overview This workflow exposes a webhook that finds or accepts a target webpage, scrapes it to clean Markdown using Apify, and uses OpenAI with a dynamic schema to return structured JSON fields requested by the caller. How it works 1. Receives a POST…

Excerpt from Dr. Firas's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.