Create a virtual outfit try-on Telegram bot with async polling and Google Sheets β€” n8n Workflow

High complexity⚑ Trigger30 nodesπŸ‘©β€πŸ’» IT Opsby AppStoneLab Technologies LLP

Overview

πŸ‘— Virtual Try-On Telegram Bot β€” AI Outfit Try-On via Telegram with Async Job Polling

Try on any outfit virtually - right inside Telegram. A user sends a person photo, then a garment photo (captioned garment), and the bot replies with an AI-generated try-on result image using a dedicated Virtual Try-On API. No app. No frontend. Just a Telegram chat.

🎯 Who Is This For?

Fashion e-commerce brands** wanting to offer a try-before-you-buy experience via a simple chat interface Telegram bot developer

Nodes used

Google SheetsHTTP RequestTelegram

Workflow Preview

βš™οΈ Config β€” Edit This First
Set these 2 values before activating:
* `botToken` - Your Telegram bot token from @BotFather
* `sheetId` - ID from your Google Sheets URL
All other nodes reference va
πŸ“‹ State Management via Google Sheets
The problem: Each Telegram message triggers a separate
The fix: Google Sheets acts as a bridge.
- Save Pe
πŸ“ Collect IDs
Carries all required data forward into the rest of the
- `chatId` β€” who to reply to
- `personFileId` β€” Telegram file ID of person photo
- `garmentFileId` β€” Telegram file ID
πŸ”— Telegram File URL Resolution
Telegram does not give you a direct download URL in the
To get the actual image you must:
1. Call `getFile?file_id=...` β†’ re
⏱️ Polling Loop
The Try-On API is asynchronous β€” submitting a job retur
This loop:
1. Waits 15 seconds
2. Calls the status endpoint with the `jobId`
3
⬇️ Download Result Image
The Try-On API returns an `imageUrl` (a signed URL). Te
This node downloads the image
πŸ‘— Virtual Try-On Telegram Bot
What this workflow does
This bot lets users virtually try on clothing via Teleg
⚑
T
Telegram Trigger
E
Extract Message Info
βš™
βš™οΈ Config
H
Has Photo?
Send Welcome Message
I
Is Garment Photo?
Save Person to Sheet
Ask for Garment Photo
Lookup Person from Sheet
H
Has Person Saved?
Ask for Person First
C
Collect IDs
Send Processing Message
Get Person File Path
S
Set Person Download URL
Get Garment File Path
S
Set Garment Download URL
Download Person Image
Download Garment Image
Submit Try-On Job
E
Extract Job ID
W
Wait 15 Seconds
Check Job Status
M
Merge State
I
Is Job Complete?
I
Is Job Failed?
Send Result Photo
Delete Row from Sheet
Send Error Message
HTTP Request
30 nodes30 edges

How it Works

  1. 1

    Trigger

    The workflow starts with a trigger trigger.

  2. 2

    Process

    Data flows through 30 nodes, connecting googlesheets, httprequest, if.

  3. 3

    Output

    The workflow completes its automation and delivers the result to the configured destination.

Node Details (30)

GO

Google Sheets

googleSheets

#1
HT

HTTP Request

httpRequest

#2
TE

Telegram

telegram

#3

How to Import This Workflow

  1. 1Click Download JSON button on the right to save the workflow file.
  2. 2Open your n8n instance. Go to Workflows β†’ New β†’ Import from file.
  3. 3Select the downloaded create-a-virtual-outfit-try-on-telegram-bot-with-async-polling-and-google-sheets file and click Import.
  4. 4Set up credentials for each service node (API keys, OAuth, etc.).
  5. 5Click Test Workflow to verify everything works, then activate it.

Or paste directly in n8n β†’ Import from JSON:

{ "name": "Create a virtual outfit try-on Telegram bot with async polling and Google Sheets", "nodes": [...], ...}

Integrations

googlesheetshttprequestifsettelegramtelegramtriggerwait

Get This Workflow

Download and import in one click

Download JSONView on n8n.io
Nodes30
Complexityhigh
Triggertrigger
CategoryIT Ops

Created by

AppStoneLab Technologies LLP

AppStoneLab Technologies LLP

@appstonelab

Tags

googlesheetshttprequestifsettelegramtelegramtriggerwait
⚑

New to n8n?

n8n is a free, open-source workflow automation tool. Self-host it or use the cloud version.

Get n8n Free β†’