cw-email

Installation
SKILL.md

CW Agents Outbound Email

Send transactional email through the CW Agents outbound email feature. The browser calls the app's own server (normally through tRPC); the server calls the email endpoint so the key never reaches browser bundles, responses or logs.

  • Read projectId from .tasks/task.json (.tasks/task.md lists it in frontmatter) and put the real ID in the server constant. If you can't determine it, report that in the task outcome; a placeholder won't work.
  • CW Agents injects CUSTOMWARE_EMAIL_KEY into the dev sandbox and live app when the org's Outbound email feature is on. If the key is missing, report that outbound email isn't available for this org; never invent credentials or silently switch providers.
  • Send exactly { to, subject, html, text }: one recipient address, a subject and both body versions. The endpoint accepts no attachments, cc/bcc, reply-to, from or templates. Max request: 1 MiB.
  • Name the app in the body: the sender is always “Customware AI” support@customware.ai and can't be changed.
  • Send only transactional messages. Never send bulk mail, marketing or digests to all users, or retry in a loop.
  • On failure, log the status and the x-request-id response header to trace the send. Never log the email body or the gateway's response body; content can contain reset links.

Send from the server

apps/api/src/services/email.ts:

const PROJECT_ID = "<projectId>"; // Replace with the real ID from .tasks/task.json.
const SEND_URL = `https://agents.customware.ai/api/features/out-email/v1/${PROJECT_ID}/send`;
Installs
97
GitHub Stars
2
First Seen
7 days ago