See llms.txt for all machine-readable content.

Back to Templates

Create AI product video ad Shorts from Telegram photos with OpenAI and AtlasCloud

Created by

Created by: Dr. Firas || drfiras
Dr. Firas

Last update

Last update 2 days ago

Categories

Share


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

  1. Triggers when a user sends a product photo (optionally with a caption/campaign) to a Telegram bot.
  2. Downloads the image from Telegram and uses OpenAI Vision to extract an advertising-focused product description.
  3. Uses OpenAI to generate a single cinematic text-to-video prompt plus a YouTube Shorts title and description.
  4. Sends the proposed prompt to Telegram and waits for your approval before proceeding.
  5. If approved, requests video generation from AtlasCloud and polls the render status until the video is completed.
  6. Sends the generated video back to Telegram for preview and waits for a second approval to publish.
  7. 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

  1. Create and connect a Telegram bot credential, then start a chat with the bot so it can receive photos and send approval prompts.
  2. Add an OpenAI API credential and, if needed, update the default model IDs and language/duration/aspect ratio settings in the configuration values.
  3. Create an HTTP Header Auth credential for AtlasCloud (Authorization: Bearer <API_KEY>) and select it for both AtlasCloud HTTP requests.
  4. 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

📥 Open full documentation on Notion

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.

The AI Doctor