SmsPort Docs / WhatsApp

Bot Builder / Runtime Ops

Simulator

Validate bot graph behavior before publish using deterministic test input payloads.

Endpoint

http
POST /api/bot-builder/:botId/test/simulator

cURL Example

bash
curl -X POST "https://api.smsport.in/api/bot-builder/<BOT_ID>/test/simulator" \
  -H "Authorization: Bearer <ACCESS_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
    "versionTarget": "draft",
    "events": [
      { "eventType": "customer_text", "text": "Rahul" },
      { "eventType": "customer_text", "text": "rahul@example.com" },
      { "eventType": "choice_select", "option": "Option A" }
    ]
  }'

Common Runtime States

text
waiting_for_input
waiting_for_flow
waiting_for_delay
completed
stopped
unsupported

Related:

Test scenarios|Executions