Automation library · Content

Create & share AI videos with Telegram and Gemini

Started by an incoming Telegram message, and works across Google Drive, Google Sheets 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. 41 steps, 8 branches, 6 loops or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: Gemini, OpenAIRetrieval

41 stepsLarge: read it before trusting it with anything live
8Branches: places the flow splits
6Loops or waits
3Services it connects to

The flow

Starts it 1Model 5Logic 16Service 19

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

  1. 1OpenAI Chat ModelLm Chat Open AiModel
  2. 2Listen for incoming eventsTelegram triggerStarts it
  3. 3Window Buffer MemoryMemory Buffer WindowModel
  4. 4AI AgentAgentModel
  5. 5Voice or TextSetLogic
  6. 6Approved from user?IfLogic
  7. 7A Voice?IfLogic
  8. 8Parse AI OutputCodeLogic
  9. 9Send questions or proposal to userTelegramService
  10. 10Get Voice FileTelegramService
  11. 11Inform user about processingTelegramService
  12. 12Speech to TextOpen AiModel
  13. 13Save Prompt & Post-TextGoogle SheetsService
  14. 14Generate a videoGoogle GeminiModel
  15. 15Upload videoGoogle DriveService
  16. 16Download Video from Drive1Google DriveService
  17. 17Upload media1BlotatoService
  18. 18Create post1BlotatoService
  19. 19Create TikTok postBlotatoService
  20. 20Create Facebook postBlotatoService
  21. 21Wait1WaitLogic
  22. 22WaitWaitLogic
  23. 23Wait2WaitLogic
  24. 24Get post1BlotatoService
  25. 25Check Post StatusBlotatoService
  26. 26Get Facebook postBlotatoService
  27. 27Published to Instagram?IfLogic
  28. 28Published to TikTok?IfLogic
  29. 29Published to Facebook?IfLogic
  30. 30Confirm publishing to InstagramTelegramService
  31. 31In Progress?1IfLogic
  32. 32Confirm publishing to TiktokTelegramService
  33. 33In Progress?IfLogic
  34. 34Confirm publishing to FacebookTelegramService
  35. 35In Progress?2IfLogic
  36. 36Give Blotat more timeWaitLogic
  37. 37Send Instagram Error MessageTelegramService
  38. 38Give Blotat other 5s :)WaitLogic
  39. 39Send TikTok Error MessageTelegramService
  40. 40Give Blotat other 5s :)2WaitLogic
  41. 41Send Facebook Error MessageTelegramService

How it's built

Starts on
An incoming Telegram message
Steps
41, with 8 branches, 6 loops or waits
Size
Large: read it before trusting it with anything live
Connects to
Google Drive, Google Sheets, 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 Google Drive, Google Sheets 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 41 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 41 steps before you point it at anything that matters.