n8n Template

AI Social Media Manager Bot with Telegram and Gemini

AI Social Media Manager Bot with Telegram and Gemini
Created by carlosgracia • October 22, 2025

Overview

Turn Telegram into a content command center. Send a voice note, a photo, a video, or plain text, and the bot will:

  1. Transcribe audio with Whisper
  2. Analyze images and videos with Google Gemini 2.5 Flash
  3. Generate tailored post text per platform (TikTok, Instagram, YouTube, Pinterest, LinkedIn, X, Threads)
  4. Ask for approval in Telegram
  5. Publish automatically via Upload‑Post

Perfect for creators and teams that want a fast, mobile‑first way to draft and publish content.

How it works

  • Telegram Trigger routes the message type using a Switch node (voice, photo/document, video, or text)
  • Voice → Whisper transcription → AI Agent Text
  • Photo → Get file → Gemini Image Analysis → AI Agent Photos
  • Video → Get file → Gemini Video Analysis → AI Agent Videos
  • Each AI agent produces structured output per platform, then a Telegram approval step confirms before posting
  • Upload‑Post nodes publish to the selected platforms and send a status summary back to Telegram

What you need

  • Telegram Bot API token (BotFather)
  • Upload‑Post account and API credential
  • LLM access (Google Gemini; optional OpenAI Whisper for voice)

Setup (step‑by‑step)

  1. Create a Telegram bot with BotFather and copy the token
  2. In n8n, open the Telegram Trigger node and create credentials with that token
  3. In Upload‑Post, connect your social accounts and create an API credential; add it to the Upload‑Post nodes
  4. Provide your Gemini API key to the Gemini nodes (and OpenAI Whisper if you use voice)
  5. Deploy the workflow and send a test message to your bot

Approval workflow

The bot sends the generated per‑platform text back to Telegram and waits for your confirmation. Only approved content is uploaded. This keeps a human‑in‑the‑loop for brand safety.

Supported platforms

  • Text: LinkedIn, X, Threads
  • Photos: Instagram, TikTok, Pinterest
  • Video: YouTube, TikTok, Instagram

Template

  • Open on n8n: [View workflow]({{ sourceUrl }})

FAQs

  • Can I post to multiple accounts? Yes, configure multiple profiles in Upload‑Post
  • Can I customize style per platform? Yes, edit the agent prompts for each platform
  • Is scheduling supported? Add a scheduler or conditions before the Upload‑Post nodes
telegramai-agentcaptionsworkflowautomation