Templates / Auto-generate social media posts from URLs with AI, Telegram & multi-platform posting

Auto-generate social media posts from URLs with AI, Telegram & multi-platform posting

Needs changes

by Karol Otręba ✓ · 2,189 views · created 2025-09-28 · Social Media, Multimodal AI

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: Function (legacy). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 33 nodes and runs on Telegram events (message). Along the way it connects Telegram, Google Sheets, OpenAI and LinkedIn and 1 more.

How it runs

Trigger: On Telegram events (message).

  1. If: checks a condition and branches into true / false
  2. Extract URL (Function): runs custom JavaScript (legacy Function node)
  3. Telegram: uses Telegram
  4. Append or update row in sheet (Google Sheets): append or update
  5. Fetch URL Content (HTTP Request): calls an HTTP API
  6. Extract Text Content (Function): runs custom JavaScript (legacy Function node)
  7. Facebook Post (OpenAI): uses OpenAI
  8. Instagram Post (OpenAI): uses OpenAI
  9. LinkedIn Post (OpenAI): uses OpenAI
  10. Merge: merges the data from its input branches

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

Services it uses

TelegramGoogle SheetsOpenAILinkedInGoogle Gemini Chat Model

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • Function (legacy) in Extract URL, Extract Text Content: replace with Code node, mode 'Run Once for All Items'.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace with
Function (legacy)
Extract URL, Extract Text Content
Code node, mode 'Run Once for All Items'

Nodes used (13)

From the author

How it works This workflow turns any URL sent to a Telegram bot into ready-to-publish social posts: 1. Trigger: Telegram message (checks if it contains a URL). 2. Fetch & parse: Downloads the page and extracts readable text + title. 3. AI writing: Generates…

Excerpt from Karol Otręba'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.