π€ AI-Powered Telegram Bot Workflow for AI AVATAR VIDEO Generation and Upload to Youtube using n8n
An AI-powered automation workflow triggered via Telegram that: Scrapes and summarizes blog content using OpenRouter Converts the summary to a realistic avatar video using HeyGen (for both voice and avatar) Publishes the generated video to YouTube
π This project is a fully automated and production-ready n8n workflow that transforms blog/article links into AI-generated avatar videos, triggered directly from Telegram.
This workflow showcases a real-world application of AI and automation using n8n, ideal for tech content creators or media companies looking to scale their video generation efforts.
-
π© Triggered via Telegram
Users send a message containing a subject topic and blog/article URLs (e.g., fromhttps://www.vastdata.com/blog). -
π Smart Parsing & Scraping
AFunctionnode parses the message, and anHTTP Request (GET)+HTML Extractnode scrapes article content. -
π€ AI Summarization with OpenRouter
The scraped content is summarized using a Basic LLM Chain powered by OpenRouter's Mistral model. -
π€ AI Video Generation with HeyGen
The summary is converted into an avatar-based video using HeyGen, leveraging:- β Voice ID
- β Avatar ID
- β
API Key via
Manual InputβHTTP POSTβHTTP GET
-
π€ Upload to YouTube
Final video is uploaded using theYouTubenode, authenticated via OAuth2 (Client ID + Secret required).
Follow these steps to deploy the workflow on your local system:
-
β¬οΈ Download the Workflow
- Grab the
.jsonfile from this repository.
- Grab the
-
π³ Run n8n with Docker
Use Docker to host n8n locally. -
π Expose Webhook with Ngrok
- Set up an HTTPS webhook using Ngrok to allow Telegram to reach your local instance.
-
π Prepare Your API Credentials
You'll need the following keys:OpenRouter API KeyHeyGen API KeyVoice ID&Avatar IDYouTube OAuth2credentials (Client ID & Secret)
-
π§© Update Nodes in Workflow
Paste your credentials into the appropriate nodes:- Telegram
- HTTP Request
- HeyGen (Manual Node)
- YouTube
- n8n β Automation platform
- Telegram Bot β User trigger
- OpenRouter β AI summarization (Mistral model)
- HeyGen β AI avatar video generation
- YouTube API β Video publishing
Send a message to your Telegram bot like: Subject: Recent Software changes Link: https://www.vastdata.com/blog π¬ The bot will scrape the article, summarize it with AI, generate an avatar video with narration, and upload it to your YouTube channel β fully automated.
πΊ Click the image below to watch the demo video
Seamlessly integrates multiple APIs: Telegram, OpenRouter, HeyGen, and YouTube β showcasing strong multi-service orchestration skills.
Delivers a complete automation pipeline:
π© Telegram Trigger β‘οΈ π Blog Summarization β‘οΈ π£οΈ Voice + Avatar Video Generation β‘οΈ π€ YouTube Upload.
All without manual intervention.
Demonstrates advanced usage of n8n, including:
- Webhooks
- Function Nodes
- HTTP Requests (GET/POST)
- Conditional Flows
- OAuth Setup and Authentication Handling
A practical solution for content creators, educators, and AI service providers who need to quickly convert blog articles into narrated avatar videos.
Efficiently combines:
- π§ Natural Language Processing (NLP) for blog summarization
- π£οΈ Text-to-Speech (TTS) with avatar video generation
Perfectly bridges text + visual storytelling using AI.
