B S W A G I C
Documentation

Templates

WhatsApp message templates are predefined message formats used by businesses to communicate with customers who have opted in.

Create New Template Bot Form

This shows a list of available templates along with essential details such as their status, category, language, type, and message body content.


Template List Column Breakdown

  • SR.NO : Serial number indicating the order of the template in the list.
  • Template Name : The unique name/identifier of the template.
  • Languages : Language code used in the template (e.g., enUS, id, ptBR, es).
  • Category : Purpose of the template(UTILITY: Transactional/service messages,MARKETING: Promotional content)
  • Template Type : Message format(TEXT, IMAGE, VIDEO, or - (unspecified)).
  • Status : Approval state(APPROVED, PENDING, REJECTED).
  • Body Data : Preview of the message with placeholders like 1, 2, etc.

Load Template Button

The Load Template button is used to refresh the template list by fetching the latest approved or updated templates directly from your Meta WhatsApp Cloud API account.

to Use It

  • 1 : After creating or editing a template in the Meta Business Manager.
  • 2 : When new templates have been approved and you want them reflected in your app.
  • 3 : To sync template statuses (e.g., from PENDING to APPROVED).
  • 4 : If templates were deleted or renamed, and the list needs updating .

How It Works

  • 1 : When clicked, it triggers an API call to Meta’s Cloud API endpoint.
  • 2 : Retrieves the most up-to-date list of templates associated with your WhatsApp Business Account.
  • 3 : Automatically refreshes the UI to display new or updated templates.
  • 4 : To sync template statuses (e.g., from PENDING to APPROVED).

This ensures the list is always in sync with what’s available on Meta’s servers.

Templates are sourced directly from Meta’s Cloud API. You can manage and send templates via API or Meta’s Business Manager.
Learn more: Meta WhatsApp Cloud API - Send Message Templates https://developers.facebook.com/docs/whatsapp/cloud-api/guides/send-message-templates/