Gmail Draft Update Body for Openclaw

An atomic node skill designed to programmatically update the body text of existing Gmail drafts using a standardized CLI interface.

zvirb
v1.0.0
Apr 28, 2026
0
692
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install gmail-draft-update-body

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-draft-update-body 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 Draft Update Body?

The Gmail Draft Update Body skill is a specialized tool within the Openclaw Skills ecosystem designed for precision email management. It adheres to Lean manufacturing principles, specifically Kaizen, by serving as an atomic node that handles exactly one task: modifying draft content. This prevents the complexity of multi-field string construction and ensures a high level of reliability.

By leveraging the native gog CLI, this skill enables AI agents to maintain standardized work patterns. It is built to bridge the gap between automated workflows and manual email polishing, ensuring that draft content is always up-to-date without the risk of overwriting critical metadata like recipients or subject lines.

Gmail Draft Update Body Use Cases

  • Automating the insertion of generated reports or summaries into prepared email templates.
  • Programmatically refreshing draft content based on the latest data updates before final review.
  • Standardizing team-wide email responses by injecting approved messaging into active Gmail drafts.
  • Integrating AI-driven content generation directly into existing Gmail communication loops via Openclaw Skills.

How Gmail Draft Update Body Works

  1. The AI agent identifies a requirement to update a specific Gmail draft's body based on a provided draftId.
  2. The skill invokes the gog CLI using a standardized command structure including the --body and --json flags.
  3. The Jidoka Validation Loop initiates, executing the command and evaluating the JSON response to verify a successful update.
  4. If an error is detected or a hallucination occurs, the system autonomously triggers a retry (up to 3 attempts).
  5. Upon successful verification, the skill returns a confirmation JSON object to the orchestrator.

Gmail Draft Update Body Setup

To deploy this skill, ensure the gog CLI tool is installed on your system. Run the following commands to initialize:

# Ensure gog CLI is installed
gog --version

# Authenticate your Gmail account (if not already done)
gog auth login

# The skill is now ready to be called by your AI agent

Gmail Draft Update Body Data Schema & Taxonomy

The skill utilizes a strict input/output schema to ensure compatibility within the Openclaw Skills framework.

Parameter Type Description
draftId String The unique identifier of the target Gmail draft.
body String The new text content to be placed in the draft.
json Flag Ensures the CLI output is returned in parseable JSON format.

Response Structure:

  • status: Confirmation of the update success.
  • data: Details of the updated draft object.

Gmail Draft Update Body Advanced Features

  • Jidoka (Autonomous Defect Detection): Automatically detects failures or parameter hallucinations and manages the recovery process.
  • Atomic Execution: Strictly limited scope prevents side effects on other draft fields like CC, BCC, or Subject.
  • CLI Native Integration: Directly leverages the gog binary for high-speed, reliable execution across all operating systems.
  • Retry Logic: Built-in resilience with a max_retries=3 configuration to ensure task completion in unstable environments.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*