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 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.

Tools In This Workflow

Workflow Steps

  1. 1Fetch All Inbox Messages
  2. 2For Each Email in Inbox
  3. 3Get Full Email Details
  4. 4Determine if Sender is Individual Human
  5. 5Is Sender an Individual Human?
  6. 6Merge Correspondence Paths
  7. 7Classify Email Into Label
  8. 8Apply Gmail Label to Email
  9. 9Archive Email (Remove from Inbox)
  10. 10Is Label Important?
  11. 11Build Gmail Direct Link
  12. 12Hourly Run Summary
  13. 13Skip Prior Correspondence (Automated Sender)
  14. 14Check If User Previously Emailed This Person
  15. 15Send Telegram Important Alert
Step 1 of 15
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.

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.