Back to Catalog

Monitor lead response time SLA breaches with Google Sheets & Telegram alerts

Rahul JoshiRahul Joshi
166 views
2/3/2026
Official Page

Description

Never miss a lead again with this SLA Breach Alert automation powered by n8n! This workflow continuously monitors your Google Sheets for un-replied leads and automatically triggers instant Telegram alerts, ensuring your team takes immediate action.

By running frequent SLA checks, enriching alerts with direct Google Sheet links, and sending real-time notifications, this automation helps prevent unattended leads, reduce response delays, and boost customer engagement.

What This Template Does

📅 Runs every 5 minutes to monitor SLA breaches 📋 Fetches lead data (status, contact, timestamps) from Google Sheets 🕒 Identifies leads marked “Un-replied” beyond the 15-minute SLA 🔗 Enriches alerts with direct Google Sheet row links for quick action 📲 Sends Telegram alerts with lead details for immediate response

Step-by-Step Setup

  • Prepare Your Google Sheet
  • Create a sheet with the following columns (minimum required):
    • Lead Name
    • Email
    • Phone
    • Status (values: Replied, Un-replied)
    • Timestamp (time of last update/reply)
  • Set Up Google Sheets in n8n
    • Connect your Google account in n8n.
    • Point the workflow to your sheet (remove any hardcoded document IDs before sharing).
  • Configure SLA Check
    • Use the IF node to filter leads where:
    • Status = Un-replied
      • Time since timestamp > 15 minutes
  • Enrich Alerts with Links
    • Add a Code node to generate direct row links to the sheet.
  • Set Up Telegram Bot
    • Create a Telegram bot via @BotFather.
    • Add the bot to your team chat.
    • Store the botToken securely (remove chatId before sharing templates).
  • Send Alerts
    • Configure the Telegram node in n8n to send lead details + direct Google Sheet link.

Customization Guidance

  • Adjust the SLA window (e.g., 30 minutes or 1 hour) by modifying the IF node condition.
  • Add more fields from Google Sheets (e.g., Company, Owner) to enrich the alert.
  • Replace Telegram with Slack or Email if your team prefers a different channel.
  • Extend the workflow to auto-assign leads in your CRM once alerted.

Perfect For

  • Sales teams that need to respond to leads within strict SLAs
  • Support teams ensuring no customer request is ignored
  • Businesses aiming to keep lead response times sharp and consistent

Monitor Lead Response Time SLA Breaches with Google Sheets & Telegram Alerts

This n8n workflow helps sales teams and businesses monitor lead response times to ensure Service Level Agreements (SLAs) are met. It periodically checks a Google Sheet for leads that have breached their defined response time SLA and sends instant alerts to a Telegram chat.

What it does

  1. Schedules Checks: Runs on a predefined schedule (e.g., every 15 minutes) to perform regular SLA checks.
  2. Reads Lead Data: Retrieves lead information from a specified Google Sheet.
  3. Calculates SLA Breaches: Uses a Code node to calculate the time elapsed since each lead's creation and determines if it has breached a predefined SLA (e.g., 15 minutes).
  4. Filters Breached Leads: Identifies only those leads that have exceeded the SLA.
  5. Sends Telegram Alerts: For each breached lead, it sends a detailed alert message to a designated Telegram chat, notifying the team about the overdue response.

Prerequisites/Requirements

  • n8n Instance: A running n8n instance.
  • Google Sheets Account: A Google account with access to Google Sheets.
    • Google Sheets Credential: An n8n credential configured for Google Sheets.
    • Lead Data Spreadsheet: A Google Sheet containing lead data with at least the following columns (or similar, adaptable in the Code node):
      • Lead Name
      • Lead Email
      • Creation Time (timestamp when the lead was created, e.g., YYYY-MM-DD HH:MM:SS)
  • Telegram Account: A Telegram account.
    • Telegram Credential: An n8n credential configured for Telegram (Bot Token).
    • Telegram Chat ID: The chat ID of the group or individual where alerts should be sent.

