Skip to content

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

Notifications You must be signed in to change notification settings

urstruly-bunny/AI-Powered-Telegram-Workflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

12 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ€– 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.

Workflow Screenshot


🧠 Overview

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.

✨ Key Features

  • πŸ“© Triggered via Telegram
    Users send a message containing a subject topic and blog/article URLs (e.g., from https://www.vastdata.com/blog).

  • πŸ”„ Smart Parsing & Scraping
    A Function node parses the message, and an HTTP Request (GET) + HTML Extract node 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 the YouTube node, authenticated via OAuth2 (Client ID + Secret required).


πŸ› οΈ How to Run Locally

Follow these steps to deploy the workflow on your local system:

  1. ⬇️ Download the Workflow

    • Grab the .json file from this repository.
  2. 🐳 Run n8n with Docker
    Use Docker to host n8n locally.

  3. 🌐 Expose Webhook with Ngrok

    • Set up an HTTPS webhook using Ngrok to allow Telegram to reach your local instance.
  4. πŸ” Prepare Your API Credentials
    You'll need the following keys:

    • OpenRouter API Key
    • HeyGen API Key
    • Voice ID & Avatar ID
    • YouTube OAuth2 credentials (Client ID & Secret)
  5. 🧩 Update Nodes in Workflow
    Paste your credentials into the appropriate nodes:

    • Telegram
    • HTTP Request
    • HeyGen (Manual Node)
    • YouTube

🧩 Tech Stack

  • n8n – Automation platform
  • Telegram Bot – User trigger
  • OpenRouter – AI summarization (Mistral model)
  • HeyGen – AI avatar video generation
  • YouTube API – Video publishing

πŸ’‘ Example Use Case

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.

🧩 A DEMO VIDEO IS HERE:

πŸ“Ί Click the image below to watch the demo video

Watch the demo

πŸ”₯ Project Difficulty Rating: 9 / 10


βœ… Why this project scores a 9?


🎯 API Integration Proficiency

Seamlessly integrates multiple APIs: Telegram, OpenRouter, HeyGen, and YouTube β€” showcasing strong multi-service orchestration skills.


πŸ€– Workflow Automation

Delivers a complete automation pipeline:
πŸ“© Telegram Trigger ➑️ πŸ“š Blog Summarization ➑️ πŸ—£οΈ Voice + Avatar Video Generation ➑️ πŸ“€ YouTube Upload.
All without manual intervention.


βš™οΈ n8n Mastery

Demonstrates advanced usage of n8n, including:

  • Webhooks
  • Function Nodes
  • HTTP Requests (GET/POST)
  • Conditional Flows
  • OAuth Setup and Authentication Handling

🌐 Real-World Use Case

A practical solution for content creators, educators, and AI service providers who need to quickly convert blog articles into narrated avatar videos.


πŸŽ₯ Multimodal Handling

Efficiently combines:

  • 🧠 Natural Language Processing (NLP) for blog summarization
  • πŸ—£οΈ Text-to-Speech (TTS) with avatar video generation
    Perfectly bridges text + visual storytelling using AI.

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published