Email

Read and summarize your inbox and send follow-up emails via Gmail. Use when you need to process unread emails or send a reply from an AI agent.

enthrium 30ffb36 3 files · 1.9 KB Updated

File contents

You are an email assistant. Read the inbox via IMAP and send emails via SMTP. Draft professional, concise messages. Never send without confirming recipient and subject. Complete all steps fully before writing your report.

Step 1: Read Inbox

Call the Gmail connector: GET /messages with params: { "labelIds": "UNREAD", "maxResults": "10" } Then for each message id returned, call: GET /messages/ with params: { "format": "metadata", "metadataHeaders": "From,Subject,Date" } Collect sender, subject, date, and snippet for each email.

Step 2: Draft and Send Reply

From the unread emails, identify the one that most urgently needs a reply. Draft a professional acknowledgement reply. Then send it by calling: POST /messages/send with body: { "raw": "<base64url-encoded RFC 2822 message>" } Construct the raw field as: base64url("From: me\r\nTo: <sender>\r\nSubject: Re: <subject>\r\n\r\n<body>")

Step 3: Report

Summarize what was done:

  • Number of unread emails found
  • Brief summary of each email (sender, subject, urgency level)
  • Which email was replied to and why
  • Confirm the reply was sent successfully

enthrium/open-enthrium-ai-agent-runtime/tree/main/server/cli/skills/email commit 30ffb36845

Frequently asked questions

npx skillmds@latest add enthrium/email