Messaging
Branch on a variable’s value, with optional text transforms applied before matching. Useful for keyword-driven inbound message handling.
An object that accepts the following properties.
Variable path to match. Specified without the %{} wrapper (e.g. message.body).
Transform to apply to the value before matching. One of lowercase, uppercase, trim,
lowercase_trim, or uppercase_trim.
Map of values to arrays of SWML methods to execute. The key is the value to
compare against variable (after applying transform); the value is the array of methods to run on
match.
Array of SWML methods to execute if no case matches. If
omitted and no case matches, execution stops with an error.