workflows.fit
Back to n8n workflows
n8n templateFreeBy AppStoneLab Technologies LLP

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

šŸ‘— 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...

Data & StorageProductivityDevelopmentCore NodesCommunicationHITLTelegram TriggerSet
Loading interactive preview...

Template notes

šŸ‘— 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 developers looking for a real-world async API polling pattern with state management - AI product builders who want a plug-and-play virtual fitting room for their audience - Boutiques & clothing stores wanting to let customers preview outfits before ordering

āš™ļø What This Workflow Does

1. Receives a Telegram message and checks if it contains a photo 2. Person photo (sent without caption) → saves chatid + fileid to Google Sheets as session state 3. Garment photo (sent with caption garment) → looks up the saved person photo, resolves both Telegram file URLs, downloads both images, and submits a try-on job to the API 4. Async polling loop → waits 15 seconds, checks job status, loops until completed or failed 5. Sends the result back to the user as a photo in Telegram, then cleans up the sheet row

šŸ”‘ Credentials & APIs Required

| Service | Purpose | Where to Get It | |---|---|---| | Telegram Bot Token | Receive messages & send results | Create a bot via [@BotFather](https://t.me/botfather) on Telegram → /newbot | | Virtual Try-On API Key | Submit and poll try-on jobs | Sign up at your Try-On API provider (e.g. [try-on api](https://tryon-api.com/) or your own deployment) | | Google Sheets OAuth2 | Store per-user session state between messages | Connect via n8n's built-in Google Sheets OAuth2 credential |