# AI-powered damage reporting tool for logistics with Gmail: n8n workflow

> Started by an incoming Telegram message, and works across Gmail and Telegram. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/ai-powered-damage-reporting-tool-for-logistics-with-gmail (Millionrounds; every figure on the page links to its filing or article)

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

# AI-powered damage reporting tool for logistics with Gmail

Started by an incoming Telegram message, and works across Gmail and Telegram. It hands the judgement calls to OpenAI. 18 steps, 2 branches: a working afternoon to understand properly.

Medium Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fai-powered-damage-reporting-tool-for-logistics-with-gmail)

**18 steps** Medium: a working afternoon

**2** Branches: places the flow splits

**0** Loops or waits

**2** Services it connects to

## The flow

Starts it 1 Model 2 Logic 9 Service 6

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

- 1 **Telegram Trigger** Telegram trigger *Starts it*
- 2 **Image Received?** If *Logic*
- 3 **Load Report State** Code *Logic*
- 4 **Instructions to Operator** Telegram *Service*
- 5 **Report Generated** If *Logic*
- 6 **Download Barcode Image** Telegram *Service*
- 7 **Download Pallet Image** Telegram *Service*
- 8 **AI Barcode Reader (GPT-4o Mini)** Open Ai *Model*
- 9 **AI Damage Analysis (GPT-4o)** Open Ai *Model*
- 10 **Extract Barcode Value** Set *Logic*
- 11 **Request Barcode Photo** Telegram *Service*
- 12 **Store Report** Code *Logic*
- 13 **Store Barcode** Code *Logic*
- 14 **Load Report Infos** Code *Logic*
- 15 **Generate Report** Code *Logic*
- 16 **Send Report by Email** Gmail *Service*
- 17 **Confirm Report Sent to Operator** Telegram *Service*
- 18 **Reinitialise State Variables** Code *Logic*

## How it's built

- **Starts on:** An incoming Telegram message
- **Steps:** 18, with 2 branches
- **Size:** Medium: a working afternoon
- **Connects to:** Gmail, Telegram
- **Model:** OpenAI

## Questions

What does it need to run?

An n8n account, plus your own Gmail and Telegram accounts, and a key for OpenAI. 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. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Plan an afternoon. 18 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 18 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-powered-damage-reporting-tool-for-logistics-with-gmail)
- **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)[Telegram](https://millionrounds.com/workflows?service=Telegram#library)

## Workflows like it

Also research and reporting, with the same services where possible, closest in size first.

- [**AI-powered customer feedback analysis & routing** 18 steps · calls a model · Gmail, Notion](https://millionrounds.com/workflow/ai-powered-customer-feedback-analysis-and-routing)
- [**Analyze competitor strategy from YouTube & RSS with Gemini** 18 steps · calls a model · Apify, Notion](https://millionrounds.com/workflow/analyze-competitor-strategy-from-youtube-and-rss-with-gemini)
- [**Build a document-upload RAG chatbot with OpenAI and Pinecone** 18 steps · calls a model · Gmail, Pinecone](https://millionrounds.com/workflow/build-a-document-upload-rag-chatbot-with-openai-and-pinecone)
- [**Generate fact-checked research reports with Bright Data** 18 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/generate-fact-checked-research-reports-with-bright-data)
- [**Send GPT-4 Telegram polls to multiple groups** 18 steps · calls a model · Email, Google Sheets](https://millionrounds.com/workflow/send-gpt-4-telegram-polls-to-multiple-groups)
- [**Weekly AI YouTube summary（OpenAI+YC+Google Deepmind）** 18 steps · calls a model · Gmail, RSS](https://millionrounds.com/workflow/weekly-ai-youtube-summary-openai-yc-google-deepmind)
