AutomationFlowsAI & RAG › Ai-powered Telegram Task Assistant with Notion Integration

Ai-powered Telegram Task Assistant with Notion Integration

ByAlexey from Mingles.ai @alexx on n8n.io

This workflow creates a powerful AI assistant in Telegram that helps you manage your tasks in Notion. The assistant leverages OpenAI's language models to understand natural language commands, process voice messages, and maintain context through conversations.

Event trigger★★★★☆ complexityAI-powered23 nodesTelegram TriggerAgentOpenAI ChatTelegramOpenAIExecute Workflow TriggerNotionTool Workflow
AI & RAG Trigger: Event Nodes: 23 Complexity: ★★★★☆ AI nodes: yes Added:

This workflow corresponds to n8n.io template #4142 — we link there as the canonical source.

This workflow follows the Agent → Execute Workflow Trigger 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 →

Download .json
{
  "id": "luA3Pf8ljBmGGnnS",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "tags": [],
  "nodes": [
    {
      "id": "a0047d28-4079-4cde-aa32-5e5680ffa0e1",
      "name": "Telegram Trigger",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -1180,
        -360
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "c3b1e3d7-5bf0-4458-9097-e289a5b5929e",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        380,
        -360
      ],
      "parameters": {},
      "typeVersion": 1.9
    },
    {
      "id": "e4956c2a-640a-4765-a9a6-56afd768d1e5",
      "name": "Set text",
      "type": "n8n-nodes-base.set",
      "position": [
        -240,
        -140
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "eb4ada6f-0838-4b05-8e57-400d834d7d22",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        360,
        -140
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "d9dfe7db-df80-416f-9539-aa2a40c3cb4a",
      "name": "Transribation",
      "type": "n8n-nodes-base.telegram",
      "position": [
        -80,
        -460
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "05eae3da-b8bf-4104-ac25-cd987d888752",
      "name": "Transcribe",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        -300,
        -460
      ],
      "parameters": {},
      "typeVersion": 1.8
    },
    {
      "id": "c0d929c4-46fc-4608-8ab2-d76d97bd4a06",
      "name": "When Executed by Another Workflow",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        -960,
        720
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "b952b40c-61ab-4de7-b269-9ef807e47223",
      "name": "When clicking \u2018Test workflow\u2019",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -1180,
        520
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "975befd9-e395-456e-b8d7-956e8ba5a894",
      "name": "SETUP",
      "type": "n8n-nodes-base.set",
      "position": [
        -740,
        620
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "91d129a0-bced-48dc-86ae-3301754f01fb",
      "name": "Add Task",
      "type": "n8n-nodes-base.notion",
      "position": [
        -300,
        520
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "c0c1d8eb-e2ae-4919-9618-1060b1d866ab",
      "name": "Get Tasks",
      "type": "n8n-nodes-base.notion",
      "position": [
        -300,
        320
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "fc539220-0007-4154-8ba1-3a44410d1dc2",
      "name": "Complete Task",
      "type": "n8n-nodes-base.notion",
      "position": [
        -300,
        720
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "8fab5419-bba3-46a4-9291-ac8e6321707f",
      "name": "Choose Method",
      "type": "n8n-nodes-base.switch",
      "position": [
        -520,
        578
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "47e494d8-a3db-48c5-ad88-d208f4bac1a3",
      "name": "Set Task Time",
      "type": "n8n-nodes-base.notion",
      "position": [
        -300,
        920
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "0739dc69-77f0-40c2-aa2b-55506913e4da",
      "name": "Response",
      "type": "n8n-nodes-base.code",
      "position": [
        -80,
        620
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "0efa85a4-4ae4-4ef9-9b18-9e35feb6cf17",
      "name": "Notion Tasks Manager Tool",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        600,
        -140
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "2cf0f70f-fa36-486e-809a-a4ae6fe11377",
      "name": "Voice or Text Message",
      "type": "n8n-nodes-base.switch",
      "position": [
        -740,
        -360
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "e9aab24f-0859-434b-8986-ce189ebd307d",
      "name": "Download Voice File",
      "type": "n8n-nodes-base.telegram",
      "position": [
        -520,
        -460
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "96e36864-d6c3-4baf-b89e-9dff5a3f77fa",
      "name": "Response user",
      "type": "n8n-nodes-base.telegram",
      "position": [
        800,
        -360
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "b51fb7c1-cb5a-43c0-bd6f-a28ca73756b8",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        480,
        -140
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "ccc7841a-8a29-4237-8ba4-3c65601a5ba1",
      "name": "Set text1",
      "type": "n8n-nodes-base.set",
      "position": [
        140,
        -460
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "1ea7deec-c934-4246-a8d7-6fdb4f2ea7f8",
      "name": "Input for debuging",
      "type": "n8n-nodes-base.set",
      "position": [
        -960,
        520
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "e6c26de9-2aa8-4222-b6f5-92d895698fc7",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1280,
        200
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "active": true,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "f6705a90-3a36-4e07-9a8c-2ff6efd77ebc",
  "connections": {
    "SETUP": {
      "main": [
        [
          {
            "node": "Choose Method",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Response user",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add Task": {
      "main": [
        [
          {
            "node": "Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set text": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Tasks": {
      "main": [
        [
          {
            "node": "Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set text1": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Transcribe": {
      "main": [
        [
          {
            "node": "Transribation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Choose Method": {
      "main": [
        [
          {
            "node": "Get Tasks",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Add Task",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Complete Task",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Complete Task",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Set Task Time",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Complete Task": {
      "main": [
        [
          {
            "node": "Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Task Time": {
      "main": [
        [
          {
            "node": "Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Transribation": {
      "main": [
        [
          {
            "node": "Set text1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "Voice or Text Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Input for debuging": {
      "main": [
        [
          {
            "node": "SETUP",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Voice File": {
      "main": [
        [
          {
            "node": "Transcribe",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Voice or Text Message": {
      "main": [
        [
          {
            "node": "Download Voice File",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Set text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Notion Tasks Manager Tool": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "When Executed by Another Workflow": {
      "main": [
        [
          {
            "node": "SETUP",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking \u2018Test workflow\u2019": {
      "main": [
        [
          {
            "node": "Input for debuging",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

This workflow creates a powerful AI assistant in Telegram that helps you manage your tasks in Notion. The assistant leverages OpenAI's language models to understand natural language commands, process voice messages, and maintain context through conversations.

Source: https://n8n.io/workflows/4142/ — original creator credit. Request a take-down →

More AI & RAG workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

AI & RAG

BoomerBobBot.TP. Uses agent, telegramTrigger, telegram, memoryBufferWindow. Event-driven trigger; 95 nodes.

Agent, Telegram Trigger, Telegram +10
AI & RAG

Digital marketers, content creators, social media managers, and businesses who want to use AI marketing automation for YouTube Shorts without spending hours on production. This AI workflow helps anyon

OpenAI, HTTP Request, OpenAI Chat +7
AI & RAG

Jarvis is a powerful multi-agent productivity assistant built in n8n. It works directly from Telegram and can understand both text messages and voice notes.

Telegram Trigger, Telegram, OpenAI +10
AI & RAG

> AI-powered nutrition assistant for Telegram — log meals, set goals, and get personalized daily reports with Google Sheets integration.

Telegram, Google Gemini, Google Gemini Chat +7
AI & RAG

Unlock the Power of Language with Personalized AI Learning! MOTION TUTOR is a revolutionary AI-powered language learning platform that adapts to your progress and guides you from basic vocabulary to c

Agent, Airtable Tool, OpenAI Chat +6