# Automate delivery confirmation with Telegram Bot: n8n workflow

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

Source: https://millionrounds.com/workflow/automate-delivery-confirmation-with-telegram-bot (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Alerts and monitoring](https://millionrounds.com/workflows?category=Alerts+and+monitoring#library)

# Automate delivery confirmation with Telegram Bot

Started by an incoming Telegram message, and works across Gmail, Google Drive, Google Sheets and Telegram. 32 steps, 3 branches: large, and worth reading before you trust it with anything live.

Large

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fautomate-delivery-confirmation-with-telegram-bot)

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

**3** Branches: places the flow splits

**0** Loops or waits

**4** Services it connects to

## The flow

Starts it 1 Logic 17 Service 14

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

- 1 **Telegram Trigger** Telegram trigger *Starts it*
- 2 **Initiate Workflow Data** Code *Logic*
- 3 **Command?** If *Logic*
- 4 **Switch Command** Switch *Logic*
- 5 **Waiting Conditions** Code *Logic*
- 6 **waitingShipmentNumber** Code *Logic*
- 7 **waitingGPS** Code *Logic*
- 8 **waitingPhoto** Code *Logic*
- 9 **Load Workspace Data** Code *Logic*
- 10 **Welcome Message** Telegram *Service*
- 11 **Check State** Switch *Logic*
- 12 **addShipmentNumber** Telegram *Service*
- 13 **addGPS** Telegram *Service*
- 14 **sendPhoto** Telegram *Service*
- 15 **Load Delivery Information** Google Sheets *Service*
- 16 **Confirmation Driver** Telegram *Service*
- 17 **Distribution Team Confirmation** Gmail *Service*
- 18 **Shipment Number** Set *Logic*
- 19 **Store GPS Location** Set *Logic*
- 20 **Get Picture** Telegram *Service*
- 21 **Instructions** Telegram *Service*
- 22 **Clear State** Code *Logic*
- 23 **addShipmentNumber result** Telegram *Service*
- 24 **Store Shipment** Code *Logic*
- 25 **addGPS result** Telegram *Service*
- 26 **Store GPS** Code *Logic*
- 27 **Upload Picture** Google Drive *Service*
- 28 **Extract FileName** Set *Logic*
- 29 **Share Picture** Google Drive *Service*
- 30 **Store fileName** Code *Logic*
- 31 **Save Public Image Link** Code *Logic*
- 32 **addPhoto result** Telegram *Service*

## How it's built

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

## Questions

What does it need to run?

An n8n account, plus your own Gmail, Google Drive, Google Sheets 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 32 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 32 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%2Fautomate-delivery-confirmation-with-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.

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

## Workflows like it

Also alerts and monitoring, with the same services where possible, closest in size first.

- [**Receive Meta Ads ad account webhooks, log** 32 steps · Google Sheets, Slack](https://millionrounds.com/workflow/receive-meta-ads-ad-account-webhooks-log)
- [**Reply to Instagram comments with Groq and Telegram** 32 steps · Google Sheets, Telegram](https://millionrounds.com/workflow/reply-to-instagram-comments-with-groq-and-telegram)
- [**Automate ESG carbon monitoring and strategy execution** 32 steps · calls a model · Email, Google Sheets](https://millionrounds.com/workflow/automate-esg-carbon-monitoring-and-strategy-execution)
- [**Automated product health monitor with OpenAI and Gmail** 32 steps · calls a model · Gmail, Notion](https://millionrounds.com/workflow/automated-product-health-monitor-with-openai-and-gmail)
- [**Monitor and optimize carbon emissions for ESG with OpenAI** 32 steps · calls a model · Email, Google Sheets](https://millionrounds.com/workflow/monitor-and-optimize-carbon-emissions-for-esg-with-openai)
- [**YouTube channel monitor with Video Stats** 32 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/youtube-channel-monitor-with-video-stats)
