Use this comprehensive n8n workflow to track employee attendance (Check-In/Out) via a Telegram bot, storing all data securely in Google Sheets. Includes duplicate prevention and employee validation.
Download this n8n workflow template and start using it instantly.
Managing employee attendance can be streamlined significantly using chat interfaces. This n8n workflow provides a robust solution by leveraging a Telegram bot as the primary interface and Google Sheets as the secure, easily accessible database. This specific n8n workflow is designed to handle key requirements like employee validation (ensuring only registered users can submit entries) and crucial duplicate prevention (stopping a user from checking in twice on the same day).
The automation starts with an n8n trigger listening for user input on Telegram. It intelligently branches the flow based on whether the user requests to view their status or log a time event. By using a Google Sheets n8n node to cross-reference employee data and log new entries, this n8n automation eliminates manual data entry and ensures accurate, real-time reporting.
The entire process is initiated by the Telegram Trigger n8n node, which listens for user input, typically /start or /menu.
/start or /menu, an IF n8n node directs the flow to send the main menu via Telegram, offering options to log attendance or check status.Sheets Read (employee)) to verify the user’s Telegram username against the Employee sheet. If validated, it reads today's records from the Attendance sheet.Format Attendance Status) analyzes the collected records to determine if Check-In and Check-Out were completed, then replies with the daily status.Sheets Read (employee)1).Sheets Read (duplicate attendance) n8n node checks the Google Sheet for an existing entry (e.g., if a 'checkin' record already exists today). The subsequent IF n8n node (IF duplicate attendance) blocks the submission if a duplicate is found, replying with a warning.Sheets Append (Attendance) n8n node writes a new row containing the timestamp, attendance type (checkin/checkout), and employee details to the Google Sheet. The final n8n node replies via Telegram, confirming the successful recording.To deploy this powerful n8n workflow, follow these steps:
username_telegram) and one named 'Attendance' (for logging). Update the Google Sheets n8n node configurations to point to your specific spreadsheet ID./start in your new Telegram bot.This n8n workflow relies on several key n8n nodes for logic and integration:
Telegram Trigger: The starting n8n trigger, configured to listen for message and callbackquery events, allowing it to respond both to direct commands and button clicks.
Google Sheets (Read/Append): Multiple Google Sheets n8n node instances are used. They are crucial for reading employee validation data and attendance history, as well as appending new time logs. Key configuration involves filtering by usernametelegram and date.
IF (n8n node): Heavily utilized throughout the n8n workflow for conditional routing, checking for menu commands (/start), validating employee existence (IF employee), and performing the vital check for duplicate attendance records (IF duplicate attendance).
Function Item: The Format Attendance Status n8n node contains custom JavaScript logic to process the raw attendance data read from Google Sheets and generate a clean, readable summary message for the user.
Deploy this critical n8n workflow to instantly manage and dispatch emergency alerts via Slack and Email. Learn how to set up this automated n8n trigger and notification system.

Automate social media content creation using this powerful n8n workflow. Trigger AI (OpenAI) thread generation via email and instantly post structured content to X (Twitter), Threads, and Bluesky.

Use of Mistral AI agents within this advanced n8n workflow to automatically convert actionable emails from Gmail and Outlook into structured tasks in Google Tasks or Microsoft To Do, maximizing productivity.

Use this powerful n8n workflow to automatically analyze resumes, calculate average job tenure using Azure OpenAI GPT-4o-mini, detect high attrition risk (tenure < 12 months), and send immediate HR alerts via the Gmail n8n node.

Hi, I’m Singgi 👋 A developer who loves creating smart automations with n8n. I build workflows for Telegram/WhatsApp bots, Google Sheets, and APIs to make life easier.







































