Automation library · Alerts and monitoring

Employee time tracking system with OpenAI and Gmail

Started by another system calling it, and works across Gmail and n8n data table. It hands the judgement calls to OpenAI. 25 steps, 3 branches: 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
3Branches: places the flow splits
0Loops or waits
2Services it connects to

The flow

Starts it 4Model 2Logic 10Service 9

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

  1. 1Webhook - Track TimeWebhookStarts it
  2. 2EVERY DAYSchedule triggerStarts it
  3. 3EVERY MONTHSchedule triggerStarts it
  4. 4SwitchSwitchLogic
  5. 5ANALYZE TIME ENTRIESData TableService
  6. 6ANALYZE ENTIRE MONTHData TableService
  7. 7Insert rowData TableService
  8. 8Get row(s)Data TableService
  9. 9Get row(s)2Data TableService
  10. 10Message a model1Open AiModel
  11. 11Message a modelOpen AiModel
  12. 12MESSAGE2SetLogic
  13. 13If1IfLogic
  14. 14IfIfLogic
  15. 15EMAIL TO EMPLOYEEGmailService
  16. 16EMAIL TO MANAGEMENTGmailService
  17. 17Respond to WebhookRespond To WebhookStarts it
  18. 18Set Break DurationSetLogic
  19. 19ERRORSetLogic
  20. 20endSetLogic
  21. 21ERROR1SetLogic
  22. 22Update row(s)Data TableService
  23. 23Update row(s)1Data TableService
  24. 24MESSAGE1SetLogic
  25. 25MESSAGESetLogic

How it's built

Starts on
Another system calling it
Steps
25, with 3 branches
Size
Large: read it before trusting it with anything live
Connects to
Gmail, n8n data table
Model
OpenAI

Questions

What does it need to run?

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

What starts it?

It starts on another system calling it.

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.