Skip to main content

Generate viral LinkedIn content with GPT and images using Telegram bot interface

Workflow preview

Workflow preview
100%
Generate viral LinkedIn content with GPT and images using Telegram bot interface preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

AI Powered LinkedIn Viral Content Generator & Telegram Bot Disclaimer: This workflow uses community contributed nodes which are not officially maintained by n8n. Please test thoroughly before runni...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.telegramtrigger, n8n-nodes-base.splitout, n8n-nodes-base.httprequest, @n8n/n8n-nodes-langchain.lmchatopenai, @tavily/n8n-nodes-tavily.tavilytool, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.outputparserstructured, @n8n/n8n-nodes-langchain.chainllm

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Jimmy Gay.

Original n8n.io source

1.1 Workflow description

Title
Generate viral LinkedIn content with GPT and images using Telegram bot interface
Workflow name
Generate viral LinkedIn content with GPT and images using Telegram bot interface

AI-Powered LinkedIn Viral Content Generator & Telegram Bot

Disclaimer:
This workflow uses community-contributed nodes which are not officially maintained by n8n. Please test thoroughly before running in production. Do not use this template in production without your own independent validation.


Overview

This workflow empowers you to generate highly viral LinkedIn posts, including both compelling copy and AI-generated custom images, directly from a Telegram chat interface. Leveraging AI-powered research, GPT-based content creation, and community-based integrations, it creates a seamless automation: from prompt to trend analysis, viral copywriting, image generation, and message delivery—all in one flow.


Node-by-Node Workflow Explanation

  • Telegram Trigger: Starts the workflow from a specified Telegram chat by capturing user prompts.
  • Expert Algo (AI Analysis): Uses OpenAI and Tavily to research current LinkedIn trends, analyzes top-performing content, and produces a content framework plus an AI image prompt.
  • Structured Output Parser: Validates and formats the AI's returned JSON output.
  • CM Junior: Generates three LinkedIn post drafts in your own style, based on the viral framework and rules.
  • Structured Output Parser1: Ensures correct JSON for the drafted posts.
  • Community Manager: Evaluates the draft posts using additional trend analysis via Tavily, selects the one most likely to go viral.
  • Structured Output Parser2: Validates the community manager's single post output.
  • Generate Image: Calls the AI image generator on RapidAPI to create a picture for your post, using the recommended prompt.
  • Split Out/Download Image: Prepares and downloads the generated image file.
  • Send Telegram Photo and Message: Sends the chosen LinkedIn post and the generated image to your Telegram bot.

Setup Instructions

  1. Telegram: Create a bot using @BotFather and get your bot token and target chat ID.
  2. OpenAI: Register at OpenAI, obtain your API key.
  3. Tavily: Register at Tavily and get your API key.
  4. RapidAPI (AI Image Generator): Create an account, subscribe to the "ai-text-to-image-generator-flux-free-api", and copy your API key.
  5. Credentials: Use the n8n Credentials Manager to configure each key securely—never hardcode API keys into nodes.
  6. Workflow Personalization: Replace all placeholders like Telegram chat ID by referencing the credentials or environment variables.
  7. Testing: Run the workflow using your bot and ensure that no personal or sensitive data remains before publishing.

Additional Recommendations

  • Update the image generator, Telegram, OpenAI, and Tavily node credentials through the n8n Credentials panel.
  • Custom tailor prompts and output formatting as needed for your LinkedIn content strategy.
  • For security, do not share any personal API keys or chat IDs in your public template.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Telegram Trigger

Type / Role
n8n-nodes-base.telegramTrigger - telegramTrigger
Config choices
Version 1.2

Block 2 - Split Out

Type / Role
n8n-nodes-base.splitOut - splitOut
Config choices
Version 1

Block 3 - generate_img

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 4 - download_img

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 5 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 6 - tavily

Type / Role
@tavily/n8n-nodes-tavily.tavilyTool - tavilyTool
Config choices
Version 1

Block 7 - expert_algo

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.2

Block 8 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 9 - Structured Output Parser1

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 10 - Community Manager

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.2

Block 11 - CM Junior

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.7

Block 12 - Structured Output Parser2

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 13 - Send a photo message

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 14 - Send a text message

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 15 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Generate viral LinkedIn content with GPT and images using Telegram bot interface
Complexity advanced
Nodes 15
Categories Content Creation, Multimodal AI
Author Jimmy Gay
Published 06 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8334/8334.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Generate viral LinkedIn content with GPT and images using Telegram bot interface do?

AI Powered LinkedIn Viral Content Generator & Telegram Bot Disclaimer: This workflow uses community contributed nodes which are not officially maintained by n8n. Please test thoroughly before runni...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.