Back to Templates

Extract Attendance from Google Drive Images to Sheets with VLM Run AI & Gmail Alerts

Created by

Created by: Shahrear || shahrear

Shahrear

Last update

Last update 5 hours ago

Categories

Share


🧾 Attendance Extraction & Notification Pipeline (Google Drive + VLM Run + Google Sheets + Gmail)

⚙️ What This Workflow Does

This workflow automates daily attendance tracking by analyzing uploaded attendance images, extracting participant names via VLM Run’s Execute Agent, appending the structured data into Google Sheets, and emailing a formatted attendance summary through Gmail.

🧩 Requirements

  • A Google Drive account with a designated folder for attendance image uploads.

  • A VLM Run API account and your Execute Agent URL or API credentials.

  • A Gmail account connected to n8n for sending notification emails.

  • An n8n instance with the following credentials configured: Google Drive, Google Sheets, Gmail, VLM Run (HTTP API Credential)

⚡Quick Setup

  1. Install the verified VLM Run node by searching for VLM Run in the node list, then click Install. Once installed, you can start using it in your workflows.

  2. Add VLM Run API credentials for image parsing.

  3. Link your Google Drive, Google Sheets and Gmail accounts in the credentials section.

  4. In the “Google Drive Trigger” node, select the folder where attendance images will be uploaded.

  5. In the “Append Row” node, connect your Google Sheet and map columns manually (e.g., Date, Total, Names…).

  6. Add VLM Run execute agent endpoint.

  7. Upload an image (whiteboard attendance photo or scanned sheet) to your Drive folder.

  8. Wait for the automation to process and check your Google Sheet for results.

  9. After each extraction and logging step, the Gmail Node sends an automated summary email. Email includes:

    📅 Date of attendance
    👥 Total participants detected
    🧍 List of extracted names

⚙️ How It Works

  1. Monitor List Uploads – Watches a Google Drive folder for new attendance images (e.g., whiteboard snapshots, scanned sheets).

  2. Download List – Downloads each new image automatically for AI processing.

  3. VLM Run for Extraction sends the image to VLM Run Execute Agent, which uses an AI model to detect and extract attendee names from the image.

  4. Receive Attendance Data – The Webhook node (check-attendance) receives structured JSON data from VLM Run in the format:

    {
      "majorDimension": "ROWS",
      "values": [
        ["2025-10-03", "6", "Camila Torres Rivera", "Mellissa Richmond", "Captioner Javier", "Siobhan", "Catherine Soler", "Anisah Anif"]
      ]
    }
    
    
  5. The Google Sheets Node appends the structured attendance data to the selected sheet, maintaining a daily log for future reference.

  6. The Gmail Node sends an automatic email summarizing attendance.

💡Why Use This Workflow

🔄 Fully Automated: No manual data entry required.

🧠 AI-Powered Extraction: Uses VLM Run to read and parse images with handwritten or typed text.

📊 Centralized Logging: Attendance data neatly organized in Google Sheets for future analysis.

📬 Instant Notification: Keeps stakeholders informed automatically after each session.

Scalable: Works with multiple folders, daily batches, or parallel sessions.

🛠️ How to Customize

You can tailor this workflow to match your organization’s needs:

Area Customization Options
Drive Folder Point to a different upload folder for each department or class.
Google Sheet Mapping Add more columns (e.g., “Class Name,” “Supervisor”) and map them in the Append Row node.
Email Template Modify the Gmail node’s subject and body to include custom formatting or logos.
Trigger Schedule Replace Google Drive Trigger with a Cron Node if you prefer scheduled checks instead of live watching.
Data Validation Add a Function Node to filter duplicates or incorrect entries before appending to Sheets.
Notification Options Send alerts via Slack, Telegram, or Microsoft Teams instead of Gmail if desired.

⚠️ Community Node Disclaimer

This workflow uses community nodes (VLM Run) that may need additional permissions and custom setup.