Skip to content

Anti-Pattern

The following patterns are the ones we most often encounter in automations that fail validation, fail at runtime, or run but consume 4x more nodes than necessary.

Drawing Graph Cycles for “Return to Menu”

Section titled “Drawing Graph Cycles for “Return to Menu””
... → question (Ya/Tidak)
├ Ya → (kembali ke sendListMessage pertama) ← siklus, DITOLAK saat save
└ Tidak → ...

The save endpoint validates that the flow is a DAG. You cannot draw an edge that loops back to a previous node. The Builder displays: "Flow contains a circular reference involving node 'X'".

Using the Button question to “Trigger” Another Automation

Section titled “Using the Button question to “Trigger” Another Automation”
... → question (tombol tunggal berlabel "internal")
└ internal-handle → (tidak ada edge — berharap trigger keyword "internal" menyala)

The button reply is consumed by the paused run, not by the trigger keyword. The “internal” button text never reaches the trigger evaluator.

Branching on user_message After a List/Button Reply

Section titled “Branching on user_message After a List/Button Reply”
sendListMessage → waitForReply → condition (rules: user_message is "Dokumen")

Fragile. Breaks as soon as you rename the row title. The reply title is presentation; the row id is the contract.

question has already paused its own run. Adding waitForReply after it captures the button title into a variable and forces you to branch again based on that. Totally wasteful: one redundant node and one unnecessary pause.

Requesting {{contact_name}} When the Engine Already Has It

Section titled “Requesting {{contact_name}} When the Engine Already Has It”

The contact’s WhatsApp profile name is injected automatically. “Hello, what is your name?” → waitForReply is wasteful in 99% of cases.

Calling the Contact Data API Manually at the Start of Every Flow

Section titled “Calling the Contact Data API Manually at the Start of Every Flow”

The engine already has contact_id, contact_name, contact_phone_number, contact_email. If you start every flow with httpRequest to the CRM to fetch contact data, you are not using the platform’s contact store.

start → setVariable(a=1) → setVariable(b=2) → setVariable(c=3) → ...

If you need three constants, use a single setVariable node with values as JSON, or use the values inline in the message template.

Flows with 30+ nodes become unreadable on the canvas. Wrap related sub-flows in a container Group — select the node, press Ctrl+G, then edit the header title. Groups are purely visual; the engine passes through them without executing anything.

If a sub-flow is reused across multiple automations, extract it as a procedure and use Call Procedure.

Putting Business Logic in aiAgent for Things That Are Deterministic condition

Section titled “Putting Business Logic in aiAgent for Things That Are Deterministic condition”

Every LLM call adds cost, adds ~800ms latency, and can hallucinate. Use condition for deterministic branching. Use AI agents for text that is genuinely ambiguous where rules are not feasible.