# Menambah langkah

Menambah langkah berisi kondisi dan aksi ke flow.

## Sebelum mulai

* Pilih flow di halaman [Conversation Flow](/help/chatbot/conversation-flow).
* Langkah dicek berurutan dari nomor 1 dan berhenti di langkah pertama yang cocok. Tiap langkah wajib punya minimal satu kondisi.

## Langkah

<Steps>
  <Step>
    Klik **Add step** di kanan atas flow (atau **Add the first step** bila flow belum punya langkah). Panel **New step** ("Checked in order until one matches") terbuka.

    ![Tombol Add step di kepala flow](/help/chatbot/conversation-flow/09-add-step-button.png)
  </Step>

  <Step>
    Di bagian **If**, klik **Condition**. Pilih bidang (**Intent**, **Channel**, **Division**, **Stage**, **Stage name**, **Label**, **Label name**, **Intent confidence**, atau **Reply mode**), operator (**is**, **is not**, **is one of**, **is none of**; **Intent confidence** memakai **is**, **is not**, **is under**, **is at most**, **is over**, **is at least**; **Label** dan **Label name** memakai **includes**, **excludes**, **is**, **is not**), lalu nilainya.

    ![Baris kondisi dengan bidang, operator, dan nilai](/help/chatbot/conversation-flow/10-condition-row.png)
  </Step>

  <Step>
    Bila memakai beberapa kondisi, pilih **Match all** (semua harus terpenuhi) atau **Match any** (salah satu cukup). Klik **Nested group** untuk membuat kelompok kondisi bersarang (hingga dua tingkat).

    ![Pilihan Match all dan Match any](/help/chatbot/conversation-flow/11-match-all-any.png)
  </Step>

  <Step>
    Di bagian **Then**, pilih aksi yang dilakukan bot (daftar aksi sama seperti pada [akhiran flow](/help/chatbot/conversation-flow/create-flow)), lalu isi isian tambahan yang diminta.

    ![Pilihan aksi pada bagian Then](/help/chatbot/conversation-flow/12-step-action.png)
  </Step>

  <Step>
    Klik **Save step**. Bagian **Priority** ("Lower numbers are checked first.", bawaan 100) dan **Evaluation point** ("Informational. Conditions above are what actually filter.") boleh dibiarkan.

    ![Tombol Save step](/help/chatbot/conversation-flow/13-save-step.png)
  </Step>
</Steps>

## Hasilnya

Panel menutup, muncul notifikasi **Rule added**, dan langkah tampil bernomor di urutan flow, dengan ringkasan kondisi dan aksinya (misalnya "Move to" diikuti nama division).

## Masalah umum

* **No conditions yet. Add one before saving: a step cannot run on every message.** — kelompok kondisi kosong.
* **Add at least one condition. A step cannot run on every message.** — pesan kesalahan saat **Save step** tanpa kondisi.
* Pesan aksi belum lengkap, misalnya "Choose a label." atau "Write the question to send." — lengkapi isian aksi.
* **A condition is missing its value.** — tanda di baris langkah bila nilai kondisi kosong; ringkasan kondisi menampilkan **(not set)**.
* Bila gagal, muncul notifikasi berisi pesan dari server, atau teks bawaan **Failed to add rule** bila server tidak memberi pesan.
