Automation library · Content

Automate AI news posting on X/Twitter with Telegram

Started by an incoming Telegram message, and works across RSS, Telegram and X. It hands the judgement calls to OpenRouter. 24 steps, 2 branches: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenRouter

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

The flow

Starts it 2Model 2Logic 13Service 7

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

  1. 1OpenRouterLm Chat Open RouterModel
  2. 2SchedulerSchedule triggerStarts it
  3. 3TelegramTelegram triggerStarts it
  4. 4AI Generate TweetChain LlmModel
  5. 5Check StateCodeLogic
  6. 6Route CommandsSwitchLogic
  7. 7Build AI MessageCodeLogic
  8. 8Should Post?IfLogic
  9. 9Start BotCodeLogic
  10. 10Stop BotCodeLogic
  11. 11Configure BotCodeLogic
  12. 12Restart BotCodeLogic
  13. 13Send AI MessageTelegramService
  14. 14Build Cycle StartCodeLogic
  15. 15Telegram ReplyTelegramService
  16. 16Get Tweet TextCodeLogic
  17. 17Send Cycle StartTelegramService
  18. 18Post TweetTwitterService
  19. 19Fetch NewsRss Feed ReadService
  20. 20Count + StampCodeLogic
  21. 21Build News MessageCodeLogic
  22. 22Send SuccessTelegramService
  23. 23Send News MessageTelegramService
  24. 24Build PromptCodeLogic

How it's built

Starts on
An incoming Telegram message
Steps
24, with 2 branches
Size
Large: read it before trusting it with anything live
Connects to
RSS, Telegram, X
Model
OpenRouter

Questions

What does it need to run?

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

How long does it take to set up?

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