Automation library · Scheduling

AI Timesheet Generator with Gmail and Calendar

Started by a clock, and works across GitHub, Gmail, Google Calendar and Google Sheets. It hands the judgement calls to OpenAI. 24 steps, 4 branches: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAI

24 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 1Logic 15Service 7

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

  1. 1Daily at 7PMCronStarts it
  2. 2Set VariablesSetLogic
  3. 3Get Today's EmailsGmailService
  4. 4Get Today's Calendar EventsGoogle CalendarService
  5. 5Create Sheet If It Doesn't ExistGoogle SheetsService
  6. 6Split Out1Split OutLogic
  7. 7Split Out2Split OutLogic
  8. 8AggregateAggregateLogic
  9. 9Aggregate1AggregateLogic
  10. 10If it didn't existIfLogic
  11. 11Get Commits From GithubHttp RequestService
  12. 12Get GitHub PRsGithubService
  13. 13MergeMergeLogic
  14. 14Init Sheet HeadersSetLogic
  15. 15If Authors CommitIfLogic
  16. 16If it's created todayIfLogic
  17. 17If it's closed todayIfLogic
  18. 18Format All DataCodeLogic
  19. 19init Sheet ColumnsGoogle SheetsService
  20. 20Aggregate3AggregateLogic
  21. 21Aggregate2AggregateLogic
  22. 22Generate Journal SummaryOpen AiModel
  23. 23Split OutSplit OutLogic
  24. 24Insert Sheets EntryGoogle SheetsService

How it's built

Starts on
A clock
Steps
24, with 4 branches
Size
Large: read it before trusting it with anything live
Connects to
GitHub, Gmail, Google Calendar, Google Sheets
Model
OpenAI

Questions

What does it need to run?

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