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:
- Send any LinkedIn post URL to your Telegram bot
- Security check validates your Telegram user ID
- ConnectSafely.ai scrapes the original post content and engagement metrics
- Your custom persona profile is loaded (tone, phrases, formatting preferences)
- Google Gemini AI rewrites the post to match YOUR voice
- Gemini generates a professional, on-brand image for the post
- Preview is sent to Telegram for your review
- Approve or reject with a simple reply
- On approval, the post goes live on LinkedIn automatically
Setup steps
Step 1: Create a Telegram Bot
- Open Telegram and search for @BotFather
- Send
/newbot and follow the prompts to create your bot
- Save the API token provided by BotFather
- Get your Telegram User ID by messaging @userinfobot
Step 2: Configure Telegram Credentials in n8n
- Go to Credentials → Add Credential → Telegram API
- Paste your bot token from BotFather
- Save the credential
- Update all Telegram nodes to use this credential
Step 3: Set Up Security Check
- Open the 🔒 Security Check node
- Replace
YOUR_TELEGRAM_USER_ID with your actual Telegram user ID
- This ensures only YOU can trigger the workflow
- Sign up at ConnectSafely.ai
- Navigate to Settings → API Keys in your dashboard
- Generate a new API key
- In n8n, go to Credentials → Add Credential → ConnectSafely API
- Paste your API key and save
- Connect this credential to the 🔍 Scrape LinkedIn Post node
Step 5: Configure Google Gemini API
- Go to Google AI Studio
- Create or select a project
- Generate an API key
- In n8n, go to Credentials → Add Credential → Google Gemini (PaLM) API
- Paste your API key and save
- Connect this credential to both:
- Google Gemini Chat Model node
- Generate an image node
Step 6: Connect Your LinkedIn Account
- In n8n, go to Credentials → Add Credential → LinkedIn OAuth2 API
- Follow the OAuth flow to connect your LinkedIn account
- Connect this credential to the Create LinkedIn Post node
- Update the
person parameter with your LinkedIn Person ID (URN)
Step 7: Customize Your Persona
- Open the 👤 Load Your Persona node
- 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
- Save your workflow
- Toggle the workflow to Active
- 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:
| Field |
Description |
Example |
tone |
Overall communication style |
"Professional yet approachable, data-driven" |
voice |
Perspective and personality |
"First-person, authentic, vulnerable" |
formatting |
Structure preferences |
"Short paragraphs, emoji bullets, line breaks" |
hooks |
Opening style |
"Start with contrarian takes or personal stories" |
expertiseAreas |
Your niche topics |
["SaaS growth", "Leadership", "Remote work"] |
commonPhrases |
Signature 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:
- Current style: Modern, clean, corporate, vector art
- Customize: Change to photography, illustrations, or abstract visuals
Post Length
In the persona configuration, adjust postLength:
"short" - Quick insights (under 500 characters)
"medium" - Standard posts (500-1500 characters)
"long" - Deep dives (1500-3000 characters)
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
| Requirement |
Details |
| n8n Version |
1.0+ recommended |
| Telegram Bot |
Created via @BotFather |
| ConnectSafely.ai Account |
API key required |
| Google AI Studio Account |
Gemini API key required |
| LinkedIn Account |
OAuth2 connected in n8n |
| Community Node |
n8n-nodes-connectsafely-ai (self-hosted only) |
⚠️ Note: This workflow uses the ConnectSafely community node, which requires a self-hosted n8n instance.
Use cases
- Content Repurposing: Transform competitor or industry leader posts into your own perspective
- Consistent Posting: Maintain a regular posting schedule without content creation burnout
- Style Consistency: Ensure every post matches your established personal brand
- Trend Riding: Quickly create content around viral topics while they're still relevant
- A/B Testing: Test different approaches by approving or rejecting variations
Troubleshooting
Common Issues & Solutions
Issue: Bot not responding to messages
- Solution: Verify the Telegram webhook is active; check the Telegram Trigger node is properly configured
Issue: "Profile not found" from ConnectSafely.ai
- Solution: Ensure the LinkedIn URL is complete and public. Some posts on private profiles can't be scraped
Issue: Image generation fails
- Solution: Verify your Gemini API key has access to image generation models. Check quota limits in Google AI Studio
Issue: LinkedIn post fails to publish
- Solution: Confirm your LinkedIn OAuth2 credentials are valid and haven't expired. Re-authorize if needed
Issue: AI generates posts that don't match your style
- Solution: Be more specific in your persona configuration. Add more example phrases and detailed style notes
Issue: Security check blocks your messages
- Solution: Double-check your Telegram User ID is correctly entered (must be a number, not username)
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:
- Multi-channel engagement workflows
- AI-powered personalization at scale
- Lead scoring and qualification automation
- CRM integration and data synchronization
- Custom reporting and analytics pipelines