Setup/Usage

  1. Import the Workflow:
    • Download the provided JSON file.
    • In your n8n instance, go to "Workflows" and click "New".
    • Click the "Import from JSON" button and paste the workflow JSON or upload the file.
  2. Configure Credentials:
    • Google Sheets:
      • Click on the "Google Sheets" node.
      • Select or create a new "Google Sheets API" credential. Follow the n8n documentation for setting up Google Sheets OAuth credentials.
    • Telegram:
      • Click on the "Telegram" node.
      • Select or create a new "Telegram API" credential. You'll need a bot token from BotFather.
  3. Customize Google Sheets Node:
    • In the "Google Sheets" node, select the "Spreadsheet ID" of your lead data sheet.
    • Specify the "Sheet Name" (e.g., "Sheet1").
  4. Adjust the Code Node:
    • Open the "Code" node.
    • Review the JavaScript code. This is where the SLA logic is defined.
    • SLA Threshold: Modify the slaThresholdMinutes variable to set your desired SLA (e.g., 15 for 15 minutes).
    • Column Names: Ensure the code correctly references the column names from your Google Sheet (e.g., item.json.creationTime, item.json.leadName, item.json.leadEmail). Adjust these if your column names are different.
  5. Configure the "If" Node:
    • The "If" node checks the isSlaBreached property created by the Code node. No changes are typically needed here unless you modify the output of the Code node.
  6. Customize Telegram Node:
    • In the "Telegram" node:
      • Set the "Chat ID" to the ID of the Telegram chat where you want to receive alerts.
      • Customize the "Text" message to include relevant lead details. The current message uses expressions like {{ $json.leadName }}, {{ $json.leadEmail }}, and {{ $json.timeSinceCreation }}.
  7. Set the Schedule (Cron Node):
    • Click on the "Cron" node.
    • Configure the desired interval for the workflow to run (e.g., every 15 minutes, every hour).
  8. Activate the Workflow:
    • Once all configurations are complete, save the workflow and activate it by toggling the "Active" switch in the top right corner of the n8n editor.

The workflow will now automatically monitor your Google Sheet for SLA breaches and send Telegram alerts.

Related Templates

Automate job matching with Gemini AI, Decodo scraping & resume analysis to Telegram

AI Job Matcher with Decodo, Gemini AI & Resume Analysis Sign up for Decodo — get better pricing here Who’s it for This workflow is built for job seekers, recruiters, founders, automation builders, and data engineers who want to automate job discovery and intelligently match job listings against resumes using AI. It’s ideal for anyone building job boards, candidate matching systems, hiring pipelines, or personal job alert automations using n8n. What this workflow does This workflow automatically scrapes job listings from SimplyHired using Decodo residential proxies, extracts structured job data with a Gemini AI agent, downloads resumes from Google Drive, extracts and summarizes resume content, and surfaces the most relevant job opportunities. The workflow stores structured results in a database and sends real-time notifications via Telegram, creating a scalable and low-maintenance AI-powered job matching pipeline. How it works A schedule trigger starts the workflow automatically Decodo fetches job search result pages from SimplyHired Job card HTML is extracted from the page A Gemini AI agent converts raw HTML into structured job data Resume PDFs are downloaded from Google Drive Resume text is extracted from PDF files A Gemini AI agent summarizes key resume highlights Job and resume data are stored in a database Matching job alerts are sent via Telegram How to set up Add your Decodo API credentials Add your Google Gemini API key Connect Google Drive for resume access Configure your Telegram bot Set up your database (Google Sheets by default) Update the job search URL with your keywords and location Requirements Self-hosted n8n instance Decodo account (community node) Google Gemini API access Google Drive access Telegram Bot token Google Sheets or another database > Note: This template uses a community node (Decodo) and is intended for self-hosted n8n only. How to customize the workflow Replace SimplyHired with another job board or aggregator Add job–resume matching or scoring logic Extend the resume summary with custom fields Swap Google Sheets for PostgreSQL, Supabase, or Airtable Route notifications to Slack, Email, or Webhooks Add pagination or multi-resume processing

Rully SaputraBy Rully Saputra
65

Track meal nutrition from meal photos with LINE, Google Gemini and Google Sheets

