Automatización de tareas de Telegram a Notion

Intermedio

Este es unContent Creation, Multimodal AIflujo de automatización del dominio deautomatización que contiene 15 nodos.Utiliza principalmente nodos como If, Notion, Telegram, TelegramTrigger, LmChatGoogleGemini. Usar Gemini AI y Approval para extraer tareas de mensajes de Telegram a Notion

Requisitos previos
  • Clave de API de Notion
  • Bot Token de Telegram
  • Clave de API de Google Gemini
Vista previa del flujo de trabajo
Visualización de las conexiones entre nodos, con soporte para zoom y panorámica
Exportar flujo de trabajo
Copie la siguiente configuración JSON en n8n para importar y usar este flujo de trabajo
{
  "id": "fzx7RMobAxKnsbUd",
  "meta": {
    "instanceId": "733e9abfd67f4f2666a76557fe5d7598ae7705aa1e6ff21081cb972137b3c8b4",
    "templateCredsSetupCompleted": true
  },
  "name": "Telegram to Notion Task Automation",
  "tags": [
    {
      "id": "JUK6Xu1Fz0PWwGzI",
      "name": "active",
      "createdAt": "2025-10-04T12:29:09.131Z",
      "updatedAt": "2025-10-04T12:29:09.131Z"
    }
  ],
  "nodes": [
    {
      "id": "2abd8dfa-9a30-40e9-a6f6-00dfebfb0a8c",
      "name": "Modelo de chat Google Gemini",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        -192,
        128
      ],
      "parameters": {
        "options": {},
        "modelName": "models/gemini-2.5-flash-lite"
      },
      "credentials": {
        "googlePalmApi": {
          "id": "leqZBEL1m8HX7yLq",
          "name": "skcet (Mooku) - Gemini"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "b628bda1-d9d4-4a08-8daf-92df2068b20b",
      "name": "Nota adhesiva",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -640,
        -176
      ],
      "parameters": {
        "color": 5,
        "width": 304,
        "height": 336,
        "content": "## ⚡ Starts on new Telegram message.\nTriggers the workflow when a new Telegram message arrives. "
      },
      "typeVersion": 1
    },
    {
      "id": "5fc725da-6bed-4db6-a366-48cd5c0a0c4e",
      "name": "Nota adhesiva1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -256,
        -240
      ],
      "parameters": {
        "color": 5,
        "width": 352,
        "height": 512,
        "content": "## 🧠 Uses AI (Gemini) to return TaskName & TaskDue.\nThis node uses an AI model (e.g., Gemini) to extract the task name and due date from the Telegram message.  \nYou can easily switch to any other AI model you prefer.\n"
      },
      "typeVersion": 1
    },
    {
      "id": "cb518f25-0918-4c19-b56e-c5d3f4d0f459",
      "name": "Nota adhesiva2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        144,
        -256
      ],
      "parameters": {
        "color": 5,
        "width": 304,
        "height": 448,
        "content": "## 📩 Sends extracted task; waits for Approve or Decline.\nSends a message with the extracted task name and due date.  \nWaits for your response you can **approve** or **decline** the task."
      },
      "typeVersion": 1
    },
    {
      "id": "0395e170-03d3-44a2-86a2-2486587a60c4",
      "name": "Nota adhesiva3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        496,
        -224
      ],
      "parameters": {
        "color": 5,
        "width": 320,
        "height": 384,
        "content": "## ⚖️ If approved → create task. If declined → notify.\nChecks if the user approved or declined the task.  \nIf **approved**, the workflow continues; if **declined**, it redirects to another step.\n"
      },
      "typeVersion": 1
    },
    {
      "id": "63aa0097-e2ad-40d5-abf0-103f132305d3",
      "name": "Nota adhesiva4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        896,
        48
      ],
      "parameters": {
        "color": 5,
        "height": 368,
        "content": "## 📩 Decline Notification  \nSends a Telegram message to the user notifying them that they **declined the task** and no task was created in Notion.\n"
      },
      "typeVersion": 1
    },
    {
      "id": "6ccb7215-746b-4449-b8ba-a535566bb04f",
      "name": "Nota adhesiva5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        896,
        -304
      ],
      "parameters": {
        "color": 5,
        "width": 512,
        "height": 320,
        "content": "## 📝 Create Notion Task  \nIf the task is approved, this node creates a new task in Notion using the extracted **task name** and **due date**.  \nAfter creation, it triggers the next node to send a Telegram notification.\n"
      },
      "typeVersion": 1
    },
    {
      "id": "c1411a5a-f2a1-42cd-8c4a-708f2040a982",
      "name": "Telegram New Message Trigger",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -544,
        -32
      ],
      "webhookId": "eb1fee94-6a07-46f5-baae-0a3753e4a8be",
      "parameters": {
        "updates": [
          "message"
        ],
        "additionalFields": {
          "chatIds": "YOUR_TELEGRAM_CHAT_ID"
        }
      },
      "credentials": {
        "telegramApi": {
          "id": "n0Vw3Lfnk23X3KQN",
          "name": "n8n_active_bot - Telegram"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "1214ca68-7ced-4a27-b4b5-30caad364092",
      "name": "AI Extract: TaskName & TaskDue",
      "type": "@n8n/n8n-nodes-langchain.informationExtractor",
      "position": [
        -192,
        -32
      ],
      "parameters": {
        "text": "={{ $json.message.text }}",
        "options": {},
        "attributes": {
          "attributes": [
            {
              "name": "TaskName",
              "required": true,
              "description": "This is the name of the task. The task name should be in the title case."
            },
            {
              "name": "TaskDue",
              "type": "date",
              "description": "This is the due date of the task."
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "093e6dab-b137-4d80-8bff-09ff03f1018b",
      "name": "Send message and wait for response (Approve/Decline)",
      "type": "n8n-nodes-base.telegram",
      "position": [
        240,
        -32
      ],
      "webhookId": "e8b05b82-08e2-4462-95b1-9d46a3c327c3",
      "parameters": {
        "chatId": "={{ $('Telegram New Message Trigger').item.json.message.from.id }}",
        "message": "=Task Name: {{ $json.output.TaskName }}\nDue Date: {{ $json.output.TaskDue }}",
        "options": {
          "appendAttribution": false
        },
        "operation": "sendAndWait",
        "approvalOptions": {
          "values": {
            "approvalType": "double",
            "approveLabel": "Approve",
            "disapproveLabel": "Decline"
          }
        }
      },
      "credentials": {
        "telegramApi": {
          "id": "n0Vw3Lfnk23X3KQN",
          "name": "n8n_active_bot - Telegram"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "a5b24cc6-1ba0-400f-a218-c5ddcbff2574",
      "name": "Approval Check (If Approved?)",
      "type": "n8n-nodes-base.if",
      "position": [
        592,
        -32
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "9d302e0c-44e2-4b9e-a3ed-8d21e67945ed",
              "operator": {
                "type": "boolean",
                "operation": "true",
                "singleValue": true
              },
              "leftValue": "={{ $json.data.approved }}",
              "rightValue": ""
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "80e06ae0-4eb1-43fa-8215-828500e1a7df",
      "name": "Notion: Create Task (Page)",
      "type": "n8n-nodes-base.notion",
      "position": [
        976,
        -160
      ],
      "parameters": {
        "title": "={{ $('AI Extract: TaskName & TaskDue').item.json.output.TaskName }}",
        "options": {},
        "resource": "databasePage",
        "databaseId": {
          "__rl": true,
          "mode": "list",
          "value": "282c6fb7-beaa-80b5-9051-ce57efc79002",
          "cachedResultUrl": "https://www.notion.so/YOUR_NOTION_DATABASE_ID",
          "cachedResultName": "Tasks Testing"
        },
        "propertiesUi": {
          "propertyValues": [
            {
              "key": "Date|date",
              "date": "={{ $('AI Extract: TaskName & TaskDue').item.json.output.TaskDue }}",
              "includeTime": false
            }
          ]
        }
      },
      "credentials": {
        "notionApi": {
          "id": "lrP3yNJ79AutF43p",
          "name": "ABHIMAN HQ - Notion"
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "8c629f2a-04bf-4ffe-960f-6ca107f6f13d",
      "name": "Notify: Task Created (Telegram)",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1184,
        -160
      ],
      "webhookId": "1c5bee4c-59bd-4bc5-9091-7db21831d653",
      "parameters": {
        "text": "=✅ Task created in Notion.",
        "chatId": "={{ $('Telegram New Message Trigger').item.json.message.from.id }}",
        "additionalFields": {
          "appendAttribution": false
        }
      },
      "credentials": {
        "telegramApi": {
          "id": "n0Vw3Lfnk23X3KQN",
          "name": "n8n_active_bot - Telegram"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "a5ff4f45-4ef8-4474-992b-a73b5983b462",
      "name": "Notify: Declined - No Task (Telegram)",
      "type": "n8n-nodes-base.telegram",
      "position": [
        960,
        224
      ],
      "webhookId": "1c5bee4c-59bd-4bc5-9091-7db21831d653",
      "parameters": {
        "text": "=❌ Task not created in Notion.",
        "chatId": "={{ $('Telegram New Message Trigger').item.json.message.from.id }}",
        "additionalFields": {
          "appendAttribution": false
        }
      },
      "credentials": {
        "telegramApi": {
          "id": "n0Vw3Lfnk23X3KQN",
          "name": "n8n_active_bot - Telegram"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "5f21dcbb-1d6d-4b16-8395-84a884a5e4fb",
      "name": "Nota adhesiva6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1232,
        -336
      ],
      "parameters": {
        "color": 7,
        "width": 544,
        "height": 688,
        "content": "## 🔧 Setup & Requirements\n- Gemini API key (add as Google Palm / Gemini credential in n8n).  \n- Notion integration + database with properties:  \n  - **TaskName** (Title) — stores the task name.  \n  - **TaskDue** (Date) — stores the due date (use ISO `YYYY-MM-DD`).  \n- Telegram bot token (add as Telegram credential in n8n).  \n- A running n8n instance (cloud or self-hosted).\n\n## Quick setup\n1. Add credentials in n8n: Google Palm / Gemini, Notion, and Telegram.  \n2. Open the **Notion: Create Task (Page)** node and set **Database ID** to `YOUR_NOTION_DATABASE_ID`.  \n3. Open the **Telegram New Message Trigger** node → Additional Fields → set `chatIds` to `YOUR_TELEGRAM_CHAT_ID` to restrict the trigger to your chat only.  \n4. Save and test with a sample message.\n\n## Security notes\n- Do **not** hardcode API keys or tokens in HTTP or node fields — always use n8n credential stores.  \n- Replace all placeholders (`YOUR_NOTION_DATABASE_ID`, `YOUR_TELEGRAM_CHAT_ID`, credential names) before sharing the workflow.\n\n## Quick test example\nSend to your bot: `Remind me to submit the report on 26th october 2025` → approve the message → verify a Notion task appears with Title = TaskName and Date = TaskDue.\n"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "5463694c-b820-446b-be0d-e4f088e4b2eb",
  "connections": {
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "1214ca68-7ced-4a27-b4b5-30caad364092",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "80e06ae0-4eb1-43fa-8215-828500e1a7df": {
      "main": [
        [
          {
            "node": "8c629f2a-04bf-4ffe-960f-6ca107f6f13d",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "c1411a5a-f2a1-42cd-8c4a-708f2040a982": {
      "main": [
        [
          {
            "node": "1214ca68-7ced-4a27-b4b5-30caad364092",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "a5b24cc6-1ba0-400f-a218-c5ddcbff2574": {
      "main": [
        [
          {
            "node": "80e06ae0-4eb1-43fa-8215-828500e1a7df",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "a5ff4f45-4ef8-4474-992b-a73b5983b462",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "1214ca68-7ced-4a27-b4b5-30caad364092": {
      "main": [
        [
          {
            "node": "093e6dab-b137-4d80-8bff-09ff03f1018b",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "093e6dab-b137-4d80-8bff-09ff03f1018b": {
      "main": [
        [
          {
            "node": "a5b24cc6-1ba0-400f-a218-c5ddcbff2574",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Preguntas frecuentes

¿Cómo usar este flujo de trabajo?

Copie el código de configuración JSON de arriba, cree un nuevo flujo de trabajo en su instancia de n8n y seleccione "Importar desde JSON", pegue la configuración y luego modifique la configuración de credenciales según sea necesario.

¿En qué escenarios es adecuado este flujo de trabajo?

Intermedio - Creación de contenido, IA Multimodal

¿Es de pago?

Este flujo de trabajo es completamente gratuito, puede importarlo y usarlo directamente. Sin embargo, tenga en cuenta que los servicios de terceros utilizados en el flujo de trabajo (como la API de OpenAI) pueden requerir un pago por su cuenta.

Información del flujo de trabajo
Nivel de dificultad
Intermedio
Número de nodos15
Categoría2
Tipos de nodos7
Descripción de la dificultad

Adecuado para usuarios con experiencia intermedia, flujos de trabajo de complejidad media con 6-15 nodos

Autor
Abhiman G S

Abhiman G S

@abhimangs

Automation consultant helping creators and small teams streamline their workflows using Notion and n8n. I build systems that save time, boost productivity, and keep everything running smoothly. Check my LinkedIn to connect or collaborate on custom automations.

Enlaces externos
Ver en n8n.io

Compartir este flujo de trabajo

Categorías

Categorías: 34