🎬 Create and publish AI videos from Telegram with VEED and Blotato

⚡ 103 views · 🎬 Content Creation & Video

💡 Pro Tip — Since TikTok doesn’t have a public API, getting data usually means fragile HTTP scraping. ScraperNode is a community node that gives you clean JSON for TikTok profiles, videos, and comments — drop it into your workflow and skip the parsing.

View All Scrapers

Description

Create & Publish AI Videos from Telegram Chat with VEED and Blotato

Overview

This n8n workflow creates a conversational AI video agent accessible through Telegram. Users chat with a bot to request AI-generated talking-head videos using VEED’s MCP tools, then optionally publish to 9 social media platforms via Blotato with a single approval tap.

Output: AI-generated talking-head videos delivered in Telegram and published to TikTok, YouTube, Instagram, LinkedIn, Facebook, X, Threads, Bluesky, and Pinterest.


What It Does

User Message (Telegram) → AI Agent → VEED MCP tools create video → Response sent via Telegram
                           ↕ Memory     ↓ (if video URL detected)
                                     Approval prompt (Approve/Reject)
                                        ↓ Approved
                                     Upload to Blotato → Publish to 9 platforms in parallel
                                        ↓
                                     Merge results → Summary sent via Telegram

Flow Breakdown

StepComponentWhat Happens
1. Message Receivedđź“© Telegram TriggerUser sends a text message to the bot
2. AI Processing🤖 AI Video Agent (gpt-5-nano)Interprets request, decides which VEED tools to use
3. Context Retentionđź’ľ Conversation MemoryMaintains conversation history per chat (20-message window)
4. Video Creation🎬 VEED MCP ToolsLists characters/voices, confirms details, creates video via VEED Fabric
5. Response Delivery📤 Send Agent ResponseSends agent text back to user in Telegram
6. URL Extractionđź“‹ Extract Video URLDetects the VIDEO_READY: marker in agent output
7. Approval Promptđź“© Publish to Social Media?Telegram sendAndWait with Approve/Reject buttons (24h timeout)
8. Upload📤 Upload Video to BlotatoUploads video file to Blotato CDN, returns hosted URL
9. PublishTikTok, YouTube, Instagram, LinkedIn, Facebook, X, Threads, Bluesky, PinterestAll 9 platform nodes post in parallel using the Blotato URL
10. Summary📤 Send Publish SummaryConfirms publication back to user in Telegram

Required Connections

n8n Credentials

NodeCredential TypeWhere to Get
đź“© Telegram TriggerTelegram Bot APICreate bot via @BotFather in Telegram
đź§  OpenAI Chat ModelOpenAI API Keyhttps://platform.openai.com/api-keys
🎬 VEED MCP ToolsMCP OAuth2Your VEED OAuth2 client credentials
📤 Send Agent ResponseTelegram Bot APISame bot token as trigger
đź“© Publish to Social Media?Telegram Bot APISame bot token as trigger
📤 Upload Video to BlotatoBlotato APIhttps://my.blotato.com/settings → API
TikTok / YouTube / Instagram / …Blotato APISame Blotato credential as upload

Community Node Required

Install @blotato/n8n-nodes-blotato via Settings → Community Nodes → Install in n8n.


Configuration Options

AI Agent System Prompt

The AI Agent’s behavior is defined by its system prompt. Edit the 🤖 AI Video Agent node to customize:

You are a friendly AI video creation assistant powered by VEED.
You help users create professional talking-head videos with AI avatars through Telegram.

Video Creation Flow:
1. Understand their need - Ask what video they want
2. Choose a character - Show available AI avatars
3. Choose a voice - Ask preferred language/locale
4. Confirm details - Summarize before creating
5. Create the video - Generate with confirmed parameters
6. Track progress - Poll generation status
7. Deliver result - Share the video URL with VIDEO_READY: marker

Agent Configuration

FieldDefaultDescription
Modelgpt-5-nanoOpenAI model used for reasoning
Max Iterations15Maximum tool-calling rounds per message
Memory Window20 messagesHow many past messages the agent remembers
Session Key{{ $json.message.chat.id }}Isolates memory per Telegram chat

Available VEED MCP Tools

ToolRequired ParametersDescription
list_workspaces—Show available workspaces
list_characters— (optional: gender)Browse AI avatar characters
list_voiceslocale (e.g. "en")Browse voices (optional: gender filter)
confirm_fabric_videoscript, voiceId, characterIdPreview video details before creating
create_fabric_videoscript, voiceId, characterIdCreate a talking-head video (optional: aspectRatio)
get_generation_statusjobIdCheck video generation progress
get_credit_balance—Check remaining VEED credits

