waba-template-author
БесплатноЗапускает вложенные скриптыНе проверенWrites, classifies, validates, and repairs WhatsApp templates using the Sent v3 template definition contract. Use for utility, marketing, authentication, OTP…
от sentdm★ 40 звёзд на GitHubОб этом скилле
WhatsApp Template Author
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.
Source precedence
When official sources disagree:
- Use the live Sent v3 OpenAPI for paths, request fields, and response shapes.
- Use the most specific current Sent guide for lifecycle and policy semantics.
- Preserve unknown provider values instead of forcing them into a closed enum.
The canonical references are the Sent template-definition guide, the v3 OpenAPI, and the webhook events reference. Do not use snapshot-era v2 examples.
Authoring workflow
1. Establish intent and category
Collect the business event, recipient expectation, requested action, language, channel overrides, and realistic sample values. Choose:
UTILITYfor a specific non-promotional transaction, account, or service event.MARKETINGfor promotions, offers, re-engagement, product discovery, or mixed promotional content.AUTHENTICATIONfor 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.
2. Build the Sent create request
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.
3. Define variables exactly
Use placeholders such as {{0:variable}}, {{1:link}}, or {{2:media}}. Each placeholder needs one matching definition with:
- a unique non-negative integer
id; - a readable
name; - a matching
type; props.samplewith 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.
4. Add supported buttons
Sent currently recognizes QUICK_REPLY, URL, VOICE_CALL, PHONE_NUMBER, and COPY_CODE. Enforce:
- 10 buttons total;
- at most 2 URL buttons;
- at most 1 voice-call button;
- at most 1 phone-number button;
- at most 1 copy-code button;
- quick replies may use the remaining slots, up to the total of 10.
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.
5. Handle authentication templates
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.
6. Validate before submission
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
Установить waba-template-author в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл waba-template-author?
Writes, classifies, validates, and repairs WhatsApp templates using the Sent v3 template definition contract. Use for utility, marketing, authentication, OTP, Meta review, rejected templates, variables, buttons, channel overrides, or submission-ready Sent payloads.
Как установить скилл waba-template-author?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл waba-template-author запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
gtm-enterprise-account-planning
Strategic account planning and execution for enterprise deals. Use when planning complex sales cycles, managing multiple stakeholders, applying MEDDICC…
от GitHubgtm-partnership-architecture
Build and scale partner ecosystems that drive revenue and platform adoption. Use when building partner programs from scratch, tiering partnerships, managing…
от GitHublanding-page-conversion-audit
Audit a landing page, sales page or checkout page for conversion leaks and return a fix list ordered by expected revenue impact. Use when asked to review…
от GitHubpower-platform-architect
Use this skill when the user needs to transform business requirements, use case descriptions, or meeting transcripts into a technical Power Platform solution…
от GitHub