createWhatsAppMessageTemplate creates a template on the connected WhatsApp Business Account. Meta must approve the template before you use it with sendWhatsAppTemplateMessage.
automations/create-whatsapp-template.automation.ts
templateName, languageCode, category, and body are required. The name must contain only lowercase letters, numbers, and underscores. category is "utility" or "marketing".
Body variable examples correspond to {{1}}, {{2}}, and later variables in order. Provide exactly one example per distinct body variable, or omit bodyVariableExamples when the body has no variables. A header can contain text, a Meta media example handle for an image, video, or document, or a location. Buttons support quick replies, phone numbers, and URLs. allowCategoryChange defaults to true, allowing Meta to recategorize the template instead of rejecting an otherwise valid submission. account selects the WhatsApp binding.
Returns { templateId, category, status }. The initial status is commonly pending; Meta can also immediately approve or reject a template. Creating the template does not send a message.