Use this advanced n8n workflow to automate news publishing from Telegram RSS feeds. Features GPT-4o rewriting, subtle context editing, dynamic media handling, and instant WordPress posting.
Download this n8n workflow template and start using it instantly.
Managing high-volume content feeds and ensuring editorial consistency is a massive challenge. This powerful n8n workflow solves this by establishing an automated, AI-driven editorial pipeline. Instead of simple cross-posting, it leverages the capabilities of GPT-4o to act as a senior editor, rewriting raw feed content into highly structured, context-aware articles complete with SEO metadata and proper HTML formatting. This specific n8n workflow is designed to handle media dynamically—detecting whether a file is an image or video, uploading it to WordPress, and embedding it correctly. By utilizing multiple Telegram RSS feeds as the starting point, this automation ensures your WordPress site stays fresh, relevant, and consistently aligned with your editorial voice, making it a critical asset in advanced content operations.
The entire process is initiated by one of the dedicated n8n trigger nodes, specifically the Telegram RSS Feed Read Trigger nodes, which monitor several Telegram channels.
Set node (e.g., Assign Category - News) that applies the appropriate WordPress category ID and a fallback default image ID based on the source channel.Message a model4 n8n node, which uses a GPT-4o system prompt defining the persona of a senior editor. This node performs a complete rewrite, adds subtle pro-democratic context, ensures strict HTML formatting (, , ), and outputs the article meta and body in a predefined JSON structure.Message a model n8n node utilizes GPT-4o to analyze the file's metadata and determine if it is an 'image' or 'video'.Switch node routes the flow based on the AI's media detection. It assigns the appropriate featured image ID (either the newly uploaded image ID or the default image ID for videos).Message a model6 n8n node (Context Editor), which uses the SEO focus keyword generated earlier to add 1-2 sentences of seamless geopolitical context, further aligning the article with democratic values.If n8n node checks if a video was detected. If so, a shortcode for an HTML5 video player is inserted into the article content. Finally, the article is published to WordPress using the REST API in the final HTTP Request n8n node.To deploy this comprehensive n8n workflow, follow these steps:
Message a model n8n node instances (GPT-4o nodes).feedUrl parameter in all Telegram RSS Feed Read Trigger n8n nodes with the appropriate RSS links for the channels you wish to monitor (instructions for generating these are provided in the Sticky Note).categoryid and defaultimage_id values in all the Assign Category Set n8n node instances to match your specific WordPress category IDs and fallback media IDs.https://your-wordpress-domain/ to your actual site URL. Telegram RSS Feed Read Trigger (n8n trigger): Initiates the n8n workflow on a schedule (e.g., every hour). Monitors several public Telegram channels via third-party RSS generators.
Assign Category Set (n8n node): Five separate Set nodes assign source-specific metadata, including the WordPress category ID and a default featured image ID, vital for the publishing process.
Message a model4 (OpenAI/GPT-4o): The primary editor n8n node. It applies a complex, multi-step prompt to rewrite the article in a specific tone, structure the output using HTML tags, and return the data in a strict JSON format containing the headline and SEO meta.
HTTP Request (Media Download/Upload): Downloads the media file from the Telegram RSS feed and then uploads it to the WordPress media library using the WordPress API endpoint /wp/v2/media. Requires proper Content-Disposition headers.
Message a model (OpenAI/GPT-4o): Acts as a media detector. Analyzes the downloaded file's mime type to classify it as 'image' or 'video', directing the flow.
Merge2 & Switch (n8n node): Combines the file IDs and routes the flow based on the media type detected, assigning the correct featured image ID or the video ID.
Message a model6 (OpenAI/GPT-4o): The context enhancer n8n node. It reviews the rewritten article and adds specific geopolitical or democratic context based on the extracted focus keyword.
Merge4 (n8n node): Gathers all finalized data points: enhanced article text, media IDs, category IDs, title, and SEO description.
If & Insert HTML5 Video player (n8n node): Conditionally inserts a WordPress shortcode for video playback if the media was identified as a video.
HTTP Request1/HTTP Request3 (n8n node): The final publishing step. Posts the completed, AI-enhanced article to the WordPress API endpoint /wp/v2/posts, setting the title, content, excerpt, category, and featured_media ID.
Use this powerful n8n workflow to import WooCommerce products from Google Sheets, automatically generating optimized Yoast SEO meta titles and descriptions using AI.

Use this powerful n8n workflow to automate video production end-to-end. Generate scripts, images, and voiceovers using AI, and instantly publish content to TikTok, YouTube, Instagram, Facebook, and LinkedIn.

Use this n8n workflow to instantly process new leads generated in ERPNext. An AI agent classifies inquiries, routes notifications to the correct internal contacts via Microsoft Outlook.

Use this powerful n8n workflow to generate automated, personalized sales briefs using Salesforce, MadKudu, and OpenAI, syncing the output directly to Outreach CRM fields for targeted sales outreach.

Use this powerful n8n workflow to generate daily, high-quality LinkedIn posts using GPT-4, route them for human approval via GoToHuman, and automatically publish via Blotato.

Automation consultant with 5+ years of experience helping Sales & Marketing teams streamline processes, reduce manual work, and improve efficiency using n8n and other workflow automation tools. I design custom automations, integrate multiple platforms, and optimize complex workflows for scalability and reliability.







































