Automation library · AI assistants

AI inbox assistant with OpenAI and Gmail

Started by a clock, and works across Gmail and Google Drive. It hands the judgement calls to OpenAI. 25 steps, 1 branch: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAI

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

The flow

Starts it 1Model 6Logic 2Service 16

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

  1. 1Check inbox every 30 minutesSchedule triggerStarts it
  2. 2OpenAI GPT-4o-miniLm Chat Open AiModel
  3. 3Fetch unread emailsGmailService
  4. 4Classify email categoryText ClassifierModel
  5. 5Label as PromotionsGmailService
  6. 6Label as SocialGmailService
  7. 7Label as PersonalGmailService
  8. 8Label as SalesGmailService
  9. 9Label as BusinessGmailService
  10. 10Label as ReceiptsGmailService
  11. 11Label as MiscGmailService
  12. 12Label as LegalGmailService
  13. 13Mark as readGmailService
  14. 14Draft personal replyOpen AiModel
  15. 15Draft sales replyOpen AiModel
  16. 16Draft business replyOpen AiModel
  17. 17Draft legal replyOpen AiModel
  18. 18Save personal draftGmailService
  19. 19Save sales draftGmailService
  20. 20Save business draftGmailService
  21. 21Save legal draftGmailService
  22. 22Get email attachmentsGmailService
  23. 23Has attachments?IfLogic
  24. 24Prepare attachment filesCodeLogic
  25. 25Save to Google DriveGoogle DriveService

How it's built

Starts on
A clock
Steps
25, with 1 branch
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Google Drive
Model
OpenAI

Questions

What does it need to run?

An n8n account, plus your own Gmail and Google Drive 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 25 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 25 steps before you point it at anything that matters.