Automation library · AI assistants

Parse Gmail inbox and transform into Todoist tasks with OpenAI

Started by a clock, and works across Email and Gmail. It hands the judgement calls to OpenAI. 21 steps, 3 branches: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAI

21 stepsLarge: read it before trusting it with anything live
3Branches: places the flow splits
0Loops or waits
2Services it connects to

The flow

Starts it 2Model 3Logic 7Service 9

The steps in the order they run, from what starts it.

  1. 1When clicking ‘Test workflow’Manual triggerStarts it
  2. 2OpenAI Chat ModelLm Chat Open AiModel
  3. 3Structure Output Todoist ReadyOutput Parser StructuredModel
  4. 4Email Trigger (IMAP)Email Read ImapService
  5. 5Schedule TriggerSchedule triggerStarts it
  6. 6No Operation, do nothingNo OpLogic
  7. 7Summarize MessageAgentModel
  8. 8Get Unread From InboxGmailService
  9. 9Get Starred From InboxGmailService
  10. 10Get Open TasksTodoistService
  11. 11If AI responded properlyIfLogic
  12. 12Mark As ReadGmailService
  13. 13Merge Starred and Unread MessagesMergeLogic
  14. 14Enrich Emails With TasksMergeLogic
  15. 15Enrich Tasks with EmailsMergeLogic
  16. 16Create Todoist TaskTodoistService
  17. 17StarGmailService
  18. 18If Task Not ExistIfLogic
  19. 19If Email Unstarred (Not Exist)IfLogic
  20. 20Get Full MessageGmailService
  21. 21Close TaskTodoistService

How it's built

Starts on
A clock
Steps
21, with 3 branches
Size
Large: read it before trusting it with anything live
Connects to
Email, Gmail
Model
OpenAI

Questions

What does it need to run?

An n8n account, plus your own Email and Gmail accounts, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on a clock.

Does it use AI?

Yes. It calls OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 21 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 21 steps before you point it at anything that matters.