Mail Parser for Openclaw

Automatically transform plain text emails into clean, actionable JSON objects for seamless automation.

fdrummer
v1.0.0
Feb 28, 2026
0
898
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install mailparser

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 mailparser 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 Mail Parser?

The Mail Parser is a dedicated tool within the Openclaw Skills library designed to bridge the gap between unstructured communication and structured data systems. By analyzing the raw body of an email, this skill identifies critical information such as sender details, company domains, and promotional data. It is specifically engineered for developers who need to feed email data into databases, CRMs, or custom applications without the overhead of manual parsing.

This skill uses intelligent entity extraction to isolate specific fields while maintaining a strict output format. Whether you are processing bulk newsletters or individual sales inquiries, using this Openclaw Skills component ensures that your data remains consistent, clean, and ready for programmatic use.

Mail Parser Use Cases

  • Automatically capturing lead information from incoming sales emails.
  • Extracting and centralizing discount codes from marketing newsletters.
  • Categorizing customer communications into orders, offers, or general inquiries.
  • Parsing contact details for automated CRM entry and synchronization.

How Mail Parser Works

  1. The skill receives raw, plain-text email content as its primary input.
  2. It identifies the sender's email address and isolates the contact person's name.
  3. The logic extracts the company name by identifying the domain between the @ symbol and the first dot.
  4. The content is scanned for specific patterns representing discount or promotional codes.
  5. The email is classified into one of four categories: order, offer, newsletter, or other.
  6. The final output is returned as a single, valid JSON object.

Mail Parser Setup

To integrate this tool into your environment, ensure you have the core Openclaw Skills framework installed. Follow these steps to get started:

# Navigate to your local skills directory
cd openclaw-assets/skills

# Clone or download the mail-parser skill
git clone https://github.com/openclaw/mail-parser.git

# Configure your agent to point to the mail-parser logic
openclaw link mail-parser

Mail Parser Data Schema & Taxonomy

The Mail Parser returns a flat JSON structure designed for high compatibility with various data sinks. Below is the schema detail:

Property Type Description
company string The extracted company name derived from the email domain.
email string The full email address of the sender.
contact_person string The name of the person associated with the email content.
discount_code string Any promotional or discount codes found in the text.
type string The category: order, offer, newsletter, or other.

Mail Parser Advanced Features

  • Intelligent domain-to-company mapping for cleaner organizational data.
  • Zero-bloat output containing only the requested JSON keys.
  • Native compatibility with other Openclaw Skills for multi-step agentic workflows.
  • High-speed processing of plain text inputs for real-time automation pipelines.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*