Automation library · Content

Generate AI avatar videos with OpenAI

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

LargeCalls a model: OpenAI

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

The flow

Starts it 1Model 4Logic 5Service 26

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

  1. 1OpenAI Model GPT-5Lm Chat Open AiModel
  2. 2LangChain - Think ToolTool ThinkModel
  3. 3Google Sheets - Update Title & CaptionGoogle Sheets ToolService
  4. 4Telegram Trigger: Receive Voice MessageTelegram triggerStarts it
  5. 5HeyGen: List AvatarsHttp RequestService
  6. 6AI Agent - Generate Title & CaptionAgentModel
  7. 7Telegram: Download VoiceTelegramService
  8. 8Google Drive: Upload VoiceGoogle DriveService
  9. 9TmpFiles: Upload Voice (Public URL)Http RequestService
  10. 10OpenAI - Transcribe Video to TextOpen AiModel
  11. 11Google Sheets: Log Voice MetadataGoogle SheetsService
  12. 12Google Sheets: Read Avatar ConfigGoogle SheetsService
  13. 13ID AvatarSetLogic
  14. 14HeyGen: Generate Avatar VideoHttp RequestService
  15. 15Wait for RenderingWaitLogic
  16. 16HeyGen: Check Video StatusHttp RequestService
  17. 17If: Video Completed?IfLogic
  18. 18HTTP: Download Final VideoHttp RequestService
  19. 19Google Drive: Upload Final VideoGoogle DriveService
  20. 20Google Sheets: Save Final Video URLGoogle SheetsService
  21. 21Google Sheets - Read Post DataGoogle SheetsService
  22. 22Get Google Drive IDSetLogic
  23. 23Upload Video to BLOTATOBlotatoService
  24. 24TiktokBlotatoService
  25. 25LinkedinBlotatoService
  26. 26FacebookBlotatoService
  27. 27InstagramBlotatoService
  28. 28Twitter (X)BlotatoService
  29. 29YoutubeBlotatoService
  30. 30ThreadsBlotatoService
  31. 31BlueskyBlotatoService
  32. 32PinterestBlotatoService
  33. 33MergeMergeLogic
  34. 34Google Sheets - Update StatusGoogle SheetsService
  35. 35Telegram: Send Post ConfirmationTelegramService
  36. 36Telegram: Send Final VideoTelegramService

How it's built

Starts on
An incoming Telegram message
Steps
36, with 1 branch, 1 loop or waits
Size
Large: read it before trusting it with anything live
Connects to
Google Drive, Google Sheets, Telegram
Model
OpenAI

Questions

What does it need to run?

An n8n account, plus your own Google Drive, Google Sheets and Telegram accounts, and a key for 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 OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

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