# Membuat template WhatsApp

Menulis template baru dan mengirimkannya ke Meta untuk ditinjau.

## Sebelum mulai

* Membuat template butuh izin `templates:manage`. Tanpa izin itu, editor menampilkan **You don't have access to WhatsApp Templates**.
* Template hanya bisa dibuat dan diedit di komputer. Di HP tampil **Creating and editing templates needs a computer.**
* **Submit to Meta** mengirim template ke Meta untuk ditinjau. Template baru bisa dipakai di broadcast setelah berstatus **Approved**.

## Langkah

<Steps>
  <Step>
    Di halaman **WhatsApp Templates**, klik **New template**.

    ![Tombol New template](/help/crm/whatsapp-templates/05-new-template-button.png)
  </Step>

  <Step>
    Isi **Name** (hanya huruf kecil, angka, dan garis bawah) dan **Language**. Pilih **Category**: **Marketing** (Offers, promotions, news), **Utility** (Orders, bills, reminders), atau **Authentication** (One-time codes).

    ![Kolom Name, Language, dan Category di editor template](/help/crm/whatsapp-templates/06-editor-name-category.png)
  </Step>

  <Step>
    Isi **Header** (opsional, teks) dan **Body**. Di **Body**, gunakan tombol **B**, **I**, **S** untuk format dan **+ Variable** untuk menambah variabel. Pilih **Format** variabel: **Numbered** (variabel berupa angka, mis. 1) atau **Named** (variabel berupa nama, mis. first\_name).

    ![Bagian Header dan Body di editor template](/help/crm/whatsapp-templates/07-editor-body.png)
  </Step>

  <Step>
    Untuk tiap variabel, isi contoh nilainya di bawah **Sample values (Meta reviews the message with these)**.

    ![Kolom sample value variabel](/help/crm/whatsapp-templates/08-editor-samples.png)
  </Step>

  <Step>
    Isi **Footer** (opsional), lalu tambahkan tombol dengan **+ Add button**. Jenis tombol: **Visit website**, **Quick reply**, atau **Call phone**. Untuk kategori **Marketing**, tersedia kotak **Add 'Stop promotions' button** dengan kolom **Stop promotions label**.

    ![Bagian Footer dan Buttons di editor template](/help/crm/whatsapp-templates/09-editor-buttons.png)
  </Step>

  <Step>
    Periksa kartu **Before you submit** di panel kanan. Tiga baris pertama tercentang otomatis bila tidak ada masalah pada isi template. Baris **Category fits a promotional message** (khusus **Marketing**) hanya pengingat yang kamu centang sendiri. Baris itu tidak menahan pengiriman.

    ![Kartu Before you submit](/help/crm/whatsapp-templates/10-before-you-submit.png)
  </Step>

  <Step>
    Klik **Submit to Meta** untuk mengirim template. Atau klik **Save draft** untuk menyimpannya sebagai draft dulu.

    ![Tombol Save draft dan Submit to Meta](/help/crm/whatsapp-templates/11-submit-button.png)
  </Step>
</Steps>

## Hasilnya

* Setelah **Submit to Meta**, muncul pesan **Template submitted. Meta usually reviews within 24 hours.** dan halaman kembali ke daftar template.
* Setelah **Save draft**, muncul **Draft saved.** dan template berstatus **Draft** di daftar.
* Pratinjau pesan tampil di panel kanan dan ikut berubah saat kamu mengetik.
* **Cancel** pada form yang sudah diubah memunculkan dialog **Discard changes?** dengan pilihan **Keep editing** dan **Discard**.
* Bila kategori **Marketing** dan kotak **Add 'Stop promotions' button** dimatikan, tampil peringatan bahwa tanpa tombol itu orang lebih mungkin memblokir atau melaporkan, yang menurunkan quality rating dan batas kirim.

## Masalah umum

Masalah yang diperiksa sebelum kirim (tampil di bawah **Before you submit**). Masalah variabel tidak tampil sebagai teks, tetapi sebagai ikon ✗ pada baris checklist **Every variable has a sample value**, **No variable at the very start or end**, dan **Variables are numbered in order**. Masalah lain tampil sebagai teks:

* **Name · Use lowercase letters, numbers and underscores only.**
* **Body · Write the message text.**
* **Body · The text is over 1024 characters.**
* **Body · Can't mix numbered and named variables.**
* **Buttons · The "Stop promotions" label must be 1 to 25 characters.**
* **Couldn't submit. Your changes are kept — try again.** — pengiriman gagal; isi form tidak hilang.
