AI Telegram Task Manager with Notion Sync - n8n Workflow

Automate task creation, listing, and completion directly from Telegram using this advanced n8n workflow. It leverages OpenAI Agents, memory, and Notion integration for seamless productivity management.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

Markdown-formatted text:
Individuals or teams who manage their daily tasks in Notion.
Users seeking to integrate AI-powered commands into their chat apps (Telegram).
n8n developers interested in building complex AI agents and custom tools within an n8n workflow structure.
Anyone looking for productivity boosting n8n templates that handle both voice transcription and database operations.

Overview

Managing tasks often requires switching context between communication apps and productivity tools. This advanced n8n workflow solves this by establishing a conversational AI assistant directly within Telegram. The system automatically detects input (text or voice), transcribes voice messages using OpenAI, and routes the request to an n8n Agent. This Agent uses a specialized 'Notion Tasks Manager Tool' (itself an n8n workflow) to interact with your Notion database, allowing you to list, add, complete, or update tasks using natural language commands. This sophisticated n8n integration saves time and ensures tasks are captured immediately, maximizing productivity without ever leaving your chat application. It stands as a perfect example of what is possible using complex n8n node structures.

How it Works

Markdown-formatted text:


  1. Incoming Message (n8n Trigger): The n8n workflow starts with the Telegram Trigger node, listening for new messages.

  2. Input Type Check: A Switch n8n node determines if the input is a text message or a voice recording.

  3. Voice Processing (If applicable): If a voice message is received, the workflow uses a Telegram n8n node to download the file, followed by an OpenAI node for audio transcription (Whisper).

  4. Input Normalization: The resulting text (either directly from the message or the transcription) is set as the primary input variable.

  5. AI Agent Execution: The core logic runs through the AI Agent n8n node. This agent utilizes the OpenAI Chat Model (GPT-4.1-mini) for reasoning and conversational memory (Simple Memory n8n node) keyed by chat ID.

  6. Tool Use: The AI Agent determines if the user's request requires database interaction. If so, it calls the internal 'Notion Tasks Manager Tool'. This tool is itself a secondary execution path within this n8n workflow.

  7. Task Manager Logic: When the tool is executed, the workflow branches via the When Executed by Another Workflow n8n trigger. A Switch node ('Choose Method') routes the request based on the method dictated by the AI (e.g., addtask, listtasks).

  8. Notion Interaction: Specific Notion n8n nodes perform the requested database operation (e.g., Add Task, Get Tasks, Complete Task).

  9. Formatted Response: The results from Notion are processed and formatted (Code n8n node) and returned to the AI Agent.

  10. User Output: The final conversational response generated by the AI Agent is sent back to the user through a Telegram n8n node ('Response user'). This robust n8n workflow structure ensures smooth handling of complex commands.

Installation Guide

Markdown-formatted text:


  1. Import the n8n Workflow: Copy the provided JSON data and import it into your n8n instance using the 'New' -> 'Import from JSON' option.

  2. Telegram Setup: Configure the 'Telegram Trigger' n8n node and the Telegram action nodes ('Transribation', 'Response user') with your Bot API credentials. Ensure the webhook is correctly set up for the n8n trigger.

  3. OpenAI Credentials: Provide valid API keys for the OpenAI credentials used by the 'OpenAI Chat Model' and 'Transcribe' n8n node.

  4. Notion Integration: Set up the 'Notion tasks' credentials, ensuring the integration has access to your target database.

  5. Database ID Setup: Locate the 'SETUP' n8n node. Update the NOTIONDATABASEID value (currently 1f30e2a31ff0808c9c64ea31b24e1bba) with the actual ID of your Notion task database. This is a crucial step for this n8n template to function.

  6. Activate: Save and activate the n8n workflow. The Telegram n8n trigger will now be active and listening for messages.

Node Details

Markdown-formatted text:

Telegram Trigger: Function: Initiates the entire n8n workflow upon receiving a message update in Telegram. Key Configuration: Set to listen for message updates.
Switch (Voice or Text Message): Function: Determines the flow based on whether the incoming Telegram message contains message.voice or message.text.
OpenAI (Transcribe): Function: Used to convert the downloaded voice file into text using the Whisper model. Key Configuration: Resource is set to audio, Operation is transcribe.
AI Agent: Function: The central control flow n8n node. It uses reasoning to decide if it needs to answer directly or utilize the task management tool. Key Configuration: Input text is dynamically set using ={{ $json.text }}.
OpenAI Chat Model: Function: Serves as the large language model (LLM) for the AI Agent. Key Configuration: Model used is specified as gpt-4.1-mini.
Simple Memory: Function: Provides conversational context for the AI Agent by storing previous interactions, ensuring continuity. Key Configuration: Session Key is dynamically generated using the Telegram chat ID: ={{ $('Telegram Trigger').first().json.message.chat.id }}.
Notion Tasks Manager Tool: Function: An essential LangChain n8n node that defines the interface for the AI to interact with the Notion database, outlining methods like addtask, listtasks, and complete_task.
When Executed by Another Workflow (n8n Trigger): Function: This unique n8n trigger enables the workflow to call itself as a tool, allowing the AI Agent to execute specific database operations.


  • Notion (Add Task / Get Tasks / Complete Task): Function: These Notion n8n nodes perform the actual CRUD operations (Create, Read, Update) on the designated database, integrating the output seamlessly back into the n8n workflow.

Related n8n Workflows

Paid

Nodes: 14 Nodes
Updated: December 26 2025
View all
Created by

Featured*