Automation library · Content

AI storyteller & video creator with OpenAI and Supabase

Started by an incoming Telegram message, and works across Supabase, Telegram and YouTube. It hands the judgement calls to OpenAI. 39 steps, 4 branches, 2 loops or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAI

39 stepsLarge: read it before trusting it with anything live
4Branches: places the flow splits
2Loops or waits
3Services it connects to

The flow

Starts it 1Model 5Logic 20Service 13

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

  1. 1Get stories from RedditHttp RequestService
  2. 2OpenAI Chat ModelLm Chat Open AiModel
  3. 3Telegram TriggerTelegram triggerStarts it
  4. 4Split OutSplit OutLogic
  5. 5Create characterInformation ExtractorModel
  6. 6Write the storyChain LlmModel
  7. 7Create titleChain LlmModel
  8. 8Is it a story?Text ClassifierModel
  9. 9Configuration for story writingSetLogic
  10. 10FilterFilterLogic
  11. 11Cleanup textSetLogic
  12. 12Cleanup titleSetLogic
  13. 13Save postSupabaseService
  14. 14Skip postSupabaseService
  15. 15Setup languageCodeLogic
  16. 16Loop Over ItemsSplit In BatchesLogic
  17. 17Is there a pre-selected voice to use?IfLogic
  18. 18Setup sex of the main characterSetLogic
  19. 19Set fieldsSetLogic
  20. 20Keep the original voice valueSetLogic
  21. 21HTTP RequestHttp RequestService
  22. 22Get the next story to processSupabaseService
  23. 23Look up the id of the postSupabaseService
  24. 24Set the final voiceSetLogic
  25. 25Set a random voiceSetLogic
  26. 26Is there a story to process?IfLogic
  27. 27Already exists?IfLogic
  28. 28Start creating the videoHttp RequestService
  29. 29No unprocessed stories in the databaseNo OpLogic
  30. 30WaitWaitLogic
  31. 31Check video statusHttp RequestService
  32. 32SwitchSwitchLogic
  33. 33Set status to failedSupabaseService
  34. 34Setup the download urlSetLogic
  35. 35No Operation, do nothingNo OpLogic
  36. 36Set status to createdSupabaseService
  37. 37Download the videoHttp RequestService
  38. 38Share on YouTubeYou TubeService
  39. 39Set status to uploadedSupabaseService

How it's built

Starts on
An incoming Telegram message
Steps
39, with 4 branches, 2 loops or waits
Size
Large: read it before trusting it with anything live
Connects to
Supabase, Telegram, YouTube
Model
OpenAI

Questions

What does it need to run?

An n8n account, plus your own Supabase, Telegram and YouTube 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 39 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 39 steps before you point it at anything that matters.