CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

send-transactional

Send transactional emails or SMS for app-triggered communications: receipts, password resets, magic links, OTPs, order confirmations, shipping notifications and system alerts, by REST API, SDK or Events API. Single recipient, immediate delivery, no campaign or approval needed. Use when: "transactional email", "email API", "receipt email", "password reset email", "send notification email", "order confirmation", "OTP email", or "system email".

Quality

88%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Low

Low-risk findings worth noting

SKILL.md
Quality
Evals
Security

Send Transactional

Help the user send or set up transactional emails/SMS — immediate, single-recipient messages triggered by application events.

Understand the Use Case

Common transactional email types:

  • Password reset: OTP or magic link
  • Order confirmation: Receipt with order details
  • Shipping notification: Tracking info
  • Welcome/verification: Account activation
  • System alert: Service status, security notice
  • Invoice/receipt: Payment confirmation

Design Approach

Quick Send (Plain Text)

For a one-off send from Claude over MCP, use nitro_send_message:

channel: "email"
to: "user@example.com"
subject: "Your order #1234 is confirmed"
body: "Thank you for your order..."

Branded Template

For on-brand transactional emails:

  1. Create a template with nitro_manage_template via the composition contract (composition_mode: "intent" → fill the returned next_call → persist with composition_mode: "draft"; see the compose-email skill)
  2. For a one-off MCP send, call nitro_send_message with template_id
  3. For application-triggered production sends, wire POST /v1/my/messages or ns.messages.send using template_id

Live sends require an idempotency_key — reuse the same stable key on retry to prevent duplicate delivery.

Merge Variables

Use the data field for personalization:

data: { order_id: "1234", customer: { name: "Alice" }, amount: "$49.99" }

Reference in templates/body as {{ data.order_id }}, {{ data.amount }}, or nested paths like {{ data.customer.name }}.

Key Differences from Marketing Email

MarketingTransactional
AudienceLists/segmentsSingle recipient
Requires subscriptionYesNo
CAN-SPAM footerRequiredSkipped
Unsubscribe linkRequiredNot needed
DeliveryCampaign workflowImmediate
TrackingOpens/clicks trackedOpens/clicks tracked (engagement tracking stays enabled)

Do not model transactional sends as MCP flows. Use nitro_send_message for one-off MCP sends, normal flow email steps for lifecycle automation, and API/SDK transactional sends for application events.

For Developers

Help developers integrate transactional emails into their apps:

API Integration

POST https://api.nitrosend.com/v1/my/messages
Authorization: Bearer nskey_live_...
Idempotency-Key: verification-user-123-attempt-1
Content-Type: application/json

{
  "channel": "email",
  "to": "user@example.com",
  "subject": "Your verification code",
  "body": "Your code is: 123456",
  "data": { "code": "123456" }
}

SDK Integration

import { Nitrosend } from '@nitrosend/sdk'
const ns = new Nitrosend('nskey_live_...')
await ns.messages.send({
  channel: 'email',
  to: 'user@example.com',
  subject: 'Your verification code',
  template_id: 42,
  data: { code: '123456' }
}, 'verification-user-123-attempt-1')

Dry Run

Always offer to do a dry run first: nitro_send_message or POST /v1/my/messages with dry_run: true validates without sending.

Idempotency

Every live send must have a stable idempotency key. Reuse it only for an exact retry of the same recipient and payload; use a new key for a different logical message. MCP uses idempotency_key, the REST API uses the Idempotency-Key header, and the Node SDK accepts the key as the second argument to messages.send.

Nitrosend Sender Readiness

Before the first live email, inspect brand_subdomain in nitro_get_status. If preparation is required, use nitro_manage_domains(operation: "prepare_brand_subdomain"), poll until it is ready, then select it explicitly. A first authenticated send may return sender_identity_provisioning; that response is retryable, but no message was stored or queued. Retry with the same idempotency key only after readiness and selection.

Repository

nitrosend/claude

Path

skills/send-transactional/SKILL.md

Last updated
First committed

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.