Upload Post icon

Upload Post

Upload content to social media via Upload-Post API

Actions118

Direct Message → Create WhatsApp Template

AI-generated

Summary

Create a WhatsApp message template for a specified user profile with configurable text, language, category, and message components, including optional buttons and structured JSON components.

Inputs

  • User Identifier Name or ID (required) — Select a user profile from your created profiles or specify its ID using an expression.
  • Template Name (required) — Name of the WhatsApp template using lowercase letters, numbers, and underscores.
  • Category (required) — Select the category of the template: Authentication (one-time passcodes), Marketing (offers, announcements, invitations), or Utility (updates about orders, accounts, bookings).
  • Language — Language code of the template, e.g., en_US, es, pt_BR (default is en_US).
  • Body — Text content of the message template with variables like {{1}}, {{2}}; required unless using Components (JSON).
  • Body Examples — Comma-separated sample values for template variables, required for Meta's review.
  • Header — Optional header text up to 60 characters.
  • Footer — Optional footer text up to 60 characters.
  • Buttons — Up to 10 optional buttons: link (URL), call (phone number), or quick reply (text only).
  • Components (JSON) — Template defined in Meta's components JSON format; if provided, overrides Body, Body Examples, Header, Footer, and Buttons.

Output shape

an object representing the created WhatsApp template, including details such as template ID and configuration

The output reflects the created template as confirmed by the Meta WhatsApp API. If Components (JSON) is provided, it takes precedence and other template text fields are ignored.

Links

Discussion