# Generate Images on Telegram from Text and Voice: n8n workflow

> 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...

Source: https://millionrounds.com/workflow/generate-images-on-telegram-from-text-and-voice (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Chat assistants](https://millionrounds.com/workflows?category=Chat+assistants#library)

# 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.

Large Calls a model: OpenAI, OpenRouter Retrieval

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fgenerate-images-on-telegram-from-text-and-voice)

**24 steps** Large: read it before trusting it with anything live

**2** Branches: places the flow splits

**2** Loops or waits

**2** Services it connects to

## The flow

Starts it 2 Model 6 Logic 8 Service 8

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

- 1 **Grok 4.1 Fast** Lm Chat Open Router *Model*
- 2 **Get Message** Telegram trigger *Starts it*
- 3 **Run text to image** Tool Workflow *Model*
- 4 **Run image to image** Tool Workflow *Model*
- 5 **Run Kei AI** Execute Workflow trigger *Starts it*
- 6 **Simple Memory1** Memory Buffer Window *Model*
- 7 **Grok Imagine Agent** Agent *Model*
- 8 **Code** Code *Logic*
- 9 **Switch** Switch *Logic*
- 10 **Send a text message** Telegram *Service*
- 11 **Switch2** Switch *Logic*
- 12 **Run text to image1** Http Request *Service*
- 13 **Run image to image1** Http Request *Service*
- 14 **Get Text** Set *Logic*
- 15 **Get voice message** Telegram *Service*
- 16 **Get image file** Telegram *Service*
- 17 **Wait1** Wait *Logic*
- 18 **Wait2** Wait *Logic*
- 19 **Transcribe recording** Open Ai *Model*
- 20 **Upload image** Ftp *Service*
- 21 **Result text to image** Http Request *Service*
- 22 **Result image to image** Http Request *Service*
- 23 **Get input text from voice** Set *Logic*
- 24 **Set Image Url** Set *Logic*

## 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.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fgenerate-images-on-telegram-from-text-and-voice)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[FTP](https://millionrounds.com/workflows?service=FTP#library)[Telegram](https://millionrounds.com/workflows?service=Telegram#library)

## Workflows like it

Also chat assistants, with the same services where possible, closest in size first.

- [**Agents with OpenRouter and Telegram** 24 steps · calls a model · Telegram](https://millionrounds.com/workflow/agents-with-openrouter-and-telegram)
- [**Compare products and generate visual scorecards in Telegram** 24 steps · calls a model · Google Sheets, Telegram](https://millionrounds.com/workflow/compare-products-and-generate-visual-scorecards-in-telegram)
- [**Create branded LinkedIn carousels with OpenAI** 24 steps · calls a model · Telegram](https://millionrounds.com/workflow/create-branded-linkedin-carousels-with-openai)
- [**Manage employee offboarding checklists with DeepSeek** 24 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/manage-employee-offboarding-checklists-with-deepseek)
- [**Provide Telegram astrology readings with Supabase** 24 steps · calls a model · Google Drive, Supabase](https://millionrounds.com/workflow/provide-telegram-astrology-readings-with-supabase)
- [**Reply to Facebook and Instagram comments with Groq** 24 steps · calls a model · Google Sheets, Telegram](https://millionrounds.com/workflow/reply-to-facebook-and-instagram-comments-with-groq)
