# Tutorial Integrasi WABA dengan Follow-Up Scalev (via WebHook)

### Yang perlu disiapkan dulu

Sebelum mulai, pastikan:

* Kamu sudah punya akun **BalesOtomatis** dan bisa login.
* Nomor **WhatsApp Official (WABA)** sudah **terkoneksi** di BalesOtomatis.
* Kamu punya akses ke **Dashboard Scalev** (menu Developers).

***

### A. Buat Webhook di BalesOtomatis

Webhook itu “alamat” yang dipakai Scalev untuk mengirim notifikasi order ke BalesOtomatis.

* Login ke **BalesOtomatis**\
  Buka: `https://app.balesotomatis.id`

<figure><img src="/files/FtI9q2J7LMM7SrZfu5Gy" alt=""><figcaption></figcaption></figure>

* Di dashboard, klik menu **Scalev Integrations**
* Klik tombol **Buat WebHook Baru**

<figure><img src="/files/YJpcXOQcyqtoAz8g2hfF" alt=""><figcaption></figcaption></figure>

* Isi form webhook:
  * **Nama WebHook**: bebas (contoh: `Webhook Scalev - WABA`)
  * **Nomor**: pilih **Nomor WABA** yang sudah kamu koneksikan sebelumnya

<figure><img src="/files/5YcSoXrjCZo0UxxMQuqo" alt="" width="375"><figcaption></figcaption></figure>

* Klik **Simpan**\
  Setelah tersimpan, akan muncul **URL WebHook**.
* **Copy URL WebHook** tersebut (nanti ditempel di Scalev)

<figure><img src="/files/J5FiWgM0fLiTWAjycT6b" alt="" width="563"><figcaption></figcaption></figure>

***

### B. Tempel Webhook ke Scalev

Sekarang kita masukkan URL webhook dari BalesOtomatis ke Scalev.

* Login ke **Dashboard Scalev**
* Masuk menu:\
  **Settings → Developers**

<figure><img src="/files/SZWTirRvHhz4XH4ABfp7" alt=""><figcaption></figcaption></figure>

* Cari bagian **Webhook URL**\
  Biasanya kamu perlu **scroll ke bawah** sampai ketemu kolom **Webhook URL**.
* Tempel **URL WebHook** yang tadi kamu copy dari BalesOtomatis ke kolom **Webhook URL**

<figure><img src="/files/EjVMHveJ1Oim3WflYaJn" alt=""><figcaption></figcaption></figure>

* Pilih event yang mau dikirim (WAJIB dicentang sesuai kebutuhan)\
  Centang event berikut agar notifikasinya aktif:

  ✅ **Order Created** (Pesanan Dibuat)\
  ✅ **Order Updated** (Pesanan Diperbarui)\
  ✅ **Order Deleted** (Pesanan Dihapus)\
  ✅ **Order Status Changed** (Status Pesanan Berubah)\
  ✅ **Order Payment Status Changed** (Status Pembayaran Berubah)\
  ✅ **Order E-Payment Created** *(WAJIB dicentang kalau pakai metode E-Payment)*
* Aktifkan webhook di Scalev
  * Ubah status webhook menjadi **Aktif** (biasanya tombol/slider di dekat kolom Webhook URL)
  * Klik **Save**

***

### C. Aktifkan Webhook di BalesOtomatis

Setelah selesai di Scalev, balik lagi ke BalesOtomatis untuk menyalakan webhook-nya.

* Kembali ke `https://app.balesotomatis.id`
* Buka lagi menu **Scalev Integrations**
* Cari webhook yang tadi kamu buat
* Ubah **State** menjadi **ON**

***

### D. Atur Template Pesan Follow-Up (pakai WABA)

Bagian ini untuk memastikan pesan follow-up dikirim via **Official WhatsApp (WABA)** dan memakai template resmi.

* Klik tombol **Configure Templates**

<figure><img src="/files/UUon7GfH6FjrJcnkAbIH" alt=""><figcaption></figcaption></figure>

* Pilih jenis Follow-Up (FU) yang mau kamu atur\
  Contoh: **Welcome Message**
* Aktifkan opsi **Use Official WhatsApp (WABA)**
* Pilih **Template WABA** yang sudah kamu buat sebelumnya
* Sesuaikan **Map Variables**\
  (Ini untuk mencocokkan data dari Scalev—misalnya nama, nomor order, status—ke variabel template WhatsApp.)

<figure><img src="/files/ELd3qd5ML0lEnxoIqPCi" alt=""><figcaption></figcaption></figure>

* Klik **Save Changes**


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.balesotomatis.id/integrations/scalev-integration/tutorial-integrasi-waba-dengan-follow-up-scalev-via-webhook.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
