whatsapp.createMessageTemplate submits a template for the connected WhatsApp Business Account. Meta must approve it before whatsapp.sendTemplateMessage can use it.
automations/create-whatsapp-template.automation.ts
whatsapp.createMessageTemplate requires templateName, languageCode, category, and body. 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. Second argument { account } selects the WhatsApp binding.
Returns { templateId, category, status }. Status is usually pending, but Meta can approve or reject a template immediately. This action doesn’t send a message.