🎬 Rewrite viral LinkedIn posts in your voice with Google Gemini and Telegram approval

⚡ 458 views · 🎬 Content Creation & Video

💡 Pro Tip — If you’re pulling LinkedIn data through HTTP requests or dealing with API restrictions, there’s a community node called ScraperNode that handles this natively. It has dedicated scrapers for profiles, companies, jobs, and people search — you just pass a URL and get structured data back.

View All Scrapers

Description

Rewrite viral LinkedIn posts in your voice with AI and Telegram approval using Google Gemini

Who’s it for

This workflow is designed for LinkedIn creators, personal brand builders, thought leaders, and content marketers who want to consistently create engaging content without starting from scratch. Perfect for professionals who admire viral posts from others but want to adapt those ideas to their own unique voice and style.

If you’re struggling to maintain a consistent posting schedule, looking for content inspiration, or want to repurpose trending ideas while keeping your authentic voice, this automation handles the creative heavy lifting while giving you full control over what gets published.

How it works

The workflow transforms viral LinkedIn posts into personalized content that matches your writing style, complete with AI-generated images, all controlled through Telegram.

The process flow:

  1. Send any LinkedIn post URL to your Telegram bot
  2. Security check validates your Telegram user ID
  3. ConnectSafely.ai scrapes the original post content and engagement metrics
  4. Your custom persona profile is loaded (tone, phrases, formatting preferences)
  5. Google Gemini AI rewrites the post to match YOUR voice
  6. Gemini generates a professional, on-brand image for the post
  7. Preview is sent to Telegram for your review
  8. Approve or reject with a simple reply
  9. On approval, the post goes live on LinkedIn automatically

Setup steps

Step 1: Create a Telegram Bot

  1. Open Telegram and search for @BotFather
  2. Send /newbot and follow the prompts to create your bot
  3. Save the API token provided by BotFather
  4. Get your Telegram User ID by messaging @userinfobot

Step 2: Configure Telegram Credentials in n8n

  1. Go to Credentials → Add Credential → Telegram API
  2. Paste your bot token from BotFather
  3. Save the credential
  4. Update all Telegram nodes to use this credential

Step 3: Set Up Security Check

  1. Open the đź”’ Security Check node
  2. Replace YOUR_TELEGRAM_USER_ID with your actual Telegram user ID
  3. This ensures only YOU can trigger the workflow

Step 4: Configure ConnectSafely.ai API

  1. Sign up at ConnectSafely.ai
  2. Navigate to Settings → API Keys in your dashboard
  3. Generate a new API key
  4. In n8n, go to Credentials → Add Credential → ConnectSafely API
  5. Paste your API key and save
  6. Connect this credential to the 🔍 Scrape LinkedIn Post node

Step 5: Configure Google Gemini API

  1. Go to Google AI Studio
  2. Create or select a project
  3. Generate an API key
  4. In n8n, go to Credentials → Add Credential → Google Gemini (PaLM) API
  5. Paste your API key and save
  6. Connect this credential to both:
    • Google Gemini Chat Model node
    • Generate an image node

Step 6: Connect Your LinkedIn Account

  1. In n8n, go to Credentials → Add Credential → LinkedIn OAuth2 API
  2. Follow the OAuth flow to connect your LinkedIn account
  3. Connect this credential to the Create LinkedIn Post node
  4. Update the person parameter with your LinkedIn Person ID (URN)

Step 7: Customize Your Persona

  1. Open the 👤 Load Your Persona node
  2. Edit the PERSONA object to match YOUR writing style:
    • Update name with your name
    • Modify expertiseAreas with your topics
    • Adjust commonPhrases with phrases you actually use
    • Set preferredEmojis to your favorites
    • Customize styleNotes to capture your unique voice

Step 8: Activate the Workflow

  1. Save your workflow
  2. Toggle the workflow to Active
  3. Your Telegram bot is now ready to receive LinkedIn URLs

Customization

Persona Customization

The 👤 Load Your Persona node is where you define your unique voice. Key areas to customize:

FieldDescriptionExample
toneOverall communication style”Professional yet approachable, data-driven”
voicePerspective and personality”First-person, authentic, vulnerable”
formattingStructure preferences”Short paragraphs, emoji bullets, line breaks”
hooksOpening style”Start with contrarian takes or personal stories”
expertiseAreasYour niche topics[“SaaS growth”, “Leadership”, “Remote work”]
commonPhrasesSignature expressions[“Here’s the truth:”, “I learned this the hard way:“]

Image Generation

The 📝 Create Image Prompt node generates the image prompt. Modify the style parameters to match your brand:

Post Length

In the persona configuration, adjust postLength:

AI Model Selection

The workflow uses gemini-2.5-pro for text. You can switch to other models in the Google Gemini Chat Model node based on your needs.


Requirements

RequirementDetails
n8n Version1.0+ recommended
Telegram BotCreated via @BotFather
ConnectSafely.ai AccountAPI key required
Google AI Studio AccountGemini API key required
LinkedIn AccountOAuth2 connected in n8n
Community Noden8n-nodes-connectsafely-ai (self-hosted only)

⚠️ Note: This workflow uses the ConnectSafely community node, which requires a self-hosted n8n instance.


Use cases


Troubleshooting

Common Issues & Solutions

Issue: Bot not responding to messages

Issue: “Profile not found” from ConnectSafely.ai

Issue: Image generation fails

Issue: LinkedIn post fails to publish

Issue: AI generates posts that don’t match your style

Issue: Security check blocks your messages


Documentation & Resources

Official Documentation

Support


Connect With Us

Stay updated with the latest automation tips, LinkedIn strategies, and platform updates:


Need Custom Workflows?

Looking to build sophisticated LinkedIn automation workflows tailored to your business needs?

Contact our team for custom automation development, strategy consulting, and enterprise solutions.

We specialize in:

đź”— Nodes Used

Telegram, Telegram Trigger, LinkedIn, AI Agent, Structured Output Parser, Google Gemini Chat Model

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup