👥 Monitor candidate email SLA breaches with Gmail and send Slack alerts

⚡ 12 views · 👥 HR & Recruitment

Description

Gmail Candidate Email SLA Monitoring & Slack Alert Workflow

This workflow automatically monitors candidate emails received in the last 24 hours and checks whether a recruiter has replied within the same thread. If no reply is found, it flags it as an SLA breach and sends a Slack alert to an available team member (active if possible, otherwise random). This helps ensure timely communication with candidates.

Quick Implementation Steps

  1. Login to your n8n account.
  2. Set up the Scheduler node (e.g., every 5 minutes or as preferred).
  3. Connect your Gmail account and fetch emails from the last 24 hours.
  4. Filter candidate emails using sender domain and label/category.
  5. Use thread analysis to detect if a reply exists.
  6. Connect Slack and fetch channel members.
  7. Check presence and select an active (or random) user.
  8. Send alert message via Slack using user ID.
  9. Activate the workflow.

What It Does

This workflow continuously monitors incoming emails from candidates and ensures that no message goes unanswered. It focuses specifically on emails received within the last 24 hours and identifies conversations that have not received a reply from the recruiter.

Once emails are fetched, the workflow filters relevant candidate communications based on sender domain and label/category. It then retrieves the full email thread and analyzes whether any reply has been sent from the recruiter’s side. If no reply exists in the thread, it is marked as an SLA breach.

To ensure quick action, the workflow integrates with Slack. It checks the availability of team members and intelligently selects an active user. If no one is active, it assigns the alert to a random team member, ensuring accountability and timely follow-up.

Who It’s For

Requirements

To use this workflow, you need:

How It Works & Set Up

Setup Instructions

  1. Scheduler Configuration

    • Set the trigger interval (default: every 5 minutes)
    • Users can adjust this based on their needs
  2. Gmail Integration

    • Connect your Gmail account
    • Use “Get Many Messages” node
    • Configure to fetch emails from the last 24 hours
  3. Filter Candidate Emails

    • Apply filtering logic using:
      • Sender domain
      • Email label/category
  4. Thread Retrieval

    • Use thread ID to fetch full conversation
    • Ensure all messages in the thread are available
  5. Reply Detection

    • Analyze messages in the thread
    • Check if any message has SENT label
    • If yes → mark hasReplied = true
    • If no → mark as SLA breach
  6. Slack Integration

    • Fetch members from selected channel
    • Retrieve presence status for each member
  7. User Selection Logic

    • If any user is active → select active user
    • Else → randomly select a user
  8. Send Slack Alert

    • Send message using selected user ID
    • Include candidate email and thread details
  9. Activate Workflow

    • Test all nodes
    • Enable workflow for automation

How To Customize Nodes

Add-ons (Enhancements)

Use Case Examples

There can be many more use cases depending on how you extend and customize this workflow.

Troubleshooting Guide

IssuePossible CauseSolution
No emails fetchedGmail node not configured correctlyCheck credentials and filters
Incorrect email filteringWrong domain/label logicUpdate filter conditions
Replies not detectedThread parsing issueVerify SENT label logic
No Slack message sentInvalid user ID or Slack configCheck Slack credentials
All users shown as awaySlack presence limitationVerify Slack presence permissions
Random user not selectedLogic error in code nodeValidate selection script
Workflow not triggeringScheduler disabledEnable and verify schedule

Need Help?

If you need help setting up this workflow, customizing nodes or adding advanced features, our n8n automation team at WeblineIndia is here to assist you.

We can help you:

Feel free to reach out to WeblineIndia for expert guidance or to build similar automation solutions tailored to your business needs.

🔗 Nodes Used

Slack, Gmail, Schedule Trigger

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup