# Midjourney Image Generator with Telegram and GoAPI: n8n workflow

> Started by an incoming Telegram message, and works across Discord and Telegram. 16 steps, 3 branches, 2 loops or waits: a working afternoon to understand...

Source: https://millionrounds.com/workflow/midjourney-image-generator-with-telegram-and-goapi (Millionrounds; every figure on the page links to its filing or article)

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

# Midjourney Image Generator with Telegram and GoAPI

Started by an incoming Telegram message, and works across Discord and Telegram. 16 steps, 3 branches, 2 loops or waits: a working afternoon to understand properly.

Medium

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fmidjourney-image-generator-with-telegram-and-goapi)

**16 steps** Medium: a working afternoon

**3** Branches: places the flow splits

**2** Loops or waits

**2** Services it connects to

## The flow

Starts it 1 Logic 6 Service 9

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

- 1 **Telegram Trigger** Telegram trigger *Starts it*
- 2 **Get Prompt** If *Logic*
- 3 **Task** Set *Logic*
- 4 **Generate Image** Http Request *Service*
- 5 **Notify Generation** Telegram *Service*
- 6 **Get Generation Task** Http Request *Service*
- 7 **Status = complete** If *Logic*
- 8 **Get Index to Upscale** Telegram *Service*
- 9 **Wait** Wait *Logic*
- 10 **Upscale** Http Request *Service*
- 11 **Notify Upscaling** Telegram *Service*
- 12 **Get Upscale Task** Http Request *Service*
- 13 **Get Upscale** If *Logic*
- 14 **Main Log** Telegram *Service*
- 15 **Discord - Generation Log** Discord *Service*
- 16 **Wait1** Wait *Logic*

## How it's built

- **Starts on:** An incoming Telegram message
- **Steps:** 16, with 3 branches, 2 loops or waits
- **Size:** Medium: a working afternoon
- **Connects to:** Discord, Telegram
- **Model:** None. This is plumbing, not judgement

## Questions

What does it need to run?

An n8n account, plus your own Discord and Telegram accounts. 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?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Plan an afternoon. 16 steps is enough that you should read each one before running it.

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 16 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%2Fmidjourney-image-generator-with-telegram-and-goapi)
- **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.

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

## Workflows like it

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

- [**AI Virtual Try-On Image, Video Generation** 16 steps · Discord, Telegram](https://millionrounds.com/workflow/ai-virtual-try-on-image-video-generation)
- [**Automate cross-posting from Telegram to Facebook** 16 steps · Telegram](https://millionrounds.com/workflow/automate-cross-posting-from-telegram-to-facebook)
- [**Send a daily tech and world news briefing** 16 steps · RSS, Telegram](https://millionrounds.com/workflow/send-a-daily-tech-and-world-news-briefing)
- [**AI video automation engine - generate & publish YT shorts** 16 steps · calls a model · Telegram, YouTube](https://millionrounds.com/workflow/ai-video-automation-engine-generate-and-publish-yt-shorts)
- [**AI-powered Instagram content automation with OpenRouter** 16 steps · calls a model · Airtable, Telegram](https://millionrounds.com/workflow/ai-powered-instagram-content-automation-with-openrouter)
- [**Auto-Generate & Publish SEO Blog Posts to WordPress** 16 steps · calls a model · Discord, Telegram](https://millionrounds.com/workflow/auto-generate-and-publish-seo-blog-posts-to-wordpress)
