# Auto-generate social media posts from URLs with Telegram: n8n workflow

> Started by an incoming Telegram message, and works across Google Sheets, LinkedIn and Telegram. It hands the judgement calls to Gemini and OpenAI.

Source: https://millionrounds.com/workflow/auto-generate-social-media-posts-from-urls-with-telegram (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Content](https://millionrounds.com/workflows?category=Content#library)

# Auto-generate social media posts from URLs with Telegram

Started by an incoming Telegram message, and works across Google Sheets, LinkedIn and Telegram. It hands the judgement calls to Gemini and OpenAI. 33 steps, 1 branch: large, and worth reading before you trust it with anything live.

Large Calls a model: Gemini, OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fauto-generate-social-media-posts-from-urls-with-telegram)

**33 steps** Large: read it before trusting it with anything live

**1** Branch: places the flow splits

**0** Loops or waits

**3** Services it connects to

## The flow

Starts it 1 Model 6 Logic 14 Service 12

The steps in the order they run, from what starts it.

- 1 **Telegram Bot Trigger** Telegram trigger *Starts it*
- 2 **Google Gemini** Lm Chat Google Gemini *Model*
- 3 **If message contains URL** If *Logic*
- 4 **Basic LLM Chain2** Chain Llm *Model*
- 5 **Extract URL** Function *Logic*
- 6 **Telegram** Telegram *Service*
- 7 **Generate an image1** Open Ai *Model*
- 8 **Append or update row in sheet** Google Sheets *Service*
- 9 **Edit Fields** Set *Logic*
- 10 **Fetch URL Content** Http Request *Service*
- 11 **Supabase Config** Set *Logic*
- 12 **Extract Text Content** Function *Logic*
- 13 **Upload to Supabase (uses credentials)** Http Request *Service*
- 14 **Facebook Post** Open Ai *Model*
- 15 **Instagram Post** Open Ai *Model*
- 16 **LinkedIn Post** Open Ai *Model*
- 17 **Supabase Public URL** Set *Logic*
- 18 **Merge** Merge *Logic*
- 19 **Merge1** Merge *Logic*
- 20 **Merge2** Merge *Logic*
- 21 **Post to Facebook** Http Request *Service*
- 22 **Post to Instagram** Http Request *Service*
- 23 **Binary File** Http Request *Service*
- 24 **Code** Code *Logic*
- 25 **Post to Instagram1** Http Request *Service*
- 26 **LinkedIn** Linked In *Service*
- 27 **Merge3** Merge *Logic*
- 28 **Get Post URL** Http Request *Service*
- 29 **Code2** Code *Logic*
- 30 **Code3** Code *Logic*
- 31 **Code1** Code *Logic*
- 32 **Final Status Update** Google Sheets *Service*
- 33 **Send a photo message** Telegram *Service*

## How it's built

- **Starts on:** An incoming Telegram message
- **Steps:** 33, with 1 branch
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Google Sheets, LinkedIn, Telegram
- **Model:** Gemini, OpenAI

## Questions

What does it need to run?

An n8n account, plus your own Google Sheets, LinkedIn and Telegram accounts, and a key for Gemini and OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an incoming Telegram message.

Does it use AI?

Yes. It calls Gemini and OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 33 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 33 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fauto-generate-social-media-posts-from-urls-with-telegram)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)[LinkedIn](https://millionrounds.com/workflows?service=LinkedIn#library)[Telegram](https://millionrounds.com/workflows?service=Telegram#library)

## Workflows like it

Also content, with the same services where possible, closest in size first.

- [**AI-powered LinkedIn post automation with Gemini and OpenAI** 33 steps · calls a model · LinkedIn, Telegram](https://millionrounds.com/workflow/ai-powered-linkedin-post-automation-with-gemini-and-openai)
- [**Auto-generate & publish short videos with OpenAI** 33 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/auto-generate-and-publish-short-videos-with-openai)
- [**Auto-post Amazon India affiliate videos to 6 platforms** 33 steps · calls a model · Apify, Google Sheets](https://millionrounds.com/workflow/auto-post-amazon-india-affiliate-videos-to-6-platforms)
- [**Automated Blog Creation & Multi-Platform Publishing** 33 steps · calls a model · Discord, LinkedIn](https://millionrounds.com/workflow/automated-blog-creation-and-multi-platform-publishing)
- [**Automated tweet generator & publisher with OpenAI and Discord** 33 steps · calls a model · Discord, Google Sheets](https://millionrounds.com/workflow/automated-tweet-generator-and-publisher-with-openai-and-disc)
- [**Create TikTok carousel posts with Upload Post** 33 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/create-tiktok-carousel-posts-with-upload-post)
