← All N8N workflows
AI & researchAgentEmail Read ImapGmailIfOpenAI Chat Model

Email mailbox as Todoist tasks

Configured with Agent, Email Read Imap, Gmail, OpenAI Chat Model, and additional nodes. Review the connections and setup before adapting this template.

Workflow preview
TriggerWhen clicking ‘Testworkflow’Manual TriggerMessagingMark As ReadGmailMessagingStarGmailMessagingGet Starred From InboxGmailMessagingGet Unread From InboxGmailRoutingIf Task Not ExistIfAI & modelsOpenAI Chat ModelOpenAI Chat ModelTransformStructure OutputTodoist ReadyOutput Parser StructuredRoutingIf AI respondedproperlyIfIntegrationCreate Todoist TaskTodoistMessagingGet Full MessageGmailAI & modelsSummarize MessageAgentTransformEnrich Emails WithTasksMergeTransformEnrich Tasks withEmailsMergeRoutingIf Email Unstarred (NotExist)IfIntegrationClose TaskTodoistMessagingEmail Trigger (IMAP)Email Read ImapTriggerSchedule TriggerSchedule TriggerRoutingNo Operation, donothingNo OpTransformMerge Starred andUnread MessagesMergeIntegrationGet Open TasksTodoist

Node categories in this workflow

  • Trigger
  • Messaging
  • Routing
  • AI & models
  • Transform
  • Integration

Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.

Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.

How it works

The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.

Workflow node names, types, and operations
NodeCategoryTypeOperation
When clicking ‘Test workflow’TriggerManual TriggerSee node parameters
Mark As ReadMessagingGmailmarkAsRead
StarMessagingGmailaddLabels
Get Starred From InboxMessagingGmailgetAll
Get Unread From InboxMessagingGmailgetAll
If Task Not ExistRoutingIfSee node parameters
OpenAI Chat ModelAI & modelsOpenAI Chat ModelSee node parameters
Structure Output Todoist ReadyTransformOutput Parser StructuredSee node parameters
If AI responded properlyRoutingIfSee node parameters
Create Todoist TaskIntegrationTodoistSee node parameters
Get Full MessageMessagingGmailget
Summarize MessageAI & modelsAgentSee node parameters
Enrich Emails With TasksTransformMergeSee node parameters
Enrich Tasks with EmailsTransformMergeSee node parameters
If Email Unstarred (Not Exist)RoutingIfSee node parameters
Close TaskIntegrationTodoistclose
Email Trigger (IMAP)MessagingEmail Read ImapSee node parameters
Schedule TriggerTriggerSchedule TriggerSee node parameters
No Operation, do nothingRoutingNo OpSee node parameters
Merge Starred and Unread MessagesTransformMergeSee node parameters
Get Open TasksIntegrationTodoistgetAll

Setup

  1. Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
  2. Connect your own credentials through n8n’s credential store. Replace REPLACE_WITH_* values with your resource identifiers.
  3. Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
  4. Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.

Requirements

An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.

Credential types declared in the source

  • gmailOAuth2
  • imap
  • openAiApi
  • todoistApi

Workflow notes

Select Trigger

Select Trigger

This workflow will work with many triggers

Read and Star

Read and Star

Mark messages as Read and add Star to them You can delete this section if you don't want to make this happen automatically to your emails

Close Task

Close Task

If Email was Unstarred manually by you, then we can probably close task, so we are closing it

Make New Task in Todoist

Make New Task in Todoist

If there is no task on Todoist with same subject as your either starred or unread message, then it's time to create one. But to make it easier for you to close tasks and emails, let AI help you out. AI not only summarizes message. It also proposes actions you should take or answers how you should reply to this email.

Email mailbox as Todoist tasks

Email mailbox as Todoist tasks

Purpose and structure

This folder contains the Email mailbox as Todoist tasks workflow. Its executable nodes use agent, emailReadImap, gmail, if, lmChatOpenAi, manualTrigger, merge, noOp, outputParserStructured, scheduleTrigger, todoist. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.

Setup

Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.

Entry points

When clicking ‘Test workflow’, Schedule Trigger

Verification

Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.

Attribution

https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Todoist/1749_Todoist_Schedule_Send_Scheduled.json MIT; preserve source notices.

More in AI & research