Human-in-the-Loop LinkedIn Post Generator (Telegram + AI)
This n8n template demonstrates how to build a human-in-the-loop AI workflow that helps you create professional LinkedIn posts via Telegram. The agent searches the web, drafts content, asks for your approval, and refines it based on your feedback — ensuring every post sounds polished and on-brand.
Who’s it for
- Content creators and marketers who want to save time drafting LinkedIn posts.
- SaaS founders or solopreneurs who regularly share updates or insights.
- Anyone who wants an AI writing assistant with human control in the loop.
How it works / What it does
- Trigger: The workflow starts when you send a message to the Telegram bot asking it to write a LinkedIn post (e.g., “Write a LinkedIn post about AI in marketing”).
- Research: The AI agent uses the Tavily tool to search the web and gather context for your topic.
- Drafting: An AI model (OpenAI or Gemini) creates a professional LinkedIn post based on the findings.
- Human-in-the-loop:
- The bot sends the draft to you in Telegram and asks: “Good to go?”
- If you approve → The post is saved to a Google Sheet, ready to publish.
- If you disapprove and give feedback → The feedback is sent to a second AI agent that revises and improves the post.
- The improved draft is sent back to you again for final approval.
- Finalization: Once approved, the post is appended to a Google Sheet — your ready-to-post content library.
This workflow combines AI creativity with human oversight to produce polished, authentic LinkedIn content every time.
How to set up
- Import this template into your n8n account.
- Connect your Telegram bot (via Telegram Trigger and Send Message nodes).
- Connect your Google Sheets account to store approved posts.
- Set up your AI model provider (OpenAI or Gemini) and Tavily API key for web search.
- Activate the workflow and start chatting with your AI writing assistant on Telegram!
Requirements
- n8n account.
- Telegram bot token.
- OpenAI or Google Gemini account (for text generation).
- Tavily API key (for web search).
- Google Sheets account (for saving approved posts).
How to customize the workflow
- Post Tone: Adjust AI prompts to match your personal voice (professional, storytelling, inspirational, etc.).
- Approval Logic: Modify the approval step to allow multiple revision loops or add a “draft-only” mode.
- Storage Options: Instead of Google Sheets, save approved posts to Notion, Airtable, or your CMS.
- Multi-platform: Extend the same logic for X (Twitter) or Threads by changing the final output destination.
- Branding: Add your brand guidelines or preferred hashtags to the AI prompts for consistent style.
This template helps you write better LinkedIn posts faster — keeping you in full control while AI does the heavy lifting.