LinkedIn Viral Content Generation via Telegram Bot - n8n Workflow

Generate highly viral LinkedIn posts and corresponding AI images instantly using a powerful n8n workflow triggered directly from Telegram. This n8n workflow template uses specialized AI agents for maximum virality.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

Social Media Managers focused on LinkedIn growth.
Content creators looking for optimized, high-engagement post ideas.
Automation enthusiasts seeking advanced AI Agent implementations within n8n.
Users who want to deploy quick-access content generation bots via Telegram.

Overview

This advanced automation solution is one of the most powerful n8n templates for social media content creation. It solves the complex problem of generating content that is optimized for virality by chaining together multiple specialized AI agents, research tools (Tavily), and image generation APIs. Instead of manual research and drafting, the user simply sends a request via Telegram. The core of this n8n workflow is the intelligent agent system that first analyzes the current LinkedIn algorithm and trends, develops a strategic framework, drafts three variations, and finally selects the single most promising post. The resulting content is paired with a contextually appropriate AI-generated image, delivered instantly back to Telegram. This entire process is orchestrated seamlessly by the n8n platform, demonstrating the power of a modern n8n workflow.

How it Works

The entire process begins with a simple message, making the Telegram Trigger the starting point of this highly specialized n8n workflow.


  1. Trigger Reception: The n8n trigger initiates the flow when a new message is detected in the configured Telegram chat using the Telegram Trigger n8n node.

  2. Expert Analysis (Expert Algo Agent): An AI agent, acting as a LinkedIn algorithm expert, receives the user's request. It utilizes the Tavily tool to search for current viral LinkedIn posts. Its output is a structured JSON containing a viral content framework and a specific image prompt.

  3. Content Drafting (CM Junior Chain): The 'CM Junior' chain uses the derived framework to write three distinct, high-quality LinkedIn post proposals (500-900 characters each).

  4. Optimal Selection (Community Manager Agent): A Senior Community Manager AI agent analyzes the three proposals. This agent uses the Tavily tool again to research which post style would be most viral based on current trends. It selects the best post and outputs the final text.

  5. Image Generation: Concurrently, another branch of the n8n workflow uses the img_prompt to call a RapidAPI service via an n8n HTTP Request node, generating the necessary AI image.

  6. Image Processing & Download: The generated image URL is passed through the Split Out node and then downloaded as binary data using another n8n HTTP Request node.

  7. Final Delivery: The n8n workflow concludes by using two dedicated Telegram nodes to send the final, optimized text post and the accompanying photo back to the user's chat, completing the automation loop.

Installation Guide

To deploy this specialized n8n workflow template, follow these setup steps:


  1. Import: Copy the provided JSON data and import it directly into your n8n instance.

  2. Credentials Setup:

OpenAI: Configure your OpenAI account credentials. This is crucial as it powers the primary AI agents in the n8n node setup.
Telegram: Set up your Telegram API credentials and replace the placeholder YOURTELEGRAMCHATID values in the 'Send a photo message' and 'Send a text message' n8n node settings.
RapidAPI: Obtain a key for the specified AI image generator API on RapidAPI and input this key into the header of the generateimg n8n node.
Tavily (Optional): If you wish to use the research tool functionality, ensure your Tavily API credentials are configured.

  1. Activation: Once all credentials and placeholders are configured, activate the n8n workflow by enabling the Telegram Trigger n8n node.

Node Details

Telegram Trigger (n8n trigger): The starting n8n node. It listens for message updates in the linked Telegram account to initiate the content generation n8n workflow.
expertalgo (Langchain Agent): This highly configured n8n node acts as the LinkedIn Algorithm Expert. It uses GPT (via the OpenAI Chat Model) and the Tavily tool to generate a viral content framework and a corresponding image prompt.
CM Junior (Langchain ChainLlm): An n8n node responsible for taking the framework generated by the expert agent and rapidly drafting three distinct post variations. It adheres to strict formatting and character count rules.
Community Manager (Langchain Agent): A senior review agent n8n node that selects the single best post from the three drafts, again using the Tavily tool to ensure maximum potential virality.
generateimg (HTTP Request n8n node): This n8n node calls the external RapidAPI service, sending the AI image prompt derived earlier to generate a suitable visual asset for the LinkedIn post.
download_img (HTTP Request n8n node): An essential n8n node that retrieves the image file from the API's resulting URL and prepares it as binary data for the next step.


  • Send a photo message / Send a text message (Telegram n8n node): These final n8n nodes handle the output, sending the finalized text post and the corresponding image back to the user via Telegram.

Related n8n Workflows

Free

Nodes: 10 Nodes
Updated: December 26 2025
View all
Created by

Featured*