Capture and Store CRM Contacts with Telegram & Gemini AI
Ready for 3.0What this workflow does
This AI workflow has 22 nodes and runs on Telegram events (message). Along the way it connects Telegram, Google Gemini Chat Model, Google Sheets and Google Gemini.
How it runs
Trigger: On Telegram events (message).
- parameters (Edit Fields (Set)): sets 2 fields: spreadsheet_document_id, sheet_name
- Send "typing..." (Telegram): send chat action
- Add sessionID to input (Merge): merges the data from its input branches
- Get sessionID (Data table): get
- Switch: routes items into 3 branches
- If: checks a condition and branches into true / false
- Get audio file (Telegram): work with file
- Analyze image (Google Gemini): analyze (image)
- Process text input (Code): runs custom JavaScript code
- Generate sessionID (Crypto): hashes or encrypts values
…plus 6 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 (14)
- Telegram Trigger
n8n-nodes-base.telegramTrigger - AI Agent
@n8n/n8n-nodes-langchain.agent - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Telegram
n8n-nodes-base.telegram - Data table
n8n-nodes-base.dataTable - Crypto
n8n-nodes-base.crypto - If
n8n-nodes-base.if - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Switch
n8n-nodes-base.switch - Merge
n8n-nodes-base.merge - Edit Fields (Set)
n8n-nodes-base.set - Google Sheets Tool
n8n-nodes-base.googleSheetsTool - Google Gemini
@n8n/n8n-nodes-langchain.googleGemini - Code
n8n-nodes-base.code
From the author
What it does This workflow is an AI agent in the form of a Telegram bot. Its main purpose is to capture contact information and store it in a CRM. The agent supports multi-modal inputs and can extract contact details from text messages, voice recordings, and…