# AI image generation & editing with Gemini and Telegram Bot: n8n workflow

> Started by an incoming Telegram message, and works across Airtable, Google Drive and Telegram.

Source: https://millionrounds.com/workflow/ai-image-generation-and-editing-with-gemini-and-telegram-bot (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)

# AI image generation & editing with Gemini and Telegram Bot

Started by an incoming Telegram message, and works across Airtable, Google Drive and Telegram. 22 steps, 2 branches: large, and worth reading before you trust it with anything live.

Large

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fai-image-generation-and-editing-with-gemini-and-telegram-bot)

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

**2** Branches: places the flow splits

**0** Loops or waits

**3** Services it connects to

## The flow

Starts it 1 Logic 7 Service 14

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

- 1 **Telegram Trigger** Telegram trigger *Starts it*
- 2 **If1** If *Logic*
- 3 **Download Image1** Telegram *Service*
- 4 **Search records** Airtable *Service*
- 5 **Transform to base** Extract From File *Service*
- 6 **Upload file** Google Drive *Service*
- 7 **If** If *Logic*
- 8 **Merge** Merge *Logic*
- 9 **Send a text message** Telegram *Service*
- 10 **Send a text message2** Telegram *Service*
- 11 **Aggregate** Aggregate *Logic*
- 12 **Download File** Http Request *Service*
- 13 **Edit Fields** Set *Logic*
- 14 **Extract from File** Extract From File *Service*
- 15 **Create or update a record** Airtable *Service*
- 16 **Edit Fields1** Set *Logic*
- 17 **Send a text message1** Telegram *Service*
- 18 **Edit Image** Http Request *Service*
- 19 **Convert To File** Code *Logic*
- 20 **Upload file1** Google Drive *Service*
- 21 **Send a photo message** Telegram *Service*
- 22 **Create or update a record1** Airtable *Service*

## How it's built

- **Starts on:** An incoming Telegram message
- **Steps:** 22, with 2 branches
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Airtable, Google Drive, Telegram
- **Model:** None. This is plumbing, not judgement

## Questions

What does it need to run?

An n8n account, plus your own Airtable, Google Drive 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?

Take your time. At 22 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 22 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%2Fai-image-generation-and-editing-with-gemini-and-telegram-bot)
- **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.

[Airtable](https://millionrounds.com/workflows?service=Airtable#library)[Google Drive](https://millionrounds.com/workflows?service=Google+Drive#library)[Telegram](https://millionrounds.com/workflows?service=Telegram#library)

## Workflows like it

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

- [**Annotate video scripts with DeepSeek and Kie.AI** 22 steps · Google Drive, Google Sheets](https://millionrounds.com/workflow/annotate-video-scripts-with-deepseek-and-kie-ai)
- [**Create videos with AI-generated and Gemini** 22 steps · Google Drive](https://millionrounds.com/workflow/create-videos-with-ai-generated-and-gemini)
- [**Generate social videos with VEED and Claude** 22 steps · Google Drive, Google Sheets](https://millionrounds.com/workflow/generate-social-videos-with-veed-and-claude)
- [**Veo 3 + VideoBGRemover Lottie JSON for mobile** 22 steps · Google Drive](https://millionrounds.com/workflow/veo-3-videobgremover-lottie-json-for-mobile)
- [**Analyze YouTube comments and generate video ideas with Gemini** 22 steps · calls a model · Google Sheets, Telegram](https://millionrounds.com/workflow/analyze-youtube-comments-and-generate-video-ideas-with-gemin)
- [**Auto-Generate & Approve Social Media Posts from RSS Feeds** 22 steps · calls a model · LinkedIn, NocoDB](https://millionrounds.com/workflow/auto-generate-and-approve-social-media-posts-from-rss-feeds)