Blotato Platform Configuration

Each platform node needs its accountId configured (select from dropdown after connecting Blotato credentials):

PlatformExtra Configuration
TikTok—
YouTubeTitle, privacy status (private by default), notify subscribers
Instagram—
LinkedIn—
FacebookPage ID (select from dropdown)
Twitter / X—
Threads—
Bluesky—
PinterestBoard ID

Disable any platform node you don’t use.

Caption Configuration

Edit the ⚙️ Set Caption node to customize what gets posted:


Conversation Examples

User SaysAgent Does
”Hi, what can you do?”Introduces itself and explains video creation capabilities
”Create a video about AI trends”Asks about character/voice preferences, then guides through creation flow
”Show me available characters”Calls list_characters, formats results for easy selection
”Use a female English voice”Calls list_voices with locale "en" and gender filter, shows options
”Yes, create it!”Calls create_fabric_video, then immediately checks get_generation_status
”Is my video ready?”Calls get_generation_status with the last jobId from memory
Taps “Approve”Video uploads to Blotato, publishes to all 9 platforms, summary sent
Taps “Reject""No problem! Your video won’t be published to social media.”

Output

Per Video Generated

AssetFormatDelivered Via
Video URLVEED hosted MP4 linkTelegram message
Approval promptApprove/Reject buttonsTelegram sendAndWait
Social media postsVideo + captionTikTok, YouTube, Instagram, LinkedIn, Facebook, X, Threads, Bluesky, Pinterest
Publish summaryText confirmationTelegram message

Estimated Costs Per Video

ServiceUsageApproximate Cost
OpenAI gpt-5-nano~1-3K tokens per conversation turn~$0.005-0.02
VEED Fabric1 video render (~8 credits/sec)~$0.10-0.20
BlotatoMedia upload + 9 platform postsIncluded in paid plan
Telegram Bot APIMessagesFree
Total~$0.10-0.25 per video

> Costs vary based on conversation length, video duration, and current API pricing.


Setup Checklist

Step 1: Import Workflow

Step 2: Install Blotato Community Node

Step 3: Create Telegram Bot

Step 4: Configure n8n Credentials

Step 5: Configure Blotato Platforms

Step 6: Activate & Test


Limitations & Notes

Technical Limitations

Content Considerations

Best Practices

  1. Set bot commands: Use @BotFather’s /setcommands to add help commands for your users
  2. Test with simple requests first: Start with “list available characters” before attempting full video creation
  3. Monitor token usage: Longer conversations consume more OpenAI tokens per turn
  4. Customize the system prompt: Tailor the agent’s persona, default locale, and guidelines to your use case
  5. Disable unused platforms: Disable platform nodes you haven’t connected to avoid errors
  6. YouTube defaults to private: Videos are published as private by default — change in the YouTube node if needed

Troubleshooting

IssueSolution
Bot not respondingEnsure workflow is published and active, not just executed manually
”Unauthorized” from TelegramVerify bot token is correct in n8n Telegram credential
VEED MCP connection failedRe-authorize the VEED OAuth2 credential in n8n
Agent doesn’t use VEED toolsVerify 🎬 VEED MCP Tools node is connected to the AI Agent node
Memory not working across messagesConfirm session key expression {{ $('đź“© Telegram Trigger').item.json.message.chat.id }} is correct
Video generation timeoutVEED processing can take up to 5 minutes — agent should poll get_generation_status
”Model not found” errorVerify OpenAI API key has access to gpt-5-nano model
No approval prompt after videoCheck the agent includes VIDEO_READY: marker — verify system prompt is intact
Blotato upload failsVerify Blotato API credential is valid and plan is active
Platform publish failsEnsure accountId is configured in the failing platform node
”Can’t parse entities” errorThe Send Agent Response node should have no parse_mode set (plain text)
Blotato node not foundInstall @blotato/n8n-nodes-blotato via Settings → Community Nodes

Version History

VersionDateChanges
1.0Mar 2026Initial release with Telegram bot, AI Agent, VEED MCP integration, conversation memory
2.0Apr 2026Added Blotato multiplatform publishing (9 platforms), Telegram approval flow, video URL extraction, caption configuration

Credits

Built with:

đź”— Nodes Used

Telegram, Telegram Trigger, AI Agent, OpenAI Chat Model, Simple Memory, MCP Client Tool

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup