whatsapp.sendTemplateMessage sends a template approved for the connected WhatsApp Business Account. Templates can start conversations outside the 24-hour customer-service window.
automations/send-whatsapp-reminder.automation.ts
to, templateName, and languageCode. Optional components supports header, body, quick-reply, and URL-button parameters. Values can be text, currency, date/time fallbacks, images, videos, or documents. callbackData is optional. Optional second argument { account } selects the WhatsApp binding.
Returns { messageId, recipientId, status? }. Meta can reject a request when the template, language, components, recipient opt-in, quality status, or account eligibility doesn’t match.