This workflow corresponds to n8n.io template #2743 — we link there as the canonical source.
This workflow follows the Chainllm → Google Gemini Chat recipe pattern — see all workflows that pair these two integrations.
The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"id": "q6efK3tLFrshFP2S",
"name": "Automate Telegram Chat Responses Using Google Gemini",
"tags": [],
"nodes": [
{
"id": "33ef7486-add2-4217-839a-49d5de484c0a",
"name": "Google Gemini Chat Model",
"type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
"position": [
860,
160
],
"parameters": {
"options": {},
"modelName": "models/gemini-1.5-pro"
},
"credentials": {
"googlePalmApi": {
"name": "<your credential>"
}
},
"typeVersion": 1
},
{
"id": "cbb7c2ab-15fa-4ccb-8950-c7a82176ed12",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
380,
-80
],
"parameters": {
"color": 5,
"width": 1040,
"height": 380,
"content": "## Automate Telegram Chat Responses Using Google Gemini"
},
"typeVersion": 1
},
{
"id": "c8d5f87a-a0d6-4db1-9d3e-8fb6590974c7",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
380,
320
],
"parameters": {
"color": 5,
"width": 1040,
"content": "## Description :\nThis n8n workflow is built by WeblineIndia's AI Team and it automates real-time chat responses in Telegram using Google's Gemini Chat Model. When a user sends a message on Telegram, the Google Gemini AI model processes it and generates a response, which is then sent back to the user via Telegram.\n"
},
"typeVersion": 1
},
{
"id": "138b1659-155e-4154-b875-683661be1837",
"name": "Receive Telegram Message",
"type": "n8n-nodes-base.telegramTrigger",
"notes": "This node captures incoming messages from Telegram.",
"position": [
480,
0
],
"parameters": {
"updates": [
"message"
],
"additionalFields": {}
},
"notesInFlow": true,
"typeVersion": 1.1
},
{
"id": "4b4fc565-981d-4cfe-b22b-6d9deb0df14a",
"name": "Generate AI Response",
"type": "@n8n/n8n-nodes-langchain.chainLlm",
"notes": "This node processes the message using Google Gemini AI and generates a response.",
"position": [
740,
0
],
"parameters": {
"text": "how can you help me?",
"messages": {
"messageValues": [
{
"message": "={{ $json.message.text }}"
}
]
},
"promptType": "define"
},
"notesInFlow": true,
"typeVersion": 1.5
},
{
"id": "8b022acb-e9f6-499c-a71e-e1675899ff05",
"name": "Send Telegram Reply",
"type": "n8n-nodes-base.telegram",
"notes": "This node sends the AI-generated response back to the user on Telegram.",
"position": [
1120,
0
],
"parameters": {
"text": "={{ $json.text }}",
"chatId": "={{ $('Receive Telegram Message').item.json.message.chat.id }}",
"additionalFields": {
"parse_mode": "HTML",
"appendAttribution": false
}
},
"notesInFlow": true,
"typeVersion": 1.2
}
],
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "41f949d4-e316-40eb-82bf-2398d96a440e",
"connections": {
"Generate AI Response": {
"main": [
[
{
"node": "Send Telegram Reply",
"type": "main",
"index": 0
}
]
]
},
"Google Gemini Chat Model": {
"ai_languageModel": [
[
{
"node": "Generate AI Response",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Receive Telegram Message": {
"main": [
[
{
"node": "Generate AI Response",
"type": "main",
"index": 0
}
]
]
}
}
}
Credentials you'll need
Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.
googlePalmApi
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
By WeblineIndia Create a Telegram bot using @BotFather and copy the API Token. Obtain Google Gemini API Key via Google Cloud. Set up the n8n workflow: Trigger: Telegram message received. AI Model: Google Gemini generates response. Output: AI reply sent back to user via Telegram.…
Source: https://n8n.io/workflows/2743/ — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
This workflow creates a multi-talented AI assistant named Simran that interacts with users via Telegram. It can handle text and voice messages, understand the user's intent, and perform various tasks.
A Telegram bot that converts natural-language work descriptions into detailed cost estimates using AI parsing, vector search, and the open-source DDC CWICR database with 55,000+ construction work item
This workflow contains community nodes that are only compatible with the self-hosted version of n8n.
This n8n workflow automates the entire lead nurturing process from initial contact through a 3-email follow-up sequence, with intelligent reply detection and personalized AI-generated content. It's de
This workflow turns any URL sent to a Telegram bot into ready-to-publish social posts: Trigger: Telegram message (checks if it contains a URL). Fetch & parse: Downloads the page and extracts readable