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

Go to Workflow
112 views
Built by Gregory Gregory
Created on June 05, 2026

Description

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., presentations, PDFs, HTML pages), and publishing posts to the user's social platforms.

The bot always sends the user a draft of the post for verification before publishing it.

The bot saves relevant information to its long-term memory (vector store), so you don't need to repeat it in every interaction (e.g., who you are, your company, product, etc.).

This template supports creating posts in LinkedIn and X.

Setup

Requirements
To use this template your will need:
Google's AI Studio API key. Get one here: https://aistudio.google.com/app/apikey
Telegram Bot API key. You receive one when you register a new Telegram Bot via @BotFather bot in Telegram.
LinkedIn API key. Follow the instructions here to create one: https://docs.n8n.io/integrations/builtin/credentials/linkedin/
X API key. Follow the instructions here to create one: https://docs.n8n.io/integrations/builtin/credentials/twitter/

Step-by-step instruction
Import this template
Create a new Telegram Bot or get an API key for existing one.
Configre Telegram nodes with Telegram API key.
Obtain a Google's AI Studio API key. Set it in "Describe document", "Describe audio" and "Google Gemini Chat Model".
Create an API key for LinkedIn.
Create an API key for X.
Set our LinkedIn key in "Create post in LinkedIn" nodes.
Set your X key in "Create X (Twitter) post" node.

Other
Bright-colored notes in the template highlight information that needs to be set before launching the template.

Nodes Used (10)

AI Agent
@n8n/n8n-nodes-langchain.agent
Call n8n Workflow Tool
@n8n/n8n-nodes-langchain.toolWorkflow
Chat Memory Manager
@n8n/n8n-nodes-langchain.memoryManager
Code
n8n-nodes-base.code
Embeddings Google Gemini
@n8n/n8n-nodes-langchain.embeddingsGoogleGemini
Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini
HTTP Request
n8n-nodes-base.httpRequest
Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow
Simple Vector Store
@n8n/n8n-nodes-langchain.vectorStoreInMemory
Telegram
n8n-nodes-base.telegram