Automation library · Data collection

Create a virtual outfit try-on Telegram bot with Google Sheets

Started by an incoming Telegram message, and works across Google Sheets and Telegram. 30 steps, 5 branches, 1 loop or waits: large, and worth reading before you trust it with anything live.

Large

30 stepsLarge: read it before trusting it with anything live
5Branches: places the flow splits
1Loop or waits
2Services it connects to

The flow

Starts it 1Logic 13Service 16

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

  1. 1Telegram TriggerTelegram triggerStarts it
  2. 2Extract Message InfoSetLogic
  3. 3⚙️ ConfigSetLogic
  4. 4Has Photo?IfLogic
  5. 5Is Garment Photo?IfLogic
  6. 6Send Welcome MessageTelegramService
  7. 7Lookup Person from SheetGoogle SheetsService
  8. 8Save Person to SheetGoogle SheetsService
  9. 9Has Person Saved?IfLogic
  10. 10Ask for Garment PhotoTelegramService
  11. 11Collect IDsSetLogic
  12. 12Ask for Person FirstTelegramService
  13. 13Send Processing MessageTelegramService
  14. 14Get Person File PathHttp RequestService
  15. 15Set Person Download URLSetLogic
  16. 16Get Garment File PathHttp RequestService
  17. 17Set Garment Download URLSetLogic
  18. 18Download Person ImageHttp RequestService
  19. 19Download Garment ImageHttp RequestService
  20. 20Submit Try-On JobHttp RequestService
  21. 21Extract Job IDSetLogic
  22. 22Wait 15 SecondsWaitLogic
  23. 23Check Job StatusHttp RequestService
  24. 24Merge StateSetLogic
  25. 25Is Job Complete?IfLogic
  26. 26HTTP RequestHttp RequestService
  27. 27Is Job Failed?IfLogic
  28. 28Send Result PhotoTelegramService
  29. 29Send Error MessageTelegramService
  30. 30Delete Row from SheetGoogle SheetsService

How it's built

Starts on
An incoming Telegram message
Steps
30, with 5 branches, 1 loop or waits
Size
Large: read it before trusting it with anything live
Connects to
Google Sheets, Telegram
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

An n8n account, plus your own 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 30 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 30 steps before you point it at anything that matters.