Quick overview
This workflow takes a product photo sent via Telegram, uses OpenAI Vision to describe it and OpenAI to write a short-form video ad prompt, generates a vertical video via AtlasCloud, then (after two approvals in Telegram) publishes the Short to YouTube via Blotato.
How it works
- Triggers when a user sends a product photo (optionally with a caption/campaign) to a Telegram bot.
- Downloads the image from Telegram and uses OpenAI Vision to extract an advertising-focused product description.
- Uses OpenAI to generate a single cinematic text-to-video prompt plus a YouTube Shorts title and description.
- Sends the proposed prompt to Telegram and waits for your approval before proceeding.
- If approved, requests video generation from AtlasCloud and polls the render status until the video is completed.
- Sends the generated video back to Telegram for preview and waits for a second approval to publish.
- If approved, publishes the video to YouTube as an unlisted Short via Blotato and notifies you in Telegram (otherwise it stops and sends a decline message).
Setup
- Create and connect a Telegram bot credential, then start a chat with the bot so it can receive photos and send approval prompts.
- Add an OpenAI API credential and, if needed, update the default model IDs and language/duration/aspect ratio settings in the configuration values.
- Create an HTTP Header Auth credential for AtlasCloud (Authorization: Bearer <API_KEY>) and select it for both AtlasCloud HTTP requests.
- Connect a Blotato credential, select your YouTube account, and confirm the desired YouTube privacy status (default is unlisted).
Additional info
Generate an AI video ad from a product photo and publish it to YouTube
Need help customizing?
Contact me for consulting and support : Linkedin
MY NEW YOUTUBE CHANNEL
👉 Subscribe to my new YouTube channel. Here I'll share videos and Shorts with practical tutorials and FREE templates for n8n.
