This workflow follows the Agent → 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 →
{
"name": "My workflow",
"nodes": [
{
"parameters": {
"updates": [
"message"
],
"additionalFields": {}
},
"type": "n8n-nodes-base.telegramTrigger",
"typeVersion": 1.2,
"position": [
0,
0
],
"id": "034eebd7-6364-4564-a128-8b31df845874",
"name": "Telegram Trigger",
"credentials": {
"telegramApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "03d79e21-782e-4c57-8985-b08182ecbbfa",
"name": "input",
"value": "={{ $json.message.text }}",
"type": "string"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
224,
0
],
"id": "ddcfadd0-ec61-4212-b4e5-59949eeb3c60",
"name": "Edit Fields"
},
{
"parameters": {
"promptType": "define",
"text": "={{ $json.input }}",
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 2.2,
"position": [
480,
0
],
"id": "e87f86c2-3bb1-4396-a7f0-db45559e0121",
"name": "AI Agent"
},
{
"parameters": {
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
"typeVersion": 1,
"position": [
480,
176
],
"id": "f58c01c6-cec0-4baf-8d8f-1e09ac90ee8a",
"name": "Google Gemini Chat Model",
"credentials": {
"googlePalmApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"chatId": "={{ $('Telegram Trigger').item.json.message.from.id }}",
"text": "={{ $json.output }}",
"additionalFields": {
"appendAttribution": false
}
},
"type": "n8n-nodes-base.telegram",
"typeVersion": 1.2,
"position": [
800,
0
],
"id": "4aca11c8-344d-47ea-92cd-b35d3ebee850",
"name": "Send a text message",
"credentials": {
"telegramApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"sessionIdType": "customKey",
"sessionKey": "agent-1"
},
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"typeVersion": 1.3,
"position": [
576,
288
],
"id": "7bb58afc-cec8-42eb-99da-cdcaa5edc7e6",
"name": "Simple Memory"
}
],
"connections": {
"Telegram Trigger": {
"main": [
[
{
"node": "Edit Fields",
"type": "main",
"index": 0
}
]
]
},
"Edit Fields": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"Google Gemini Chat Model": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"AI Agent": {
"main": [
[
{
"node": "Send a text message",
"type": "main",
"index": 0
}
]
]
},
"Simple Memory": {
"ai_memory": [
[
{
"node": "AI Agent",
"type": "ai_memory",
"index": 0
}
]
]
}
},
"active": true,
"settings": {
"executionOrder": "v1"
},
"versionId": "5201bd23-be6e-4bb7-b7dd-c2de1b5dd9e5",
"meta": {
"templateCredsSetupCompleted": true
},
"id": "tTJAc37KOaqK9xnc",
"tags": []
}
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.
googlePalmApitelegramApi
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
Telegrambot01. Uses telegramTrigger, agent, lmChatGoogleGemini, telegram. Event-driven trigger; 6 nodes.
Source: https://github.com/eyuuab/AI_Agents_Workflows/blob/46d35b3e28d4dbc8ee17a14e13ff510fd2a49b22/n8n/telegrambot01.json — 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.
Food-Decider. Uses telegramTrigger, agent, telegram, lmChatGoogleGemini. Event-driven trigger; 10 nodes.
Agente de Controle Financeiro. Uses telegramTrigger, agent, lmChatGoogleGemini, memoryBufferWindow. Event-driven trigger; 6 nodes.
Contoh UPNY PPIC 2025 Chatbot. Uses telegramTrigger, agent, lmChatGoogleGemini, telegram. Event-driven trigger; 6 nodes.
Telegram Trigger receives incoming messages (text, voice, photo, document). Switch routes by message type to appropriate processors: Text → forwarded as-is. Voice → downloaded and sent to Transcribe a
Transform your Telegram messenger into a powerful, multi-modal personal or team assistant. This n8n workflow creates an intelligent agent that can understand text, voice, images, and documents, and ta