AutomationFlowsAI & RAG › Email-to-task Automation with AI (gmail/outlook to Google Tasks/microsoft to Do)

Email-to-task Automation with AI (gmail/outlook to Google Tasks/microsoft to Do)

ByJordan Hoyle @jordanhoyle on n8n.io

Automate your personal productivity by transforming actionable emails from Gmail and Outlook into structured tasks within Google Tasks or Microsoft To Do, all managed by a multi-agent AI system.

Cron / scheduled trigger★★★★★ complexityAI-powered35 nodesGoogle Tasks ToolMicrosoft To Do ToolMemory Buffer WindowLm Chat Mistral CloudAgent ToolAgentGmailMicrosoft Outlook
AI & RAG Trigger: Cron / scheduled Nodes: 35 Complexity: ★★★★★ AI nodes: yes Added:

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

This workflow follows the Agent → Agenttool 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
{
  "meta": {
    "templateCredsSetupCompleted": false
  },
  "nodes": [
    {
      "id": "e441807f-9188-4fa1-878c-58a2c36b4dd5",
      "name": "Create task1",
      "type": "n8n-nodes-base.googleTasksTool",
      "position": [
        -1488,
        896
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "dab15547-8b7f-449f-8d3b-d30286352225",
      "name": "Delete task1",
      "type": "n8n-nodes-base.googleTasksTool",
      "position": [
        -1376,
        880
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "819ac3c9-5b6f-4f2b-a33a-22de4608dea8",
      "name": "Update task1",
      "type": "n8n-nodes-base.googleTasksTool",
      "position": [
        -1264,
        896
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "6d69d1bb-c3b0-4125-868e-7aa726d8d917",
      "name": "Get many tasks1",
      "type": "n8n-nodes-base.googleTasksTool",
      "position": [
        -1152,
        880
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "a324b41f-53c6-4fab-8adc-553d145ccf3e",
      "name": "Get completed task1",
      "type": "n8n-nodes-base.googleTasksTool",
      "position": [
        -1040,
        896
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "d4b85278-70c1-4d91-b776-d6662481dc7e",
      "name": "Create task",
      "type": "n8n-nodes-base.microsoftToDoTool",
      "position": [
        -592,
        896
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "76866e85-0d04-4784-aa7e-1da748f20126",
      "name": "Delete task",
      "type": "n8n-nodes-base.microsoftToDoTool",
      "position": [
        -480,
        880
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "2207ae03-9014-464a-b557-248161f0d1de",
      "name": "Update task",
      "type": "n8n-nodes-base.microsoftToDoTool",
      "position": [
        -368,
        896
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "d2b295eb-1e63-48db-8741-8e8daf4151eb",
      "name": "Get Many Tasks",
      "type": "n8n-nodes-base.microsoftToDoTool",
      "position": [
        -256,
        880
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "45bcdec1-2a8c-4048-b11a-427e8f3b437c",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        -1328,
        528
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "9514b8a9-7b12-47cd-ba75-e8497eac6b8b",
      "name": "Simple Memory1",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        -704,
        880
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "21b9ce43-123d-49b2-9a0e-01413da44e29",
      "name": "Mistral Cloud Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatMistralCloud",
      "position": [
        -1488,
        528
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "57275573-9c83-4363-9348-812c2f8cc1ee",
      "name": "Simple Memory2",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        -1600,
        880
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "9c5674ba-5560-435b-b125-169a9e9a113c",
      "name": "Google Tasks Agent",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        -1184,
        672
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "004cc0c2-e37e-418b-ac6b-62f86945414a",
      "name": "Microsoft To Do Agent",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        -832,
        672
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "4d3084a5-471e-4ed7-bde6-4438a5aca73e",
      "name": "Mistral Cloud Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatMistralCloud",
      "position": [
        -1728,
        896
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "96834390-9ef1-4b1d-9fa1-a5c9ffbd1132",
      "name": "Mistral Cloud Chat Model2",
      "type": "@n8n/n8n-nodes-langchain.lmChatMistralCloud",
      "position": [
        -832,
        896
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "522a7b94-5175-4410-b291-d05b96ecaa02",
      "name": "Tasks AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "onError": "continueErrorOutput",
      "position": [
        -1216,
        320
      ],
      "parameters": {},
      "retryOnFail": true,
      "typeVersion": 2
    },
    {
      "id": "e81c0be6-8635-4ab6-914d-65b98800dd38",
      "name": "Get many messages",
      "type": "n8n-nodes-base.gmail",
      "position": [
        -1984,
        224
      ],
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "72b180e6-330b-4846-83b2-6130c27a2c9c",
      "name": "Get many messages1",
      "type": "n8n-nodes-base.microsoftOutlook",
      "position": [
        -1984,
        384
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "a1453d3a-3d3a-4bbb-bc64-17d699ac311d",
      "name": "Code in JavaScript",
      "type": "n8n-nodes-base.code",
      "position": [
        -1808,
        384
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "25430738-ecfe-4d9f-a15b-be04834875b4",
      "name": "Get row(s) in Data table",
      "type": "n8n-nodes-base.dataTableTool",
      "position": [
        -1184,
        528
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "740ecbb6-4283-4423-b76c-ae8b2a38a504",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        -1392,
        320
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "4e31c404-9fa3-4699-8756-aa10ac247e59",
      "name": "Upsert row(s)",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        -1632,
        224
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "6659169a-229e-4a6f-8eae-fe002c7a2bce",
      "name": "Upsert row(s)1",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        -1632,
        384
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "cd554ef7-28e9-4148-880f-cfe60a84c268",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2304,
        112
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "07077813-39cd-46d7-8814-074350482f7a",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2016,
        208
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "8953ea30-4ff8-48f2-8ced-6ab25963756f",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1776,
        656
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "36ed050f-5897-426a-8203-e6192b6e8850",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -880,
        656
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "ed0bb970-9bdb-4b14-9928-f4669c44af75",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1136,
        160
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "5d55528e-49dd-491f-9f7e-fe8d29430faf",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1072,
        1056
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "de57cf7c-1906-4e9d-861c-8fda6cfdd593",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1824,
        112
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "921d69cc-bbba-4106-9f75-8e2080a55f97",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2480,
        720
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "3ad44b74-c9eb-4d78-aed5-36624e615ce7",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -624,
        432
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "02a5159a-9766-4a13-88c2-5a238ad3b5ee",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -2224,
        304
      ],
      "parameters": {},
      "typeVersion": 1.2
    }
  ],
  "connections": {
    "Merge": {
      "main": [
        [
          {
            "node": "Tasks AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create task": {
      "ai_tool": [
        [
          {
            "node": "Microsoft To Do Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Delete task": {
      "ai_tool": [
        [
          {
            "node": "Microsoft To Do Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Update task": {
      "ai_tool": [
        [
          {
            "node": "Microsoft To Do Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Create task1": {
      "ai_tool": [
        [
          {
            "node": "Google Tasks Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Delete task1": {
      "ai_tool": [
        [
          {
            "node": "Google Tasks Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Update task1": {
      "ai_tool": [
        [
          {
            "node": "Google Tasks Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "Tasks AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Upsert row(s)": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Many Tasks": {
      "ai_tool": [
        [
          {
            "node": "Microsoft To Do Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory1": {
      "ai_memory": [
        [
          {
            "node": "Microsoft To Do Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory2": {
      "ai_memory": [
        [
          {
            "node": "Google Tasks Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Upsert row(s)1": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Get many tasks1": {
      "ai_tool": [
        [
          {
            "node": "Google Tasks Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Get many messages",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get many messages1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get many messages": {
      "main": [
        [
          {
            "node": "Upsert row(s)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code in JavaScript": {
      "main": [
        [
          {
            "node": "Upsert row(s)1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get many messages1": {
      "main": [
        [
          {
            "node": "Code in JavaScript",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Tasks Agent": {
      "ai_tool": [
        [
          {
            "node": "Tasks AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Get completed task1": {
      "ai_tool": [
        [
          {
            "node": "Google Tasks Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Microsoft To Do Agent": {
      "ai_tool": [
        [
          {
            "node": "Tasks AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s) in Data table": {
      "ai_tool": [
        [
          {
            "node": "Tasks AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Mistral Cloud Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Tasks AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Mistral Cloud Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Google Tasks Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Mistral Cloud Chat Model2": {
      "ai_languageModel": [
        [
          {
            "node": "Microsoft To Do Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}
Pro

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

About this workflow

Automate your personal productivity by transforming actionable emails from Gmail and Outlook into structured tasks within Google Tasks or Microsoft To Do, all managed by a multi-agent AI system.

Source: https://n8n.io/workflows/10186/ — 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

Who is this for? Agencies, consultants, and service providers who conduct discovery calls and need to quickly turn conversations into professional proposals.

Tool Think, Tool Calculator, Agent Tool +18
AI & RAG

This workflow automates end-to-end sustainability lifecycle management for corporate sustainability teams, ESG governance officers, and circular economy programme leads. It addresses the challenge of

Form Trigger, Agent, OpenAI Chat +11
AI & RAG

This workflow serves as a comprehensive "Workflow Nodes SEO & Documentation Generator". It uses AI to analyze, rename, and document n8n workflows, offering a streamlined way to optimize workflow reada

Form Trigger, n8n, Output Parser Autofixing +11
AI & RAG

This workflow automates end-to-end ESG (Environmental, Social, and Governance) sustainability reporting for enterprise sustainability teams, compliance officers, and green governance leads. It solves

Agent, OpenAI Chat, Output Parser Structured +12
AI & RAG

This n8n workflow automates the daily generation of comprehensive analytics reports from multiple websites, processes them using OpenAI's powerful language models, and then delivers the insights direc

Memory Buffer Window, Google Analytics, Agent +6