Simulator
The Simulator lets you test your flow interactively directly in the Automation Builder without having to publish and test from a WhatsApp device.
Accessing the Simulator
Section titled “Accessing the Simulator”Open your automation in the builder. Click the Simulate (pumpkin icon) button in the top toolbar. The simulator panel opens on the right side of the canvas. Next to it is the from the toolbar. button for reviewing past executions.
How the Simulator Works
Section titled “How the Simulator Works”The Simulator runs the flow logic in the backend — executing nodes one by one, evaluating condition nodes, and pausing at nodes that wait for a reply (question, waitForReply) or pause (wait, waitForWebhook), then waiting for your input. No real messages are sent and no external services are actually called.
Using the Simulator
Section titled “Using the Simulator”- Open the flow that you want to test in the Automation Builder.
- Click the Simulate button in the toolbar. The simulator panel appears on the right side of the canvas.
- In the panel header, (optionally) select the channel to simulate (WhatsApp, SMS, or Telegram) and the device display mode (Mobile, Desktop, or WhatsApp).
- Type the first message in the input box then press Send to start the simulation. The engine runs the flow and displays the bot’s replies (messages, questions, list menus) as chat bubbles.
- Reply by typing — to select an option on the node
questionContinue interacting until the flow ends, or click - to start over from the beginning. Reset to start over from the beginning.
- during the simulation. For per-step details (input, output, and duration of each node), open during simulation. For per-step details (input, output, and duration of each node), open from the toolbar. from the toolbar.
Simulator Feature
Section titled “Simulator Feature”| Feature | Description |
|---|---|
| Channel picker | Select the channel being simulated: WhatsApp, SMS, or Telegram. |
| Device display mode | Preview the conversation in a Mobile, Desktop, or WhatsApp frame. |
| Chat tab | The simulated conversation. Type a message and press Send; bot replies appear as message bubbles. |
| Variables tab | A snapshot of all current variables, grouped (Flow, Entity, Channel, Memory). Searchable and clickable to copy {{nama_variable}}. Useful for verifying that list_id, button_id, etc. are populated correctly. |
| Thoughts tab | The trail of AI nodes (askAi, aiAgent, aiOrchestrator) traversed during the simulation, complete with each AI node’s input, output, and duration. |
| Reset | Restart the simulation from the beginning — clears the chat, variables, and node state. |
Channel Picker
Section titled “Channel Picker”The channel picker is located in the bar below the panel header. The channel you select is sent to the engine with every message, so nodes that depend on the channel (e.g. the channel.*variable) behave according to the selected channel. The default channel when the simulator opens is WhatsApp, and the active channel is highlighted.
| Channel | Value (channel) | Description |
|---|---|---|
whatsapp | Default channel when the simulator opens. | |
| SMS | sms | Simulate the flow as if it runs on the SMS channel. |
| Telegram | telegram | Simulate the flow as if it runs on the Telegram channel. |
You can switch channels at any time during the session — subsequent messages are sent to the engine with the new channel. Switching channels does not reset the conversation; use Reset if you want to start from scratch.
Device Display Mode
Section titled “Device Display Mode”On the right side of the channel bar there are three icon buttons for switching the preview frame. These modes are purely visual — only changes how Chat tab is framed and do not affect the flow logic or the data sent to the engine. The Variables and Thoughts tabs are always displayed at full width. The default mode is Mobile.
| Mode | Icon | Appearance |
|---|---|---|
| Mobile | Smartphone | Phone-width frame (375px) with a “Mobile Preview” label above it. Default mode. |
| Desktop | Monitor | Full panel width, without a phone frame — mimicking the appearance on a large screen. |
| Message | Phone-width frame (375px) with a WhatsApp-style wallpaper background. |
In short, “phone vs monitor”: Mobile and WhatsApp uses phone width, while Desktop uses full width. Each button displays the mode name as a tooltip on hover.
Thoughts Panel (AI Reasoning Inspector)
Section titled “Thoughts Panel (AI Reasoning Inspector)”Open the Thoughts tab to trace the AI reasoning nodes the simulation passed through. This panel only displays AI nodes — non-AI nodes do not appear here. Before the simulation reaches any AI node, the panel shows an empty message: “AI thought traces will appear here when the simulation reaches an AI node”tab.
Node types captured by the Thoughts panel:
| AI node type | Appears in Thoughts |
|---|---|
askAi | Yes |
aiAgent | Yes |
aiOrchestrator | Yes |
Every executed AI node appears as a collapsible card (collapsible), collapsed by default. Click the card to expand it.
| Card element | Content |
|---|---|
| Header | Brain icon (Brain) + label tipe_node — id_node + execution duration (...ms) on the right side. |
| Inputs | The input JSON provided to the AI node (prompt, variables, and context). Shown when the card is opened. |
| Outputs | The output JSON of the AI node (reasoning result/answer). Shown when the card is opened. |
Use this panel to verify the actual prompt and context received by the AI node, then compare it with the output — useful when the AI answer doesn’t match expectations or when debugging a aiAgent/aiOrchestrator node that calls a tool.
Debugging Tips with the Simulator
Section titled “Debugging Tips with the Simulator”- Test every branch. Don’t just test the “happy path” — test every option in
questionand each rule incondition. - Check variables after list/button. Open the Variables tab and make sure
list_idorbutton_idis filled in correctly before entering thecondition. - node. Trace the AI reasoning. For flows with AI nodes, open the Thoughts tab to view the input/output passed to each AI node.
- Test per channel. Change channel selector (WhatsApp/SMS/Telegram) and repeat the simulation to ensure channel-dependent nodes behave correctly on each channel.
- Check for disconnected edges. While the simulation runs, node statuses are highlighted on the canvas (active, completed, failed, skipped). If the flow ends prematurely, check the last executed node — make sure it has an outgoing edge.