Email Engine

v1.0.0

Send emails, bulk campaigns, AI-powered classification, auto-reply generation, and template management.

0· 12·0 current·0 all-time
MIT-0
Download zip
LicenseMIT-0 · Free to use, modify, and redistribute. No attribution required.
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
medium confidence
Purpose & Capability
Name/description (send emails, campaigns, AI classification/reply, templates) align with the endpoints documented in SKILL.md. No unrelated binaries, env vars, or config paths are requested; the gateway handles sending and billing, which explains the lack of local credentials.
Instruction Scope
SKILL.md instructs callers to POST email content, recipients, thread history, and CRM context to gateway.mcfagentic.com endpoints — this is consistent with the skill purpose. Note: those instructions will transmit potentially sensitive email content and recipient lists to an external service; the file does not instruct the agent to read local files or extra environment variables beyond what's in the request payload.
Install Mechanism
Instruction-only skill with no install spec or code files — lowest install risk. Nothing is downloaded or written to disk by the skill itself.
Credentials
No environment variables or credentials are requested by the skill. This is coherent because authentication/billing is handled by an external x402 payment flow described in the SKILL.md. However, sending emails typically requires a sending identity; here the gateway accepts arbitrary 'from' addresses in requests which could enable spoofing if the gateway doesn't enforce verification.
Persistence & Privilege
The skill is not always-enabled and uses normal autonomous invocation behavior. It does not request persistent system privileges or modify other skills' configs.
Assessment
This skill is internally consistent, but before installing you should: 1) Verify the gateway (https://gateway.mcfagentic.com) — look for documentation, a privacy policy, and reputation information — because all email content, recipient lists, and CRM context will be sent there. 2) Confirm billing mechanics for the x402 payment flow so you understand charges and can limit spending. 3) Test with safe addresses and small batches to ensure the gateway enforces 'from' address verification and rate limits (to avoid spoofing or accidental spam). 4) Restrict autonomous use in your agent: require explicit approval for bulk sends or sending to real prospects. 5) Check compliance with applicable anti-spam/privacy rules (CAN-SPAM, GDPR) before running campaigns. If you need stronger assurance, ask the publisher for a homepage, documentation, or an audit of their sending practices and provenance of the gateway service.

Like a lobster shell, security has layers — review code before you run it.

latestvk97djtzts3344bvqtz4dke6xw98406x6

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

SKILL.md

Email Engine

Send transactional and outreach emails, run bulk campaigns, classify inbound messages with AI, generate contextual replies, and manage reusable templates. Designed for AI agents that need to communicate with humans over email as part of autonomous workflows.

Authentication

All endpoints require x402 payment (USDC on Base L2). Send a request without payment to receive pricing info in the 402 response.

Endpoints

Send Email

  • Method: POST
  • Path: /api/email/send
  • Price: $0.02 per call
  • Description: Send a single email. Supports HTML and plain text, attachments, and reply-to threading.

Request:

{
  "to": "mike@comfortzonehvac.com",
  "from": "cameron@mcfagentic.com",
  "subject": "Quick question about your scheduling, Mike",
  "body_html": "<p>Hi Mike,</p><p>I noticed Comfort Zone HVAC is crushing it on reviews...</p>",
  "body_text": "Hi Mike, I noticed Comfort Zone HVAC is crushing it on reviews...",
  "reply_to": "cameron@mcfagentic.com",
  "track_opens": true,
  "track_clicks": true
}

Response:

{
  "id": "msg_4k9xr2",
  "status": "sent",
  "to": "mike@comfortzonehvac.com",
  "sent_at": "2026-04-01T14:40:00Z"
}

Send Bulk

  • Method: POST
  • Path: /api/email/send-bulk
  • Price: $0.01 per recipient
  • Description: Send a campaign to multiple recipients. Supports personalization variables and staggered delivery.

Request:

{
  "template_id": "tmpl_cold_outreach_v2",
  "recipients": [
    {"email": "mike@comfortzonehvac.com", "variables": {"first_name": "Mike", "company": "Comfort Zone HVAC"}},
    {"email": "sarah@northtexasair.com", "variables": {"first_name": "Sarah", "company": "North Texas Air"}}
  ],
  "from": "cameron@mcfagentic.com",
  "stagger_minutes": 5,
  "track_opens": true
}

Response:

{
  "campaign_id": "camp_7n3mp1",
  "total_recipients": 2,
  "status": "queued",
  "estimated_completion": "2026-04-01T14:50:00Z"
}

AI Classify

  • Method: POST
  • Path: /api/email/ai/classify
  • Price: $0.05 per call
  • Description: Classify an inbound email using AI. Returns intent, sentiment, urgency, and suggested action.

Request:

{
  "subject": "Re: Quick question about your scheduling",
  "body": "Hey Cameron, this sounds interesting. We've been struggling with scheduling for a while. Can you tell me more about pricing?",
  "sender": "mike@comfortzonehvac.com"
}

Response:

{
  "classification": {
    "intent": "interested",
    "sentiment": "positive",
    "urgency": "medium",
    "category": "sales-reply",
    "suggested_action": "send-pricing",
    "confidence": 0.94
  }
}

AI Reply

  • Method: POST
  • Path: /api/email/ai/reply
  • Price: $0.10 per call
  • Description: Generate a contextual reply to an email thread using AI. Takes conversation history and CRM context.

Request:

{
  "thread": [
    {"from": "cameron@mcfagentic.com", "body": "Quick question about your scheduling..."},
    {"from": "mike@comfortzonehvac.com", "body": "This sounds interesting. Can you tell me more about pricing?"}
  ],
  "context": {
    "lead_stage": "qualified",
    "solution": "ai-scheduling-bundle",
    "monthly_price": "$497"
  },
  "tone": "casual-professional",
  "goal": "book-a-call"
}

Response:

{
  "reply": {
    "subject": "Re: Quick question about your scheduling",
    "body": "Hey Mike,\n\nGlad it caught your eye. The AI scheduling package runs $497/mo and typically pays for itself within the first month...",
    "call_to_action": "calendar-link"
  }
}

Manage Templates

  • Method: POST
  • Path: /api/email/templates
  • Price: $0.02 per call
  • Description: Create or update reusable email templates with personalization variables.

Request:

{
  "name": "Cold Outreach v2",
  "subject": "Quick question about your {{pain_point}}, {{first_name}}",
  "body_html": "<p>Hi {{first_name}},</p><p>I noticed {{company}} is doing great work in {{industry}}...</p>",
  "variables": ["first_name", "company", "industry", "pain_point"]
}

Response:

{
  "id": "tmpl_cold_outreach_v2",
  "name": "Cold Outreach v2",
  "variables": ["first_name", "company", "industry", "pain_point"],
  "created_at": "2026-04-01T14:45:00Z"
}

Use Cases

  • An outreach agent sends personalized cold emails to leads from the pipeline
  • A support agent classifies inbound emails and routes them to the right workflow
  • An autonomous sales agent generates and sends follow-up replies based on prospect responses
  • A marketing agent runs drip campaigns across segmented lead lists
  • An agent orchestrator monitors email threads and escalates urgent messages

Pricing

EndpointPriceDescription
/api/email/send$0.02Send a single email
/api/email/send-bulk$0.01/recipientBulk campaign send
/api/email/ai/classify$0.05AI email classification
/api/email/ai/reply$0.10AI reply generation
/api/email/templates$0.02Create/update templates

Files

1 total
Select a file
Select a file to preview.

Comments

Loading comments…