ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified communication Safety 3/5

gmail-client-PM

Read and send emails via Gmail. Use to list unread messages, read specific emails by ID, or send new emails.

Why use this skill?

Integrate Gmail with your OpenClaw agent to automate reading, listing, and sending emails using simple CLI commands and secure App Passwords.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/dexiaong/gmail-client-pmw
Or

What This Skill Does

The gmail-client-PM skill is a robust Python-based integration designed to bridge the gap between your OpenClaw AI agent and your Gmail account. It leverages standard IMAP and SMTP protocols to provide a secure and efficient way to handle email communication without leaving your workspace. By configuring this skill, you empower your agent to autonomously monitor your inbox for unread messages, retrieve the specific contents of important emails via their unique IDs, and compose or send new messages directly from the command line or agent interface. This effectively turns your communication workflow into a programmable asset, allowing for automated responses and streamlined inbox management.

Installation

To integrate this skill into your environment, use the OpenClaw Hub CLI. Execute the following command in your terminal:

clawhub install openclaw/skills/skills/dexiaong/gmail-client-pmw

After installation, you must configure your environment variables to authenticate with Google. You will need to generate an 'App Password' within your Google Account security settings (2FA must be enabled). Set the variables as follows:

  • GMAIL_USER: Your full Gmail address.
  • GMAIL_PASS: The 16-character App Password generated for your account.

Use Cases

  • Automated Inbox Triage: Have your agent list all unread emails to summarize your daily workload.
  • CRM Integration: Automatically send follow-up emails to prospects based on data retrieved from other AI analysis skills.
  • Smart Notifications: Configure your agent to read urgent emails and provide a brief summary of the content to your console.
  • Routine Communication: Use the agent to send standardized reports or project updates to team members at regular intervals.

Example Prompts

  1. "Check my Gmail account and list all the unread messages from the last 24 hours."
  2. "Read the email with ID 1042 and provide a concise three-bullet point summary of its content."
  3. "Send an email to [email protected] with the subject 'Project Status' and the body 'Hi John, the status update is complete.'"

Tips & Limitations

  • Security: Always use a Google App Password rather than your primary account password. Never share your environment variables in public repositories.
  • Reliability: As this tool relies on IMAP/SMTP, ensure your internet connection is stable; intermittent network drops can occasionally cause the script to hang.
  • Batching: The current iteration is best suited for individual task execution. For high-volume mailing lists, ensure you remain within Google's daily sending limits to avoid account suspension.
  • Formatting: When sending emails, the body content is treated as plain text; advanced HTML formatting may not be rendered correctly by the tool.

Metadata

Author@dexiaong
Stars1100
Views3
Updated2026-02-17
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-dexiaong-gmail-client-pmw": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#email#gmail#productivity#automation#imap
Safety Score: 3/5

Flags: network-access, external-api