Automation library · Content

Generate LinkedIn posts with Telegram and Supabase

Started by an incoming Telegram message, and works across LinkedIn, Supabase vectors and Telegram. It puts Gemini and OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 25 steps, 1 branch: large, and worth reading before you trust it with anything live.

LargeCalls a model: Gemini, OpenAIRetrieval

25 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 2Model 14Logic 3Service 6

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

  1. 1On Telegram MessageTelegram triggerStarts it
  2. 2Data LoaderDocument Default Data LoaderModel
  3. 3EmbeddingsEmbeddings Open AiModel
  4. 4LinkedIn FormForm triggerStarts it
  5. 54o miniLm Chat Open AiModel
  6. 62.5-flashLm Chat Google GeminiModel
  7. 75 nanoLm Chat Open AiModel
  8. 8Embeddings.Embeddings Open AiModel
  9. 9IfIfLogic
  10. 10Typing....TelegramService
  11. 11Upload DocumentVector Store SupabaseModel
  12. 12Hook Analyse AgentAgentModel
  13. 13Post Structure AgentAgentModel
  14. 14Post Generator AgentAgentModel
  15. 15Structured Output ParserOutput Parser StructuredModel
  16. 16Structured Output Parser.Output Parser StructuredModel
  17. 17Structured Output Parser1Output Parser StructuredModel
  18. 18Supabase Vector StoreVector Store SupabaseModel
  19. 19LinkedIn Post URLHttp RequestService
  20. 20Wrong URLTelegramService
  21. 21CodeCodeLogic
  22. 22Create a postLinked InService
  23. 23Scrap ContentHtmlLogic
  24. 24Unable to ScrapeTelegramService
  25. 25✅ Post Scrapped SucessfullyTelegramService

How it's built

Starts on
An incoming Telegram message
Steps
25, with 1 branch
Size
Large: read it before trusting it with anything live
Connects to
LinkedIn, Supabase vectors, Telegram
Model
Gemini, OpenAI
Retrieval
Answers are drawn from documents you supply, not from the model alone

Questions

What does it need to run?

An n8n account, plus your own LinkedIn, Supabase vectors 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. Its answers draw on documents you give it, not on the model alone. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 25 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 25 steps before you point it at anything that matters.