Promoción Automática de Videos de YouTube
Este flujo automatiza la difusión de cada nuevo video publicado en tu canal de YouTube, detectando su lanzamiento y compartiéndolo de forma inmediata en tus redes, listas de correo u otros canales de comunicación. Su objetivo es maximizar el alcance sin i
graph TD
%%{init: {'theme': 'mc','layout': 'elk'}}%%
APIRequest-d34bq[Consulta feeds de un canal de Youtube]
style APIRequest-d34bq stroke:#a170ff
ParseData-dnwbu[<div><img src="/_astro/braces.Djq0PW4_.svg" style="height: 20px !important;width: 20px !important"/></div>Extraer el resultado XML]
style ParseData-dnwbu stroke:#a170ff
JSONtoData-s7ioc[<div><img src="/_astro/braces.Djq0PW4_.svg" style="height: 20px !important;width: 20px !important"/></div>JSON to Data]
style JSONtoData-s7ioc stroke:#a170ff
JSONtoData-fo8pv[<div><img src="/_astro/braces.Djq0PW4_.svg" style="height: 20px !important;width: 20px !important"/></div>JSON to Data2]
style JSONtoData-fo8pv stroke:#a170ff
ParseData-it97z[<div><img src="/_astro/braces.Djq0PW4_.svg" style="height: 20px !important;width: 20px !important"/></div>extrae nuevas publicaciones]
style ParseData-it97z stroke:#a170ff
OpenAIModel-os2n1[<div><img src="/_astro/openAI.BhmuxEs3.svg" style="height: 20px !important;width: 20px !important"/></div>OpenAI3]
style OpenAIModel-os2n1 stroke:#a170ff
OpenAIModel-261p2[<div><img src="/_astro/openAI.BhmuxEs3.svg" style="height: 20px !important;width: 20px !important"/></div>OpenAI]
style OpenAIModel-261p2 stroke:#a170ff
AdvancedAgent-2k0w0[Agent]
style AdvancedAgent-2k0w0 stroke:#a170ff
TelegramMessage-spcse[Telegram Message]
style TelegramMessage-spcse stroke:#a170ff
youtube_transcripts-9dna1[YouTube Transcripts2]
style youtube_transcripts-9dna1 stroke:#a170ff
APIRequest-d34bq -.- ParseData-dnwbu
linkStyle 0 stroke:#a170ff
JSONtoData-s7ioc -.- ParseData-it97z
linkStyle 1 stroke:#a170ff
ParseData-it97z -.- JSONtoData-fo8pv
linkStyle 2 stroke:#a170ff
ParseData-dnwbu -.- OpenAIModel-os2n1
linkStyle 3 stroke:#a170ff
OpenAIModel-os2n1 -.- JSONtoData-s7ioc
linkStyle 4 stroke:#a170ff
JSONtoData-fo8pv -.- AdvancedAgent-2k0w0
linkStyle 5 stroke:#a170ff
youtube_transcripts-9dna1 -.- AdvancedAgent-2k0w0
linkStyle 6 stroke:#a170ff
TelegramMessage-spcse -.- AdvancedAgent-2k0w0
linkStyle 7 stroke:#a170ff
OpenAIModel-261p2 -.- AdvancedAgent-2k0w0
linkStyle 8 stroke:#a170ff
Promoción Automática de Videos de YouTube
🧩 Overview
This workflow automates the promotion of new YouTube videos by monitoring a specified channel's RSS feed for recent uploads. It detects videos published within the last 24 hours, extracts their key details, and then uses an AI agent to generate an engaging promotional summary. Finally, the agent posts this promotional message to a designated Telegram channel, ensuring immediate audience engagement for new content.
⚙️ Main Features
- Automatically fetches and parses the latest video data from a YouTube channel's RSS feed.
- Utilizes an AI model to analyze the feed, categorize videos by recency, and identify new uploads from the last 24 hours.
- Processes the list of new videos through an AI agent equipped with tools to fetch video transcripts and send messages.
- Generates concise, inspiring summaries (under 200 words) for each new video to encourage viewership.
- Publishes promotional announcements directly to a Telegram channel, including the video URL and publication date.
🔄 Workflow Steps
| Component Name | Role in the Workflow | Key Inputs | Key Outputs |
|---|---|---|---|
| API Request | Fetches the raw XML data from the target YouTube channel's RSS feed. | YouTube channel ID, Target RSS feed URL. | Raw XML feed data. |
| Parse Data | Extracts the textual content from the raw XML feed data for analysis. | Raw XML feed data. | Plain text representation of the XML feed. |
| OpenAI Model | Analyzes the feed text to identify videos published in the last 24 hours and structures the findings. | Parsed feed text, System prompt for analysis. | Structured JSON report listing new videos. |
| JSON to Data | Converts the AI-generated JSON report into a structured data object for the next step. | JSON string containing new video data. | Structured data object. |
| Parse Data (2) | Extracts the specific list of new publications from the structured data. | Structured data object. | Text list of new video entries. |
| JSON to Data (2) | Converts the extracted list of new videos back into a structured data format suitable for batch processing. | Text list of new video entries. | Batch data object for the agent. |
| Advanced Agent | Processes each new video: fetches its transcript, creates a promotional summary, and sends a Telegram announcement. | Batch data of new videos, System prompt for promotion, Tools for transcripts and messaging, Language Model. | Agent's response and actions. |
| YouTube Transcripts (Tool) | A tool used by the agent to retrieve the transcript for a given YouTube video URL. | YouTube video URL. | Video transcript data. |
| Telegram Message (Tool) | A tool used by the agent to send a formatted text message to a specified Telegram chat. | Chat ID, Message text. | Telegram API response. |
| OpenAI Model (2) | Provides the language model that powers the decision-making and text generation for the Advanced Agent. | Model configuration. | Language Model instance for the agent. |
🧠 Notes
- The workflow is designed to run periodically (e.g., daily) to check for new content.
- It focuses on videos published within the last 24 hours, categorizing older content as "recent" or "old" for informational purposes only.
- The promotional summaries generated by the agent are crafted to be inspiring and encourage clicks, adhering to a specific tone and structure.
- The workflow requires valid API credentials for OpenAI and Telegram to function.
- If no new videos are found in the last 24 hours, the agent will not send any messages to Telegram, preventing spam.