AI Meal Nutrition Tracker with LINE and Google Sheets Who's it for This workflow is designed for health-conscious individuals, fitness enthusiasts, and anyone who wants to track their daily food intake without manual calorie counting. It is best suited for users who want a simple, AI-powered meal logging system that analyzes food photos one at a time and provides instant nutritional feedback via LINE. What it does This workflow processes a single meal photo sent via LINE, analyzes it using Google Gemini AI to identify foods and estimate nutritional content, and stores the data in Google Sheets for tracking. The workflow focuses on simplicity and encouragement: it receives a meal image, performs AI-based food recognition, estimates calories and macronutrients, calculates a health score, provides personalized advice, and replies with a detailed nutritional breakdown on LINE. How it works A single meal photo is sent to the LINE bot. The workflow is triggered via a LINE webhook. The image file is downloaded and sent to Google Gemini AI for food analysis. The AI identifies foods and estimates nutritional values (calories, protein, carbs, fat, fiber). A health score (1-10) is calculated with personalized improvement tips. The data is appended to Google Sheets for meal history tracking. The image is uploaded to Google Drive for reference. A formatted nutritional report with advice is sent back as a LINE reply. This workflow is intentionally designed to handle one image per execution. Requirements To use this workflow, you will need: A LINE Messaging API account A Google Gemini API key A Google account with access to Google Sheets and Google Drive A Google Sheets document with the following column names: Date Time Meal Type Food Items Calories Protein (g) Carbs (g) Fat (g) Fiber (g) Health Score Advice Image URL Important limitations This workflow does not support multiple images sent in a single message. Sending images in quick succession may trigger multiple executions and lead to unexpected results. Only the first image in an event payload is processed. Nutritional values are AI estimates based on visual analysis and typical serving sizes. Accuracy depends on image quality, lighting, and food visibility. This tool should not replace professional dietary advice. These limitations are intentional to keep the workflow simple and easy to understand. How to set up Create a LINE Messaging API channel and obtain a Channel Access Token. Generate a Google Gemini API key. Update the Config node with your LINE token, Google Sheets ID, Google Drive folder ID, and daily calorie goal. Configure credentials for LINE, Google Gemini, Google Sheets, and Google Drive. Register the n8n webhook URL in your LINE channel settings. Activate the workflow in n8n and test it with a single meal photo. How to customize Modify the AI prompt in the "Analyze Meal with AI" node to support different languages or dietary frameworks (keto, vegan, etc.). Adjust the daily calorie goal in the Config node to match individual needs. Add additional nutritional fields such as sodium, sugar, or vitamins. Replace Google Sheets with a fitness app API or database. Integrate with other services to send daily/weekly nutrition summaries. --- Note: This workflow was tested using real meal photos sent individually via the LINE Messaging API. Nutritional estimates are approximations and may vary from actual values. For accurate dietary tracking, consult a registered dietitian.

Oka HironobuBy Oka Hironobu
89

Track free Udemy courses automatically with RapidAPI and Google Sheets

This workflow fetches free Udemy courses hourly via the Udemy Coupons and Courses API on RapidAPI, filters them, and updates a Google Sheet. It sends alerts on errors for smooth monitoring. --- Node-by-Node Explanation Schedule Trigger: Runs the workflow every hour automatically. Fetch Udemy Coupons: Sends POST request to the Udemy Coupons and Courses API on RapidAPI to get featured courses. Check API Success: Verifies if the API response is successful; routes accordingly. Filter Free Courses: Selects only courses with sale_price of zero (free courses). Send Error Notification: Emails admin if API fetch fails for quick action. Sync Courses to Google Sheet: Appends or updates the filtered free courses into Google Sheets. --- Google Sheets Columns id name price sale_price image lectures views rating language category subcategory slug store sale_start --- Google Sheets Setup & Configuration Steps Create Google Sheet: Create or open a Google Sheet where you want to sync courses. Set Headers: Add columns headers matching the fields synced (id, name, price, etc.). Enable Google Sheets API: Go to Google Cloud Console, enable Google Sheets API for your project. Create Service Account: In Google Cloud Console, create a Service Account with editor access. Download Credentials: Download the JSON credentials file from the service account. Share Sheet: Share your Google Sheet with the Service Account email (found in JSON file). Configure n8n Google Sheets Node: Use the service account credentials, set operation to “Append or Update”, provide Sheet URL and sheet name or gid. Match Columns: Map the course fields to your sheet columns and set id as the unique key for updates. --- How to Obtain RapidAPI Key & Setup API Request Sign up/Login: Visit RapidAPI Udemy Coupons and Courses API and create an account or log in. Subscribe to API: Subscribe to the Udemy Coupons and Courses API plan (free or paid). Get API Key: Navigate to your dashboard and copy your x-rapidapi-key. Configure HTTP Request: In your workflow’s HTTP Request node: Set method to POST. URL: https://udemy-coupons-and-courses.p.rapidapi.com/featured.php Add headers: x-rapidapi-host: udemy-coupons-and-courses.p.rapidapi.com x-rapidapi-key: your copied API key Set content type to multipart/form-data. Add body parameter: page=1 (or as needed). Test API: Run the node to ensure the API responds with data successfully before continuing workflow setup. --- Use Cases & Benefits Automates daily updates of free Udemy courses in your sheet using the Udemy Coupons and Courses API on RapidAPI. Saves manual effort in tracking coupons and deals. Enables quick error alerts to maintain data accuracy. Ideal for course aggregators, affiliate marketers, or learning platforms needing fresh course data. --- Who This Workflow Is For Content curators and edtech platforms tracking free courses. Affiliate marketers promoting Udemy deals. Anyone needing real-time access to updated free Udemy coupons.

Sk developer By Sk developer
365