AgentPMT

Hourly Gmail Categorizer with Urgent Telegram Alerts

Saves ~30 min

Details

Runs every hour to fetch unread Gmail emails, categorizes them into four buckets (Account Notifications, Marketing, Human, Urgent), and sends a Telegram alert for any urgent emails that need a timely response. Non-urgent runs are logged silently.

Tools In This Workflow

Workflow Steps

  1. 1Fetch Recent Gmail Emails
  2. 2Categorize Emails
  3. 3Are There Urgent Emails?
  4. 4Format Urgent Email Alert
  5. 5Send Urgent Alert via Telegram
  6. 6Log No Urgent Emails
Step 1 of 6
Tool1

Fetch Recent Gmail Emails

Search Gmail for all unread emails received in the last hour. Return the full list of emails including sender, subject, snippet, and any relevant metadata so they can be categorized in the next step.

Fetch Recent Gmail Emails

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 6a2afdddfa26ba141e3e9e6a ("Hourly Gmail Categorizer with Urgent Telegram Alerts").

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