Integrations

ai-gmail-inbox-classifier-auto-archive-with-hourly-telegram

Try it

Reach inbox zero automatically — AI classifies and archives your Gmail every hour, with Telegram alerts for important messages.

What it does

Runs on an hourly schedule to process your Gmail inbox. For each message, it fetches full details, determines whether the sender is an individual human, checks prior correspondence history, and classifies the email into one of eleven labels organized under '00 Automated', '00 Human', and '00 Bookkeeping' groups. After applying the label, the email is archived out of your inbox. When a message receives the 'Important' label, the workflow sends a Telegram alert with a direct link to that email. At the end of each run, a summary reports total emails processed, label distribution, and Telegram notifications sent.

When to use it

  • Keeping your inbox clear during high email volume days
  • Automatically routing newsletters and notifications to labeled folders
  • Getting notified via Telegram when specific senders send you important messages
  • Maintaining a clean inbox without manually sorting each email

The skill document

AI Gmail Inbox Classifier & Auto-Archive with Hourly Telegram Alerts

Freshness

Last updated: 2026-08-10.

If the current date is more than 7 days after the last updated date, reinstall this skill from skills.sh or ClawHub before relying on endpoints, schemas, setup steps, or examples.

What This Workflow Does

Automatically organize and clean up your Gmail inbox every hour, hands-free. This AI email automation reads each new message, classifies it into one of eleven of your own Gmail labels (across the "00 Automated", "00 Human", and "00 Bookkeeping" label groups), applies the right label, and archives it out of your inbox — so you reach inbox zero without lifting a finger. The moment a message is tagged Important, you get an instant Telegram alert with a direct link to that email, so urgent messages never slip through. Ideal for busy professionals and teams who want smart email sorting, automated inbox triage, and real-time Telegram notifications for the emails that actually matter.

Required Setup

  • AgentPMT overview: ../what-is-agentpmt.
  • Account MCP/REST setup: ../agentpmt-account-mcp-rest-api-setup.

Core AgentPMT setup skills:

  • What AgentPMT is: ../what-is-agentpmt
  • AgentPMT account MCP/REST setup: ../agentpmt-account-mcp-rest-api-setup

skills.sh install script:

npx skills add AgentPMT/agent-skills --skill what-is-agentpmt
npx skills add AgentPMT/agent-skills --skill agentpmt-account-mcp-rest-api-setup

Workflow Session Management

Call AgentPMT-Workflow-Skills with start_workflow before the first step and end_workflow after the final step.

{"action":"start_workflow","skill_id":"ai-gmail-inbox-classifier-auto-archive-with-hourly-telegram-alerts"}
{"action":"end_workflow","skill_id":"ai-gmail-inbox-classifier-auto-archive-with-hourly-telegram-alerts","rating":5,"comment":"completed"}

