Automation library · Research and reporting

Prevent employee burnout with OpenAI and Google Sheets

Started by a clock, and works across Google Sheets, Postgres and Slack. It hands the judgement calls to OpenAI. 20 steps, 1 branch, 1 loop or waits: a working afternoon to understand properly.

MediumCalls a model: OpenAI

20 stepsMedium: a working afternoon
1Branch: places the flow splits
1Loop or waits
3Services it connects to

The flow

Starts it 1Model 2Logic 10Service 7

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

  1. 1Run Daily at 2 AMSchedule triggerStarts it
  2. 2Calculate Analysis PeriodCodeLogic
  3. 3Fetch Employee ListHttp RequestService
  4. 4Start Employee LoopSplit In BatchesLogic
  5. 5Fetch Slack MessagesSlackService
  6. 6Generate Message SummaryCodeLogic
  7. 7AI Tone AnalysisOpen AiModel
  8. 8Format Data for PrivacySetLogic
  9. 9Fetch Attendance DataHttp RequestService
  10. 10Calculate Attendance MetricsCodeLogic
  11. 11Fetch Task Completion RatesHttp RequestService
  12. 12Calculate Task MetricsCodeLogic
  13. 13Consolidate FeaturesCodeLogic
  14. 14AI Stress Level PredictionOpen AiModel
  15. 15Generate Anonymized DataCodeLogic
  16. 16Filter Fields for HR DashboardSetLogic
  17. 17Save to HR DashboardGoogle SheetsService
  18. 18Check for High StressIfLogic
  19. 19Send Slack DM to High Stress EmployeeSlackService
  20. 20Log Counseling ProposalPostgresService

How it's built

Starts on
A clock
Steps
20, with 1 branch, 1 loop or waits
Size
Medium: a working afternoon
Connects to
Google Sheets, Postgres, Slack
Model
OpenAI

Questions

What does it need to run?

An n8n account, plus your own Google Sheets, Postgres and Slack 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?

Plan an afternoon. 20 steps is enough that you should read each one before running it.

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 20 steps before you point it at anything that matters.