# AI warehouse inventory cycle count bot with OpenAI: n8n workflow

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

Source: https://millionrounds.com/workflow/ai-warehouse-inventory-cycle-count-bot-with-openai (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)

# AI warehouse inventory cycle count bot with OpenAI

Started by an incoming Telegram message, and works across Google Sheets and Telegram. It hands the judgement calls to OpenAI. 28 steps, 6 branches, 1 loop or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fai-warehouse-inventory-cycle-count-bot-with-openai)

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

**6** Branches: places the flow splits

**1** Loop or waits

**2** Services it connects to

## The flow

Starts it 1 Model 4 Logic 13 Service 10

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

- 1 **Telegram Trigger** Telegram trigger *Starts it*
- 2 **Model: Information Extraction** Lm Chat Open Ai *Model*
- 3 **Structured Output Parser** Output Parser Structured *Model*
- 4 **Wait** Wait *Logic*
- 5 **Is Audio?** If *Logic*
- 6 **Get Location, Qty** Agent *Model*
- 7 **Command** If *Logic*
- 8 **Collect Audio** Telegram *Service*
- 9 **Get Locations to Check** Google Sheets *Service*
- 10 **Transcription Error** If *Logic*
- 11 **Command Selection** Switch *Logic*
- 12 **Wrong Command** Telegram *Service*
- 13 **Transcribe Operator Command** Open Ai *Model*
- 14 **Extract Location IDs** Aggregate *Logic*
- 15 **Ask to repeat** Telegram *Service*
- 16 **Merge Transcript With Location List** Merge *Logic*
- 17 **Help Message** Telegram *Service*
- 18 **Collect Remaining Locations** Google Sheets *Service*
- 19 **Is Location in Scope?** If *Logic*
- 20 **Combine with Location Records** Merge *Logic*
- 21 **Remaining Locations** Aggregate *Logic*
- 22 **Update Inventory Quantity** Google Sheets *Service*
- 23 **Error Message: Wrong Location** Telegram *Service*
- 24 **Last Location?** If *Logic*
- 25 **Number of Locations** Set *Logic*
- 26 **Send Instruction: Last Location** Telegram *Service*
- 27 **First Location** Limit *Logic*
- 28 **Send Instruction: Next Location** Telegram *Service*

## How it's built

- **Starts on:** An incoming Telegram message
- **Steps:** 28, with 6 branches, 1 loop or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Google Sheets, Telegram
- **Model:** OpenAI

## Questions

What does it need to run?

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

Take your time. At 28 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 28 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-warehouse-inventory-cycle-count-bot-with-openai)
- **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.

[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#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.

- [**All-in-one Telegram/Baserow AI assistant Voice/Photo/Save** 28 steps · calls a model · Baserow, Telegram](https://millionrounds.com/workflow/all-in-one-telegram-baserow-ai-assistant-voice-photo-save)
- [**Draft Google review replies with Bright Data and OpenAI** 28 steps · calls a model · Gmail, Google Business Profile](https://millionrounds.com/workflow/draft-google-review-replies-with-bright-data-and-openai)
- [**Send daily business change digest with OpenAI** 28 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/send-daily-business-change-digest-with-openai)
- [**AI Restaurant Virtual Waiter Chatbot for WhatsApp & Website** 27 steps · calls a model · Google Sheets, WhatsApp](https://millionrounds.com/workflow/ai-restaurant-virtual-waiter-chatbot-for-whatsapp-and-websit)
- [**ASMR YouTube shorts automation with Claude and Gmail** 27 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/asmr-youtube-shorts-automation-with-claude-and-gmail)
- [**Basic RAG system with Claude and OpenAI** 29 steps · calls a model · Google Drive, Supabase](https://millionrounds.com/workflow/basic-rag-system-with-claude-and-openai)
