Automation library · Content

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.

LargeCalls a model: Gemini, OpenAI

33 stepsLarge: read it before trusting it with anything live
1Branch: places the flow splits
0Loops or waits
3Services it connects to

The flow

Starts it 1Model 6Logic 14Service 12

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

  1. 1Telegram Bot TriggerTelegram triggerStarts it
  2. 2Google GeminiLm Chat Google GeminiModel
  3. 3If message contains URLIfLogic
  4. 4Basic LLM Chain2Chain LlmModel
  5. 5Extract URLFunctionLogic
  6. 6TelegramTelegramService
  7. 7Generate an image1Open AiModel
  8. 8Append or update row in sheetGoogle SheetsService
  9. 9Edit FieldsSetLogic
  10. 10Fetch URL ContentHttp RequestService
  11. 11Supabase ConfigSetLogic
  12. 12Extract Text ContentFunctionLogic
  13. 13Upload to Supabase (uses credentials)Http RequestService
  14. 14Facebook PostOpen AiModel
  15. 15Instagram PostOpen AiModel
  16. 16LinkedIn PostOpen AiModel
  17. 17Supabase Public URLSetLogic
  18. 18MergeMergeLogic
  19. 19Merge1MergeLogic
  20. 20Merge2MergeLogic
  21. 21Post to FacebookHttp RequestService
  22. 22Post to InstagramHttp RequestService
  23. 23Binary FileHttp RequestService
  24. 24CodeCodeLogic
  25. 25Post to Instagram1Http RequestService
  26. 26LinkedInLinked InService
  27. 27Merge3MergeLogic
  28. 28Get Post URLHttp RequestService
  29. 29Code2CodeLogic
  30. 30Code3CodeLogic
  31. 31Code1CodeLogic
  32. 32Final Status UpdateGoogle SheetsService
  33. 33Send a photo messageTelegramService

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.