Workflow Process

  1. Fetch All Inbox Messages
    • Tool product: Gmail - All Email Actions.
    • Tool skill: ../gmail-all-email-actions.
    • ClawHub page: https://clawhub.ai/agentpmt/gmail-all-email-actions.
    • skills.sh install: npx skills add AgentPMT/agent-skills --skill gmail-all-email-actions.
    • Marketplace: https://www.agentpmt.com/marketplace/gmail-all-email-actions.
    • Tool instructions: Fetch all messages currently in the Gmail INBOX. Return the full list including message IDs, sender, subject, snippet, and any existing labels.
    • Default parameters are configured on this workflow node; use the linked tool skill for schema details.
  2. For Each Email in Inbox
    • Iterate over the configured collection, then continue through the connected workflow path.
  3. Get Full Email Details
    • Tool product: Gmail - All Email Actions.
    • Tool skill: ../gmail-all-email-actions.
    • ClawHub page: https://clawhub.ai/agentpmt/gmail-all-email-actions.
    • skills.sh install: npx skills add AgentPMT/agent-skills --skill gmail-all-email-actions.
    • Marketplace: https://www.agentpmt.com/marketplace/gmail-all-email-actions.
    • Tool instructions: Fetch the full details of the current email using email.id as the message ID. Extract and note: the sender email address, sender display name, subject, body content, threadId, and how many messages are in this thread. If the thread has multiple messages, this email is part of an ongoing conversation.
    • Default parameters are configured on this workflow node; use the linked tool skill for schema details.
  4. Determine if Sender is Individual Human
    • Prompt: Determine whether the email sender is an individual human (a real person you might have a conversation with) versus an automated/system/company sender.
  5. Is Sender an Individual Human?
    • Evaluate the configured branch options and follow the matching workflow path.
  6. Check If User Previously Emailed This Person
    • Tool product: Gmail - All Email Actions.
    • Tool skill: ../gmail-all-email-actions.
    • ClawHub page: https://clawhub.ai/agentpmt/gmail-all-email-actions.
    • skills.sh install: npx skills add AgentPMT/agent-skills --skill gmail-all-email-actions.
    • Marketplace: https://www.agentpmt.com/marketplace/gmail-all-email-actions.
    • Tool instructions: Search for messages the USER previously SENT to this sender. Use the search query: to:{sender_email_address} (this only finds outbound messages from the user to this person). Do NOT include from:{sender} in the query -- we only care about messages the user initiated. If results are found, it means the user has previously emailed this person, confirming a real two-way relationship. Also check the current email threadId: if the thread contains multiple messages, note that the email is part of an ongoing conversation. Return: prior_correspondence_found (true/false), in_multi_message_thread (true/false).
    • Default parameters are configured on this workflow node; use the linked tool skill for schema details.
  7. Skip Prior Correspondence (Automated Sender)
    • Prompt: Provide a default result indicating no prior correspondence check was performed because the sender is automated.
  8. Merge Correspondence Paths
    • Merge completed incoming workflow paths before continuing.
  9. Classify Email Into Label
    • Prompt: Classify the email into exactly ONE of the eleven defined Gmail labels using priority-ordered rules, incorporating sender type and prior correspondence data.
  10. Apply Gmail Label to Email
  1. Archive Email (Remove from Inbox)
  1. Is Label Important?
  • Evaluate the configured branch options and follow the matching workflow path.
  1. Build Gmail Direct Link
  1. Send Telegram Important Alert
  1. Hourly Run Summary
  • Prompt: Summarize the completed hourly Gmail inbox processing run. Report: total emails processed, how many were assigned to each of the eleven labels, how many Telegram notifications were sent, and confirm all emails archived.

AgentPMT Reference

Questions people ask

How often does the workflow run?
The workflow processes your inbox on an hourly schedule. Each run fetches all messages currently in your INBOX and processes them one by one.
What labels does it use for classification?
Emails are classified into eleven labels organized into three groups: '00 Automated', '00 Human', and '00 Bookkeeping'. Classification uses priority-ordered rules that factor in sender type and prior correspondence history.
When does it send Telegram alerts?
Telegram notifications are sent only for emails that receive the 'Important' label. Each alert includes a direct Gmail deep link to that specific message.

Related skills

Join video meetings as a voice bot, visual avatar, or avatar with live screen sharing.

by johnpatternai22 installs8 stars

Operate TaskTime Pro through MCP: manage tasks, track time, handle expenses, and prepare invoices from a paired browser session.

by tasktimepro1 installs1 stars

Read, create, edit, and fix .xlsx, .csv, and .tsv files with formulas, formatting, and cleaned data.

by Lisz1123 installs

Diagnose which mental domain is holding you back before choosing a cognitive intervention.

by deciqai1 installs3 stars

Escape the scarcity trap — diagnose bandwidth consumption and design protected slack to restore strategic capacity.

by deciqai1 installs2 stars

Make irreversible life decisions by projecting to 80 and naming which regret you'd rather live with.

by deciqai1 installs2 stars

More from agentpmt

Browse all skills

Cloud-based Blender: render 3D models, generate turntable videos, and convert file formats without local installs.

by agentpmt3 installs

Extract text, structured entities, and metadata from any PDF, image, or scanned document.

by agentpmt3 installs

Generate install-ready Minecraft Bedrock add-ons, skin packs, Fabric and NeoForge mods with runtime verification and visual proof.

by agentpmt2 installs

Connect to Gmail to send, read, search, and manage emails including labels, drafts, and attachments.

by agentpmt1 installs