Automation library · Chat assistants

Personal email management with Gemini and Gmail

Started by an arriving email, and works across Gmail, Mattermost, NocoDB and Telegram. It hands the judgement calls to Gemini. 37 steps, 3 branches, 1 loop or waits: 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
3Branches: places the flow splits
1Loop or waits
4Services it connects to

The flow

Starts it 1Model 9Logic 11Service 16

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

  1. 1Gmail TriggerGmail triggerStarts it
  2. 2Structured Output ParserOutput Parser StructuredModel
  3. 3Structured Output Parser1Output Parser StructuredModel
  4. 4MattermostMattermostService
  5. 5Google Gemini Chat ModelLm Chat Google GeminiModel
  6. 6MessagesSetLogic
  7. 7Auto-fixing Output ParserOutput Parser AutofixingModel
  8. 8Auto-fixing Output Parser1Output Parser AutofixingModel
  9. 9Text ClassifierText ClassifierModel
  10. 10Basic LLM Chain1Chain LlmModel
  11. 11Summarization ChainChain SummarizationModel
  12. 12Basic LLM ChainChain LlmModel
  13. 13CodeCodeLogic
  14. 14IMPGmailService
  15. 15WorkGmailService
  16. 16FinanceGmailService
  17. 17SocialGmailService
  18. 18UpdatesGmailService
  19. 19StockMarketGmailService
  20. 20TrashGmailService
  21. 21OthersGmailService
  22. 22IfIfLogic
  23. 23If1IfLogic
  24. 24NocoDBNoco DbService
  25. 25ConstantsGlobal ConstantsService
  26. 26No Operation, do nothingNo OpLogic
  27. 27IMP CategorySetLogic
  28. 28Work CategorySetLogic
  29. 29Finance CategorySetLogic
  30. 30MarkReadGmailService
  31. 31Telegram1TelegramService
  32. 32PromotionGmailService
  33. 33TelegramTelegramService
  34. 34Loop Over ItemsSplit In BatchesLogic
  35. 35CategoryIfLogic
  36. 36CouponsGmailService
  37. 37FormatCodeLogic

How it's built

Starts on
An arriving email
Steps
37, with 3 branches, 1 loop or waits
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Mattermost, NocoDB, Telegram
Model
Gemini

Questions

What does it need to run?

An n8n account, plus your own Gmail, Mattermost, NocoDB and Telegram 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.