Skip to main content

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

Workflow preview

Workflow preview
100%
Auto-generate social media posts from URLs with AI, Telegram & multi-platform posting preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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 ...

Best for

  • Social Media automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.telegramtrigger, n8n-nodes-base.stickynote, n8n-nodes-base.function, n8n-nodes-base.httprequest, n8n-nodes-base.googlesheets, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.merge, n8n-nodes-base.if

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Karol Otręba.

Original n8n.io source

1.1 Workflow description

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

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 platform-specific copy (Facebook, Instagram, LinkedIn). 4. Image: Creates an AI image and stores it in Supabase Storage. 5. Publish: Posts to Facebook Pages, Instagram Business, LinkedIn. 6. Logging: Updates Google Sheets with post URLs and sends a Telegram confirmation (image + links).

Setup

1.	Telegram – create a bot, connect via n8n Telegram credentials.
2.	OpenAI / Gemini – add API key in n8n Credentials and select it in the AI nodes.
3.	Facebook/Instagram (Graph API) – create a credential called facebookGraph with:
•	accessToken (page-scoped or system user)
•	pageId (for Facebook Page photos)
•	igUserId (Instagram Business account ID)
•	optional fbApiVersion (default v19.0)
4.	LinkedIn – connect with OAuth2 in the LinkedIn node (leave as credential).
5.	Supabase – credential supabase with url and apiKey. Ensure a bucket exists (default used in the Set node is social-media).
6.	Google Sheets – replace YOUR_GOOGLE_SHEET_ID and Sheet1. Grant your n8n Google OAuth2 access.

Notes

•	No API keys are stored in the template. Everything runs via n8n Credentials.
•	You can change bucket name, image size/quality, and AI prompts in the respective nodes.
•	The confirmation message on Telegram includes direct permalinks to the published posts.

Required credentials

•	Telegram Bot
•	OpenAI (or Gemini)
•	Facebook/Instagram Graph
•	LinkedIn OAuth2
•	Supabase (url + apiKey)
•	Google Sheets OAuth2

Inputs

•	A Telegram message that contains a URL.

Outputs

•	Social posts published on Facebook, Instagram, LinkedIn.
•	Row appended/updated in Google Sheets with post URLs and image link.
•	Telegram confirmation with the generated image + post links.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Telegram Bot Trigger

Type / Role
n8n-nodes-base.telegramTrigger - telegramTrigger
Config choices
Version 1

Block 2 - Workflow Overview

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Extract URL

Type / Role
n8n-nodes-base.function - function
Config choices
Version 1

Block 4 - Fetch URL Content

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 5 - Extract Text Content

Type / Role
n8n-nodes-base.function - function
Config choices
Version 1

Block 6 - AI Processing

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Post to Facebook

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 8 - Post to Instagram

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 9 - Final Status Update

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4

Block 10 - Publishing Phase

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Post to Instagram1

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 12 - Facebook Post

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 13 - Instagram Post

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 14 - LinkedIn Post

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 15 - Merge

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 16 - Merge1

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 17 - Merge2

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 18 - If message contains URL

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 19 - Telegram

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 20 - Code

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 21 - Code1

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 22 - LinkedIn

Type / Role
n8n-nodes-base.linkedIn - linkedIn
Config choices
Version 1

Block 23 - Binary File

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 24 - Merge3

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Showing the first 24 of 42 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Auto-generate social media posts from URLs with AI, Telegram & multi-platform posting
Complexity advanced
Nodes 42
Categories Social Media, Multimodal AI
Author Karol Otręba
Published 28 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/9059/9059.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

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

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 ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Social Media, Multimodal AI use case.