/sent:waba-template-authorfrom sent
Writes, classifies, validates, and repairs WhatsApp templates using Sent's v3 API. Handles utility, marketing, authentication, OTP, Meta review rejections, variables, buttons, and channel overrides.
Ships in sent. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Use this skill to turn a messaging intent into a valid body for POST /v3/templates, review it for WhatsApp policy risk, and explain the resulting lifecycle. Sent's template request is not Meta's Cloud API components[] shape.
When official sources disagree:
The canonical references are the Sent template-definition guide, the v3 OpenAPI, and the webhook events reference. Do not use snapshot-era v2 examples.
Collect the business event, recipient expectation, requested action, language, channel overrides, and realistic sample values. Choose:
UTILITY for a specific non-promotional transaction, account, or service event.MARKETING for promotions, offers, re-engagement, product discovery, or mixed promotional content.AUTHENTICATION for one-time verification codes and supported authentication flows.If content mixes utility and promotion, classify it as marketing or split it. See references/waba-template-categories.md.
POST /v3/templates accepts these top-level fields:
| Field | Requirement |
|---|---|
definition | Required. Contains header, body, footer, buttons, optional definitionVersion, and optional authenticationConfig. |
category | Optional: UTILITY, MARKETING, or AUTHENTICATION; omit for detection only when ambiguity is acceptable. |
language | Optional locale such as en_US. |
creation_source | Optional source string; from-api is the documented default. |
submit_for_review | Optional Boolean; default false. Draft and validate before review. |
sandbox | Optional Boolean for validation without side effects. |
Do not put name, channels, body, header, buttons, or components at the request root. name exists on update/response surfaces, not on the current create request.
{
"category": "UTILITY",
"language": "en_US",
"definition": {
"header": null,
"body": {
"multiChannel": {
"type": "body",
"template": "Hi {{0:variable}}, order {{1:variable}} has shipped.",
"variables": [
{
"id": 0,
"name": "customerName",
"type": "variable",
"props": {"sample": "Avery"}
},
{
"id": 1,
"name": "orderNumber",
"type": "variable",
"props": {"sample": "A-1042"}
}
]
},
"sms": null,
"whatsapp": null,
"rcs": null
},
"footer": null,
"buttons": null,
"definitionVersion": "1.0",
"authenticationConfig": null
},
"creation_source": "from-api",
"submit_for_review": false,
"sandbox": true
}
Use definition.body.multiChannel as the channel-neutral body. sms, whatsapp, and rcs are complete channel overrides, not fragments. Keep each body at or below 1,024 characters.
Use placeholders such as {{0:variable}}, {{1:link}}, or {{2:media}}. Each placeholder needs one matching definition with:
id;name;type;props.sample with realistic review and preview data.Keep placeholder IDs and variable IDs aligned inside every body override. Never output naked {{1}} placeholders in a Sent request.
Sent currently recognizes QUICK_REPLY, URL, VOICE_CALL, PHONE_NUMBER, and COPY_CODE. Enforce:
Buttons use id, type, and props. Labels are at most 25 characters. Require type-specific properties: quickReplyType; urlType and url; countryCode and phoneNumber; or offerCode. Quick replies and calls-to-action may coexist—do not invent an XOR rule.
For AUTHENTICATION, use definition.authenticationConfig:
{
"addSecurityRecommendation": true,
"codeExpirationMinutes": 10
}
Expiration is 1–90 minutes. Keep authentication content to the verification purpose, use one code variable and the supported copy-code action, and do not add marketing language, unrelated links, media, or promotional buttons.
Run:
python scripts/lint_waba_template.py template.json
The linter validates the Sent request shape, variables, the 1,024-character limit, channel overrides, every current button type, per-type limits, and authentication configuration. A Meta Cloud API example with components[] must fail with an explicit conversion error.
Use sandbox: true and submit_for_review: false while integrating. When the user is ready for provider review, show the final payload and explain that submission changes external state before proceeding.
Sent template resources use the known states DRAFT, PENDING, APPROVED, REJECTED, and PAUSED. Do not claim this is every value the API may ever return.
Template webhooks are WhatsApp approval events. They use field: "templates", omit sub_type and event, and carry the provider status in payload.status:
{
"field": "templates",
"timestamp": "2026-08-09T12:00:00Z",
"payload": {
"account_id": "00000000-0000-0000-0000-000000000000",
"template_id": "11111111-1111-1111-1111-111111111111",
"template_name": "order_update",
"whatsapp_template_id": "2222222222222222",
"status": "APPROVED",
"language": "en_US",
"category": "UTILITY",
"channel": "whatsapp",
"reason": null
}
}
Common forwarded values include PENDING, APPROVED, REJECTED, and CATEGORY_UPDATED. Meta can also send values such as PAUSED or DISABLED. Persist the raw string, handle known values, and safely surface unknown ones. See references/template-rejection-playbook.md.
Use template-builder-ui for editor architecture and client-side validation UX. Use sent-templates to list, inspect, or delete existing templates through the connected Sent tools. Use waba-embedded-signup for WABA connection. Use rcs-agent-onboarding for current RCS launch capabilities.
Meta Cloud API payloads may appear in references/waba-template-examples.md, but every such example must be clearly labelled non-Sent and must never be passed to the Sent linter as a valid request.
agents/openai.yaml (opens in a new tab)references/template-rejection-playbook.md (opens in a new tab)references/waba-template-categories.md (opens in a new tab)references/waba-template-examples.md (opens in a new tab)scripts/fixtures/utility_bad.json (opens in a new tab)scripts/fixtures/utility_good.json (opens in a new tab)scripts/lint_waba_template.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
whatsapp-templates, sent-api, template-authoring, meta-whatsapp, waba
npx claudepluginhub sentdm/sent-plugin --plugin sent21 skills in this plugin
/messaging-performance-analyzerAnalyzes Sent message delivery, webhook, and activity data to explain funnel drop-offs, delivery failures, read-rate gaps, channel fallback, and suspicious performance changes. Use when a user says MDR, delivery report, message activity, webhook event, failed messages, low delivery rate, RCS fallback, WhatsApp read rate, SMS filtering, campaign performance, or asks why messages did not arrive./migrate-to-sentPlans and executes a migration from Twilio, Sinch, Infobip, Vonage, or MessageBird/Bird to Sent v3 — mapping send calls, status vocabularies, webhook signature schemes, opt-out stores, templates, and tenancy models, then cutting over safely with dual-run and rollback. Use when replacing an incumbent CPaaS provider, translating provider code or webhook handlers to Sent, or planning a phased cutover and its verification gates./rcs-agent-onboardingGuides current Sent RCS and RBM onboarding, launch evidence, carrier approval, text and suggestion-chip templates, Sender Profile readiness, and safe routing. Use for RCS launch, fallback, pinned-channel tests, or broadcast prevention./sender-profile-architectDesigns Sent Sender Profile architecture for multi-tenant, multi-brand, and multi-channel systems. Use for API-key scoping, x-profile-id, isolation, inheritance, sharing, billing, WABA, 10DLC campaigns, webhooks, or tenant offboarding./sentRoutes broad or ambiguous Sent requests to the correct MCP-backed operation or specialist skill. Use when the user asks what Sent can do, says "help me with Sent" or "set up messaging," needs several Sent workflows, or has not made the channel, task, or desired operation clear enough to select a more specific skill./sent-account-readinessChecks the authorized Sent account, organization and Sender Profile scope, balance, onboarding/KYC status, and readiness with the Sent MCP tools. Use when a user asks whether the account can send, what the MCP connection authorized, whether funds are sufficient, why onboarding is blocked, or for a preflight check before a mutation or channel launch. Route remediation to the relevant onboarding or compliance skill.Other plugins' skills for the same job