Automation library · AI assistants

Sort and manage your Gmail inbox with Vertex AI

Started by a clock, and works across Gmail and Google Tasks. It hands the judgement calls to a language model. 30 steps, 2 branches: large, and worth reading before you trust it with anything live.

LargeCalls a model

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

The flow

Starts it 1Model 10Logic 7Service 12

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

  1. 1Schedule TriggerSchedule triggerStarts it
  2. 2Google Vertex Chat ModelLm Chat Google VertexModel
  3. 3Google Vertex Chat Model1Lm Chat Google VertexModel
  4. 4Create a task in Google TasksGoogle Tasks ToolService
  5. 5Google Vertex Chat Model3Lm Chat Google VertexModel
  6. 6Google Vertex Chat Model4Lm Chat Google VertexModel
  7. 7Google Vertex Chat Model5Lm Chat Google VertexModel
  8. 8Fetch daily emails.GmailService
  9. 9Analyze importance and reply needs via AIInformation ExtractorModel
  10. 10Generate daily summary messageChain LlmModel
  11. 11Google Task writerAgentModel
  12. 12Structured Output ParserOutput Parser StructuredModel
  13. 13Generate AI draftChain LlmModel
  14. 14Time Saving NodeTime SavedService
  15. 15Merge ID with email dataMergeLogic
  16. 16Merge ID with email data.MergeLogic
  17. 17removing all previous n8n tagsGmailService
  18. 18Apply n8n Sorted labelGmailService
  19. 19Rank items by importanceSwitchLogic
  20. 20Filter: Reply required.IfLogic
  21. 21Send Email to yourselfGmailService
  22. 22Import AI draft in GmailGmailService
  23. 23Combine email data: Subject, Snippet & SenderAggregateLogic
  24. 24Combine email data: Subject, Snippet & Sender.AggregateLogic
  25. 25Add important LabelGmailService
  26. 26Combine Priority 1 & 2.MergeLogic
  27. 27Mark email as readGmailService
  28. 28Mark Email as readGmailService
  29. 29not important LabelGmailService
  30. 30delete from InboxGmailService

How it's built

Starts on
A clock
Steps
30, with 2 branches
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Google Tasks
Model
A language model, family not declared

Questions

What does it need to run?

An n8n account, plus your own Gmail and Google Tasks accounts, and a key for a language model. 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 a language model. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 30 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 30 steps before you point it at anything that matters.