Templates / Publish LinkedIn & X posts with Telegram Bot, Gemini AI & Vector Memory

Publish LinkedIn & X posts with Telegram Bot, Gemini AI & Vector Memory

Ready for 3.0

by Gregory ✓ · 1,341 views · created 2025-07-18 · Social Media, AI Chatbot

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 28 nodes and runs on Telegram events (message, callback query, inline query). Along the way it connects Telegram, Google Gemini Chat Model, Embeddings Google Gemini and X (Formerly Twitter) and 1 more.

How it runs

Trigger: On Telegram events (message, callback query, inline query).

  1. Set input context (Edit Fields (Set)): sets 8 fields: chat_id, callback_data, message_text…
  2. Input type switch (Switch): routes items into 4 branches
  3. Text prompt (Edit Fields (Set)): sets 1 field: chatInput
  4. Download document (Telegram): work with file
  5. Download audio (Telegram): work with file
  6. If: checks a condition and branches into true / false
  7. AI Agent: runs an AI agent, with model: Google Gemini Chat Model; 5 tools (Save knowledge, Retrieve knowledge, Create X (Twitter) post, Create post in LinkedIn as a person…); memory: Simple Memory
  8. Encode document (Extract from File): extracts data from a file (binary to propery)
  9. Encode audio (Extract from File): extracts data from a file (binary to propery)
  10. Chat Memory Manager: uses Chat Memory Manager, with memory: Simple Memory

…plus 9 more steps. See the full node list below.

Services it uses

TelegramGoogle Gemini Chat ModelEmbeddings Google GeminiX (Formerly Twitter)LinkedIn

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (18)

From the author

This workflow contains community nodes that are only compatible with the self-hosted version of n8n. Overview This is a Telegram Bot capable of receiving information from the user in the form of text messages, voice messages, images or documents (e.g.,…

Excerpt from Gregory's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.