n8n HR Attrition Risk Workflow: Sheets + OpenAI + Gmail Alerts
n8n HR Attrition Risk Workflow: Sheets + OpenAI + Gmail Alerts
Regular price
£52.99
Regular price
£52.99
Sale price
Unit price
/
per
⬇
Instant Digital Download
∞
Unlimited Downloads
★
Lifetime Access in Your Account
Couldn't load pickup availability
🔥
128+ Sold
Popular with n8n builders
âš¡
23 people viewing
High interest right now
✅
9 added today
Fast-moving digital product
n8n HR Attrition Risk Workflow: Sheets + OpenAI + Gmail Alerts
Regular price
£52.99
Regular price
£52.99
Sale price
Unit price
/
per
Weekly HR attrition risk intelligence—powered by Sheets, OpenAI, and real-time alerts
This n8n workflow automatically pulls your HR datasets from Google Sheets, calculates rule-based attrition risk, enriches results with an OpenAI (GPT-4o-mini) risk assessment, logs everything back to Google Sheets, and sends high-risk Telegram alerts plus a weekly HTML digest email via Gmail.
What this workflow does
- Runs weekly on a schedule trigger.
- Reads and merges HR data from Google Sheets tabs: Employees_Master, Attendance, Engagement_Survey, Performance_Reviews, and OneOnO into a single employee profile.
- Computes a rule-based flight/attrition risk score using rule logic and factors.
- Builds an anonymized payload and sends it to OpenAI (GPT-4o-mini) for a structured JSON risk assessment.
- Parses the JSON response; if parsing fails, it falls back to rule-only scoring and notifies an admin via Telegram.
- Creates a composite risk score and risk level by combining rule-based and LLM results.
- Acts on outcomes by sending a Telegram alert and appending flagged employees to Google Sheets Risk_Dashboard (standard outcomes are also logged).
- Sends a weekly HTML digest by reading today’s Risk_Dashboard entries and emailing the HR team through Gmail.
- Fails safely: if any node errors, an execution alert is posted to Slack.
Use cases
- Detect at-risk employees weekly using attendance, engagement, performance reviews, and 1:1 notes from Google Sheets.
- Provide HR leadership with an auditable risk dashboard and a consistent weekly email summary.
- Catch malformed AI outputs automatically and revert to rule-based scoring while alerting admins.
Technical details
- Integrations / nodes: Google Sheets (OAuth), OpenAI (GPT-4o-mini), Gmail, Telegram, Slack, merge, if, code.
- Requires setup: connect Google Sheets OAuth credentials, provide your Sheet ID, and ensure the required tabs exist.
