AgentPMT

Gmail Smart Inbox: Filter, Draft Responses, and Discord Summary

Saves ~45 min

Details

Searches Gmail for recent unread emails, cross-references senders against Google Contacts to filter out spam and automated messages, identifies important emails from real people, drafts and saves personalized responses in Gmail for each, then posts a formatted summary of all important emails and drafted responses to a Discord channel.

Tools In This Workflow

Workflow Steps

  1. 1Search Gmail for Unread Emails
  2. 2Fetch Google Contacts
  3. 3Filter Spam and Prioritize Emails
  4. 4Process Each Important Email
  5. 5Draft Personalized Response
  6. 6Save Draft in Gmail
  7. 7Compose Discord Summary
  8. 8Post Summary to Discord
Step 1 of 8
Tool1

Search Gmail for Unread Emails

Search Gmail for unread emails from the last day in the Primary category. This filters out Promotions, Social, Updates, and Forums tabs automatically. Return the full list of matching emails including sender name, sender email address, subject line, date received, and a snippet or full body of each message. This data will be used in the next step to identify which emails are from real people and deserve a response.

Search Gmail for Unread 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 6978484bd310638f00fad671 ("Gmail Smart Inbox: Filter, Draft Responses, and Discord Summary").

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