Skip to main content

Email-to-task automation with Mistral AI (Gmail/Outlook to Google Tasks/Microsoft To Do)

Workflow preview

Workflow preview
100%
Email-to-task automation with Mistral AI (Gmail/Outlook to Google Tasks/Microsoft To Do) preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Description 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 A...

Best for

  • Personal Productivity automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.googletaskstool, n8n-nodes-base.microsofttodotool, @n8n/n8n-nodes-langchain.memorybufferwindow, @n8n/n8n-nodes-langchain.lmchatmistralcloud, @n8n/n8n-nodes-langchain.agenttool, @n8n/n8n-nodes-langchain.agent, n8n-nodes-base.gmail, n8n-nodes-base.microsoftoutlook

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Jordan Hoyle.

Original n8n.io source

1.1 Workflow description

Title
Email-to-task automation with Mistral AI (Gmail/Outlook to Google Tasks/Microsoft To Do)
Workflow name
Email-to-task automation with Mistral AI (Gmail/Outlook to Google Tasks/Microsoft To Do)

Description

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.

This advanced workflow utilizes a powerful Mistral Large AI Agent to orchestrate your daily task management. It operates by fetching recent emails, structuring the data, determining the correct task manager, and delegating the execution to specialized sub-agents. It's built with rate-limiting in mind, ensuring efficient and reliable operation across your connected services.

✨ Features

  • Unified Email Input: Automatically fetches and merges emails from Gmail and Microsoft Outlook received within the last 24 hours.

  • Centralized Data Storage: Stores and deduplicates raw email data in an n8n Data Table, converting HTML content to plain text for AI processing.

  • Intelligent Task Extraction: A Main Task Orchestration Agent (powered by Mistral Large) reads the email data, identifies actionable tasks, and structures them with a Title, Due Date, Notes, and a Target System (Google Tasks or Microsoft To Do).

  • Dedicated Task Execution: Leverages two specialized sub-agents (Google Tasks Agent and Microsoft To Do Agent) that handle the creation or updating of tasks, ensuring API integrity and focused execution.

  • Scalable and Safe: Implements batch processing (max 5 tasks) and mandatory 5-second delays between sub-agent calls to prevent API rate limits and token overruns.

  • Conversation History: Uses Memory Buffer Window nodes to maintain context within the AI agents.

🛠️ How to Set Up

  1. Credentials: Connect your credentials for Gmail, Microsoft Outlook, Google Tasks, Microsoft To Do, and the Mistral Cloud Chat Model.

  2. Data Table: Ensure the 'To Do Database' Data Table exists.

  3. Customize AI Agents:

    • In the Tasks AI Agent (the main orchestrator), review the system prompt and verify the mandatory "Jordan Hoyle" filter. Change this to your name or the name of the person whose tasks are being managed.

    • In the Google Tasks Agent and Microsoft To Do Agent nodes, ensure the Task List ID fields are correctly set to your desired task lists.

    • Schedule: Set the workflow to run on a schedule (e.g., once daily) or run it manually.

This workflow is the perfect solution for anyone overwhelmed by managing tasks scattered across their inbox and multiple to-do apps, bringing AI-driven order to your digital life!

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Create task1

Type / Role
n8n-nodes-base.googleTasksTool - googleTasksTool
Config choices
Version 1

Block 2 - Delete task1

Type / Role
n8n-nodes-base.googleTasksTool - googleTasksTool
Config choices
Version 1

Block 3 - Update task1

Type / Role
n8n-nodes-base.googleTasksTool - googleTasksTool
Config choices
Version 1

Block 4 - Get many tasks1

Type / Role
n8n-nodes-base.googleTasksTool - googleTasksTool
Config choices
Version 1

Block 5 - Get completed task1

Type / Role
n8n-nodes-base.googleTasksTool - googleTasksTool
Config choices
Version 1

Block 6 - Create task

Type / Role
n8n-nodes-base.microsoftToDoTool - microsoftToDoTool
Config choices
Version 1

Block 7 - Delete task

Type / Role
n8n-nodes-base.microsoftToDoTool - microsoftToDoTool
Config choices
Version 1

Block 8 - Update task

Type / Role
n8n-nodes-base.microsoftToDoTool - microsoftToDoTool
Config choices
Version 1

Block 9 - Get Many Tasks

Type / Role
n8n-nodes-base.microsoftToDoTool - microsoftToDoTool
Config choices
Version 1

Block 10 - Simple Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 11 - Simple Memory1

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 12 - Mistral Cloud Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatMistralCloud - lmChatMistralCloud
Config choices
Version 1

Block 13 - Simple Memory2

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 14 - Google Tasks Agent

Type / Role
@n8n/n8n-nodes-langchain.agentTool - agentTool
Config choices
Version 2.2

Block 15 - Microsoft To Do Agent

Type / Role
@n8n/n8n-nodes-langchain.agentTool - agentTool
Config choices
Version 2.2

Block 16 - Mistral Cloud Chat Model1

Type / Role
@n8n/n8n-nodes-langchain.lmChatMistralCloud - lmChatMistralCloud
Config choices
Version 1

Block 17 - Mistral Cloud Chat Model2

Type / Role
@n8n/n8n-nodes-langchain.lmChatMistralCloud - lmChatMistralCloud
Config choices
Version 1

Block 18 - Tasks AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2

Block 19 - Get many messages

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 20 - Get many messages1

Type / Role
n8n-nodes-base.microsoftOutlook - microsoftOutlook
Config choices
Version 2

Block 21 - Code in JavaScript

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 22 - Get row(s) in Data table

Type / Role
n8n-nodes-base.dataTableTool - dataTableTool
Config choices
Version 1

Block 23 - Merge

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 24 - Upsert row(s)

Type / Role
n8n-nodes-base.dataTable - dataTable
Config choices
Version 1

Showing the first 24 of 35 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Email-to-task automation with Mistral AI (Gmail/Outlook to Google Tasks/Microsoft To Do)
Complexity advanced
Nodes 35
Categories Personal Productivity, AI Summarization
Author Jordan Hoyle
Published 26 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/10186/10186.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Email-to-task automation with Mistral AI (Gmail/Outlook to Google Tasks/Microsoft To Do) do?

Description 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 A...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Personal Productivity, AI Summarization use case.