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.
