Gmail Enhanced for Openclaw

A sophisticated Gmail integration for AI agents featuring advanced search, automated label management, and structured data extraction.

jason-aka-chen
v1.0.0
Mar 22, 2026
0
763
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install gmail-enhanced-chen

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install gmail-enhanced-chen using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Gmail Enhanced?

Gmail Enhanced is a high-performance integration designed for the Openclaw Skills ecosystem, enabling AI agents to interact deeply with Google’s email services. This skill transcends basic email functionality by providing tools for complex query building, automated email processing, and advanced attachment handling. By integrating this skill, developers can build agents capable of managing entire inboxes, categorizing communications through nested labels, and extracting structured data from raw email content.

Utilizing Openclaw Skills allows for the seamless execution of background workflows such as invoice parsing and contact information extraction. Whether you are building a personal productivity assistant or a specialized business tool, Gmail Enhanced provides the robust API interface needed to turn a standard Gmail account into a programmable data source and communication hub.

Gmail Enhanced Use Cases

  • Automating the classification of business receipts and invoices into nested label structures.
  • Extracting contact information and structured data from high volumes of incoming lead emails.
  • Creating automated email response systems using customizable templates and logic-based rules.
  • Performing bulk search and download operations for specific file types across historical email archives.
  • Monitoring inbox health and organization through real-time label statistics and automated archiving.

How Gmail Enhanced Works

  1. The agent initializes the GmailClient using OAuth 2.0 credentials provided via Openclaw Skills configuration.
  2. Users or automated triggers define complex search queries to isolate specific messages or threads.
  3. The skill retrieves email metadata, bodies, and attachments based on the specified search parameters.
  4. Processing rules are applied to automatically categorize, label, or parse the retrieved content.
  5. Structured output, such as extracted invoice data or downloaded files, is returned to the agent for further action.

Gmail Enhanced Setup

To integrate this skill with Openclaw Skills, ensure you have the Gmail API enabled in your Google Cloud Console.

  1. Generate OAuth 2.0 credentials and download your credentials.json file.
  2. Set the environment variables to point to your credential files:
export GMAIL_CREDENTIALS_PATH="/path/to/credentials.json"
export GMAIL_TOKEN_PATH="/path/to/tokens.json"
  1. Perform the initial authentication flow to generate the tokens.json file for persistent access.

Gmail Enhanced Data Schema & Taxonomy

Gmail Enhanced organizes data into structured schemas for consistent processing within Openclaw Skills:

Data Type Description
Message Object Contains ID, threadID, snippet, headers, and full body content.
Label Metadata Includes name, visibility settings, and color hexadecimal codes.
Attachment Schema Details file name, MIME type, size, and unique attachment ID.
Automation Rules Defines query-action pairs for autonomous email processing.
Parsed Entities Structured JSON containing extracted names, dates, and financial figures from email bodies.

Gmail Enhanced Advanced Features

  • Complex Boolean search logic (AND, OR, NOT) for precise email filtering.
  • Deep attachment analysis including size filtering and extraction to cloud storage.
  • Automated parsing of HTML and plain-text emails to retrieve structured business data.
  • Recursive label management for maintaining complex, nested folder architectures.
  • Rule-based automation engine that executes multi-step actions on incoming mail without manual intervention.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*