Templates / Summarize Telegram-shared webpages with OpenAI GPT-4o

Summarize Telegram-shared webpages with OpenAI GPT-4o

Ready for 3.0

by Dr. Firas ✓ · 35 views · created 2026-07-09 · 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-10-19.

What this workflow does

This AI workflow has 13 nodes and runs on Telegram events (message). Along the way it connects Telegram and OpenAI Chat Model.

How it runs

Trigger: On Telegram events (message).

  1. Configuration (Edit Fields (Set)): sets 3 fields: openai_model, max_page_size, include_raw_url_in_prompt
  2. Extract URL (Code): runs custom JavaScript code
  3. URL Valid? (If): checks a condition and branches into true / false
  4. Fetch Webpage (HTTP Request): calls an HTTP API
  5. Send Invalid URL Error (Telegram): uses Telegram
  6. Extract Page Content (HTML): parses or builds HTML
  7. Prepare Summary Input (Edit Fields (Set)): sets 3 fields: page_title, page_text, source_url
  8. Summarize Page (AI Agent): runs an AI agent, with model: OpenAI Model; output parser: Summary Output Parser
  9. Format Summary (Edit Fields (Set)): sets 1 field: telegram_text
  10. Send Summary to Telegram (Telegram): uses Telegram

Services it uses

TelegramOpenAI Chat Model

Scraping pages by hand? Firecrawl is a simpler option (10% off for new users).

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

From the author

Quick overview This workflow listens for Telegram messages containing a URL, fetches and cleans the webpage content, summarizes it with an OpenAI chat model, and replies in the same Telegram chat with a formatted summary including key points and action items.…

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.