Automation library · Data collection

An email assistant to manage your Gmail inbox with Gemini

Started by an arriving email, and works across Email, Gmail, Google Drive and Google Sheets. It hands the judgement calls to Gemini. 37 steps, 4 branches: large, and worth reading before you trust it with anything live.

LargeCalls a model: Gemini

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

The flow

Starts it 1Model 8Logic 8Service 20

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

  1. 1Gmail Trigger1Gmail triggerStarts it
  2. 2Structured Output Parser1Output Parser StructuredModel
  3. 3Google Gemini Chat Model3Lm Chat Google GeminiModel
  4. 4Google Gemini Chat Model4Lm Chat Google GeminiModel
  5. 5Structured OutputOutput Parser StructuredModel
  6. 6Google Gemini Chat Model2Lm Chat Google GeminiModel
  7. 7Text Classifier1Text ClassifierModel
  8. 8Apply Data Extraction Rules1Chain LlmModel
  9. 9Draft Response AgentAgentModel
  10. 10Add label to message7GmailService
  11. 11Check Time LogicCodeLogic
  12. 12Add label to messageGmailService
  13. 13Add label to message6GmailService
  14. 14Add label to message4GmailService
  15. 15Add label to message5GmailService
  16. 16Map Output1SetLogic
  17. 17Can AI Agent Respond?IfLogic
  18. 18SetupSetLogic
  19. 19Should Send Reply?IfLogic
  20. 20Mark a message as read2GmailService
  21. 21Mark a message as readGmailService
  22. 22Mark a message as read1GmailService
  23. 23Append to Reconciliation Sheet1Google SheetsService
  24. 24Create a draft1GmailService
  25. 25Emails with invoice attachmentsIfLogic
  26. 26Check Reply TypeIfLogic
  27. 27Add label to message1GmailService
  28. 28Upload PDF to DriveHttp RequestService
  29. 29Gmail1GmailService
  30. 30Send Weekend Auto-ReplyEmail SendService
  31. 31Send After Hours Auto-ReplyEmail SendService
  32. 32Get Unread EmailGmailService
  33. 33Rename fileGoogle DriveService
  34. 34Get Required FieldsSetLogic
  35. 35Move to the correct folderGoogle DriveService
  36. 36Google Drive1Google DriveService
  37. 37Extract from FileExtract From FileService

How it's built

Starts on
An arriving email
Steps
37, with 4 branches
Size
Large: read it before trusting it with anything live
Connects to
Email, Gmail, Google Drive, Google Sheets
Model
Gemini

Questions

What does it need to run?

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

What starts it?

It starts on an arriving email.

Does it use AI?

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

How long does it take to set up?

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