SmsPort Docs / WhatsApp

Expressions

Runtime

Expressions

Safe predefined expressions for visual bot set_variable node. Raw JavaScript is not executed.

How Evaluation Works

  1. If expression is present and valid, runtime uses expression output.
  2. If expression is missing/invalid, runtime falls back to value.
  3. Variable tokens are resolved from captured variables (example: {{patient_name}}).

Supported Function Groups

Quick Examples

expression
add({{fees}}, 1000)
concat({{first_name}}, " ", {{last_name}})
if(gt({{score}}, 80), "hot", "warm")
date_add_days(today(), 1)
date_add_hours(now(), 2)
start_of_week(today())
timezone_convert(now(), "Asia/Kolkata")