Publish LinkedIn & X posts with Telegram Bot, Gemini AI & Vector Memory
Ready for 3.0What 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).
- Set input context (Edit Fields (Set)): sets 8 fields: chat_id, callback_data, message_text…
- Input type switch (Switch): routes items into 4 branches
- Text prompt (Edit Fields (Set)): sets 1 field: chatInput
- Download document (Telegram): work with file
- Download audio (Telegram): work with file
- If: checks a condition and branches into true / false
- 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
- Encode document (Extract from File): extracts data from a file (binary to propery)
- Encode audio (Extract from File): extracts data from a file (binary to propery)
- Chat Memory Manager: uses Chat Memory Manager, with memory: Simple Memory
…plus 9 more steps. See the full node list below.
Services it uses
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)
- Telegram Trigger
n8n-nodes-base.telegramTrigger - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - AI Agent
@n8n/n8n-nodes-langchain.agent - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Embeddings Google Gemini
@n8n/n8n-nodes-langchain.embeddingsGoogleGemini - Telegram
n8n-nodes-base.telegram - Twitter Tool
n8n-nodes-base.twitterTool - Chat Memory Manager
@n8n/n8n-nodes-langchain.memoryManager - If
n8n-nodes-base.if - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Split Out
n8n-nodes-base.splitOut - Code
n8n-nodes-base.code - Switch
n8n-nodes-base.switch - Extract from File
n8n-nodes-base.extractFromFile - Linked In Tool
n8n-nodes-base.linkedInTool - Simple Vector Store
@n8n/n8n-nodes-langchain.vectorStoreInMemory - Call n8n Workflow Tool
@n8n/n8n-nodes-langchain.toolWorkflow
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.,…