Create a new message template for the WhatsApp Business Account. Templates must be approved by WhatsApp before they can be used. Templates are required for marketing messages and messages sent outside the 24-hour window.
nameRequiredstringUnique template name. Must be lowercase, alphanumeric with underscores only. Maximum 512 characters. Example: 'order_confirmation_v1'.
categoryRequiredstringTemplate category. AUTHENTICATION: for OTP/verification codes. MARKETING: for promotional content (requires opt-in). UTILITY: for transactional updates like order status, appointments.
languageRequiredstringTemplate language code in ISO 639-1 format with country code. Examples: 'en_US' (US English), 'es_ES' (Spanish), 'pt_BR' (Brazilian Portuguese).
componentsarrayList of template components. Required when creating a template from scratch: must include at least one BODY component, and can optionally include one HEADER and one BUTTONS component. Omit when cloning a Template Library template via library_template_name.
allow_category_changebooleanOptional. Set to true to allow Meta to automatically assign/reassign the template category. If omitted, the template may be rejected due to miscategorization.
library_template_namestringOptional. The exact name of a Meta Template Library template to clone (e.g. 'order_confirmation_2'). When set, the template is created from the pre-approved library template instead of from scratch; components should be omitted.
library_template_body_inputsobjectOptional. Used with library_template_name. Object supplying body-level inputs for the library template (e.g. {'add_contact_number': true, 'add_learn_more_link': true, 'add_security_recommendation': true, 'add_track_package_link': true, 'code_expiration_minutes': 10}).
library_template_button_inputsarrayOptional. Used with library_template_name. List of button input objects supplying values for the library template's buttons (e.g. [{'type': 'PHONE_NUMBER', 'phone_number': '+15551234567'}] or [{'type': 'URL', 'url': 'https://example.com'}]).
dataRequiredData from the action execution
errorstringError if any occurred during the execution of the action
successfulRequiredbooleanWhether or not the action execution was successful or not
OAuth connection. Risk level 2 of 5.
Free Action
No published Skills explicitly reference this Action yet.