Skip to content
FlowHubFluxonLab
Redis
RAG & Knowledge Basesfree

Build a WhatsApp AI Shopping BOT with Virtual Try on Using Gemini and GPT

by BytezTechUpdated Aug 2026
RequiresRedisRedisWhatsAppWhatsAppOpenAIGoogle SheetsGoogle SheetsMongoDBMongoDBGoogle DriveGoogle DriveGoogle Gemini
Share Post Share
Check Redis cacheCheck Redis cac…Store products in cacheStore products …Save session to RedisSave session to…CoValidate incoming messageValidate incomi…Send validation error to userSend validation…Get user session from RedisGet user sessio…GPT-5-nano (intent classifier)GPT-5-nano (int…Set VTO context in RedisSet VTO context…GPT-4o (order agent)GPT-4o (order a…MDCreate order in MongoDBCreate order in…MDGet product info from MongoDBGet product inf…AgOrder orchestration AI agentOrder orchestra…Log order to Google SheetsLog order to Go…Send order confirmationSend order conf…AgAI shopping agent (BytezBot)AI shopping age…VSMongoDB Atlas vector searchMongoDB Atlas v…OpenAI embeddingsOpenAI embeddin…Get product image from MongoDBGet product ima…EIResize product image to 1024pxResize product …EFExtract product image as base64Extract product…EIResize user selfie to 1024pxResize user sel…EFExtract user selfie as base64Extract user se…HRGenerate VTO with Gemini APIGenerate VTO wi…Delete VTO context from RedisDelete VTO cont…Get VTO context from RedisGet VTO context…HRGet WhatsApp media URLGet WhatsApp me…HRDownload user selfieDownload user s…Download product image from DriveDownload produc…EFConvert product image to base64Convert product…HRUpload product image to WhatsAppUpload product …HRSend product message with buttonsSend product me…SILoop through productsLoop through pr…Download product image from Drive (VTO)Download produc…Ask user to send correct photoAsk user to sen…Prompt user to upload selfiePrompt user to …HRUpload VTO result to WhatsAppUpload VTO resu…HRSend VTO result to userSend VTO result…CTConvert Gemini response to image fileConvert Gemini …Analyze user selfie with GeminiAnalyze user se…Send text response to userSend text respo…Ask user to resend valid photoAsk user to res…Notify user VTO is processingNotify user VTO…CoParse button and user dataParse button an…WAWhatsApp message triggerWhatsApp messag…IfCheck if message is button or imageCheck if messag…SwRoute interactive vs image messageRoute interacti…SwRoute VTO vs order button tapRoute VTO vs or…IfRoute JSON intent vs plain text replyRoute JSON inte…SwRoute product search vs recommendRoute product s…IfIs product cached in Redis?Is product cach…IfPass valid messages, block invalidPass valid mess…IfIs VTO product ID stored in Redis?Is VTO product …IfGemini: confirm exactly one personGemini: confirm…IfValidate merged selfie before try-onValidate merged…CoParse cached product JSON arrayParse cached pr…CoUnpack products from cache resultUnpack products…CoBuild Redis cache key from search queryBuild Redis cac…CoExtract image ID, waId, and product IDExtract image I…CoCombine products with base64 imagesCombine product…CoLoad session and append user messageLoad session an…CoAppend AI reply to session historyAppend AI reply…CoDetect JSON intent or plain text replyDetect JSON int…CoBuild product card message bodyBuild product c…CoConvert product image base64 to binaryConvert product…MeMerge product, selfie, and validation resultMerge product, …MeCombine vector search results with imagesCombine vector …AgAggregate all product base64 imagesAggregate all p…CoBuild Gemini image generation API payloadBuild Gemini im…MBSession memory for shopping agentSession memory …MBSession memory for order agentSession memory …
1/5
STEPS · 76
Starts on a Whats App event

On a WhatsApp message, an AI agent answers shopping queries with virtual try-on image edits, backed by MongoDB vector search and Google Sheets.

Tags

eventadvancedRedisWhatsAppSupport ChatbotAI Chatbotdiscoveredpending-review
Connects
redisRediswhatsappWhatsAppOpenAIsheetsGoogle SheetsmongodbMongoDBgoogledriveGoogle Drive
CategoryRAG & Knowledge Bases
Triggerevent
Complexityadvanced
Nodes70
AddedJun 27, 2026