Automation library · Chat assistants

Generate Images on Telegram from Text and Voice

Started by an incoming Telegram message, and works across FTP and Telegram. It puts OpenAI and OpenRouter behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 24 steps, 2 branches, 2 loops or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAI, OpenRouterRetrieval

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

The flow

Starts it 2Model 6Logic 8Service 8

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

  1. 1Grok 4.1 FastLm Chat Open RouterModel
  2. 2Get MessageTelegram triggerStarts it
  3. 3Run text to imageTool WorkflowModel
  4. 4Run image to imageTool WorkflowModel
  5. 5Run Kei AIExecute Workflow triggerStarts it
  6. 6Simple Memory1Memory Buffer WindowModel
  7. 7Grok Imagine AgentAgentModel
  8. 8CodeCodeLogic
  9. 9SwitchSwitchLogic
  10. 10Send a text messageTelegramService
  11. 11Switch2SwitchLogic
  12. 12Run text to image1Http RequestService
  13. 13Run image to image1Http RequestService
  14. 14Get TextSetLogic
  15. 15Get voice messageTelegramService
  16. 16Get image fileTelegramService
  17. 17Wait1WaitLogic
  18. 18Wait2WaitLogic
  19. 19Transcribe recordingOpen AiModel
  20. 20Upload imageFtpService
  21. 21Result text to imageHttp RequestService
  22. 22Result image to imageHttp RequestService
  23. 23Get input text from voiceSetLogic
  24. 24Set Image UrlSetLogic

How it's built

Starts on
An incoming Telegram message
Steps
24, with 2 branches, 2 loops or waits
Size
Large: read it before trusting it with anything live
Connects to
FTP, Telegram
Model
OpenAI, OpenRouter
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 FTP and Telegram accounts, and a key for OpenAI and 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 OpenAI and OpenRouter. 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 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.