Generate Employee Retention Analytics Reports with GPT-4o and Gmail Digests
Description This workflow automates employee retention analytics by combining candidate performance data with trait-level retention statistics. It scores candidates, validates data, and generates a polished Retention Digest HTML email using GPT (Azure OpenAI). Hiring managers receive structured insights weekly, highlighting top/weak traits, candidate scores, and actionable JD refinement tips.
What This Template Does (Step-by-Step) โก Manual Trigger โ Starts workflow execution on demand. ๐ Candidate Data Fetch (Google Sheets โ Hires Tracking) โ Pulls candidate-level details like name, role, traits, start date, and retention status. ๐ Trait Summary Fetch (Google Sheets โ Retention Summary) โ Fetches aggregated trait-level retention statistics, including hires, stayed, left, retention %, and weight adjustments. ๐ Merge Candidate + Trait Data โ Combines both datasets into a unified stream for scoring. ๐งฎ Candidate Scoring & Data Normalization (Code Node) โ Cleans and standardizes data. Builds a trait โ weight map. Calculates each candidateโs Candidate_Score. Outputs normalized JSON. โ Data Validation (If Node) โ Ensures both candidate and trait datasets are present. TRUE โ continues to AI digest generation. FALSE โ routes to error logging. โ ๏ธ Error Handling Logic (Google Sheets โ Error Log) โ Logs any failed or incomplete runs into a dedicated error sheet for auditing. ๐ง AI Processing Backend (Azure OpenAI) โ Prepares candidate + trait data for GPT processing. ๐ค Retention Digest Generator (LLM Chain) โ Uses GPT (gpt-4o-mini) to create a structured HTML Retention Digest, including: TL;DR summary Top Traits (positive retention) Weak Traits (negative retention) Candidate highlights (scores & retention status) 3 actionable JD refinement tips ๐ง Email Delivery (Gmail) โ Sends the digest directly to hiring managers as a styled HTML email with subject: Retention Analysis Digest โ Weekly Update
Prerequisites Google Sheets (Hires Tracking + Retention Summary + Error Log) Gmail API credentials Azure OpenAI access (gpt-4o-mini model) n8n instance (self-hosted or cloud)
Key Benefits โ Automates retention analytics & reporting โ Provides AI-powered insights in structured HTML โ Improves hiring strategy with trait-based scoring โ Reduces manual effort in weekly retention reviews โ Ensures reliability with error handling & validation
Perfect For HR & Recruitment teams monitoring post-hire retention Organizations optimizing job descriptions & hiring strategy Talent analytics teams needing automated, AI-driven insights Stakeholders requiring clear weekly digest emails
Related Templates
Automatic News Summarization & Email Digest with GPT-4, NewsAPI and Gmail
๐ฐ AI News Digest Agent: Auto News Summarizer & Email Newsletter Create an intelligent news curation system that automat...
Generate Food Recipes from Gmail & Form Requests with Ollama & Llama 3.2
This n8n template demonstrates how to create an intelligent food recipe assistant that accepts requests via Gmail and we...
Auto-classify Gmail emails with AI and apply labels for inbox organization
Who is this for? Professionals and individuals who receive high volumes of emails, those who want to automatically organ...
๐ Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments