The flow
Starts it 1Model 1Logic 12Service 5
The steps in the order they run, from what starts it.
- 1Schedule: Run Every HourSchedule triggerStarts it
- 2Get Receiving DataGoogle SheetsService
- 3Clean & Normalize Input DataSetLogic
- 4Group Data by UserItem ListsLogic
- 5Analyze User PerformanceCodeLogic
- 6Fetch Department DetailsGoogle SheetsService
- 7Attach Department InfoSetLogic
- 8Check if Performance Needs ActionIfLogic
- 9Build AI Analysis PromptSetLogic
- 10Prepare Final Output (All Good)SetLogic
- 11Generate AI RecommendationsGoogle GeminiModel
- 12Update Analytics DashboardGoogle SheetsService
- 13Format AI ResponseSetLogic
- 14Check if Escalation NeededIfLogic
- 15Route Based on Severity LevelIfLogic
- 16Prepare Final Output (No Action)SetLogic
- 17Send Warning Email to ManagerGmailService
- 18Send Critical Alert EmailGmailService
- 19Prepare Final Output (Escalated)SetLogic
How it's built
- Starts on
- A clock
- Steps
- 19, with 3 branches
- Size
- Medium: a working afternoon
- Connects to
- Gmail, Google Sheets
- Model
- Gemini
Questions
What does it need to run?
An n8n account, plus your own Gmail and Google Sheets accounts, and a key for Gemini. 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 Gemini. Model calls are billed by the provider, not by n8n.
How long does it take to set up?
Plan an afternoon. 19 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 itNothing 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 19 steps before you point it at anything that matters.