Skip to main content

Build with components

The SDK validates structures with Zod and converts your keys to snake_case for the Meta API.

Typed helper (optional)

Prefer typed guardrails? Use buildTemplateSendPayload. It outputs the same Meta structure with compile‑time guidance.

Flow buttons

If you pass an object for language, include policy: “deterministic”.

Tips

  • Ensure the template name and language match what’s approved in your WABA.
  • Provide parameters in the same order they appear in the template body and buttons.
  • For creation, examples are required when your header/body strings contain variables.