AgentPMT

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

Saves ~45 min

Details

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 seven of your own Gmail labels (across the "00 Automated" and "00 Human" 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.

Tools In This Workflow

Workflow Steps

  1. 1Fetch All Inbox Messages
  2. 2For Each Email in Inbox
  3. 3Get Full Email Details
  4. 4Classify Email Into Label
  5. 5Apply Gmail Label to Email
  6. 6Archive Email (Remove from Inbox)
  7. 7Is Label Important?
  8. 8Build Gmail Direct Link
  9. 9Send Telegram Important Alert
  10. 10Hourly Run Summary
Step 1 of 10
Tool1

Fetch All Inbox Messages

Fetch all messages currently in the Gmail INBOX. Return the full list including message IDs, sender, subject, snippet, and any existing labels. This list will be iterated over one message at a time in the for_each loop that follows.

Fetch All Inbox Messages

Frequently Asked Questions

How do I connect this workflow to my local agent like OpenClaw or Claude Code?

Install commands

npm install -g @agentpmt/mcp-router
agentpmt-setup

Hosted MCP config

{
  "mcpServers": {
    "agentpmt": {
      "type": "streamable-http",
      "url": "https://api.agentpmt.com/mcp",
      "headers": {
        "Authorization": "Bearer <AGENTPMT_BEARER_TOKEN>",
        "x-instance-metadata": "{\"client\":\"generic-mcp\",\"platform\":\"remote\"}"
      }
    }
  }
}

How do I trigger this workflow?

Agent prompt

Call the AgentPMT-Workflow-Skills tool with action 'get_workflow_skill' and skill_id 6a270f928773e153162b7971 ("AI Gmail Inbox Classifier & Auto-Archive with Hourly Telegram Alerts").

Looking for help integrating AI into your business? Set up a free consultation.