Quick overview
This workflow takes a video idea sent via Telegram, uses OpenAI to generate a Seedance 2.0-ready prompt plus platform-specific captions, creates the video through AtlasCloud’s Seedance API, then publishes it to TikTok, Instagram, and YouTube using Blotato and confirms back in Telegram.
How it works
- Receives a video idea as a Telegram message.
- Uses OpenAI (via an agent) to generate a structured JSON payload containing a Seedance 2.0 text-to-video prompt plus TikTok and Instagram captions and a YouTube title and description.
- Submits the prompt to AtlasCloud’s Seedance 2.0 video generation API and requests a 5-second video.
- Polls AtlasCloud every 30 seconds until the video generation status returns completed/succeeded.
- Extracts the final video URL and pairs it with the generated captions and YouTube metadata.
- Publishes the video to TikTok, Instagram, and YouTube via Blotato, then sends a Telegram confirmation message.
Setup
- Create a Telegram bot and add Telegram credentials, then ensure the trigger and confirmation nodes use the correct bot and chat settings.
- Add an OpenAI API credential and select a chat model (configured for gpt-4o-mini) for prompt and caption generation.
- Create an AtlasCloud API key and configure an HTTP Header Auth credential (including Content-Type: application/json and your Authorization header), then select it in both AtlasCloud HTTP requests.
- Install and enable the Blotato community node (requires self-hosted n8n or n8n Cloud with Verified Community Nodes enabled), add your Blotato API credentials, and connect/select the correct TikTok, Instagram, and YouTube accounts in each publish step.
- Optionally adjust the video duration in the AtlasCloud request body and tweak the agent instructions to change tone, language, or hashtag limits.
Additional info