SWML
Write communication applications, call flows and AI agents
Set script variables to the specified values. Variables set using set can be removed using unset.
set
unset
An object that accepts user-defined key-value pairs.
Any variable can be set by this method.
1version: 1.0.0 2sections: 3 main: 4 - set: 5 num_var: 1 6 - play: 7 url: 'say: ${num_var}' 8 - set: 9 num_var: 2 10 - play: 11 url: 'say: ${num_var}'
1version: 1.0.0 2sections: 3 main: 4 - set: 5 items: 6 - drill bit 7 - drill 8 person: handyman 9 systems: 10 ventilation: 11 - inlet 12 - outlet 13 - fans 14 hr: 15 - lucy 16 - liam 17 - luke 18 - play: 19 url: 'say: The items ${items} will be used by ${person} to fix ${systems.ventilation}.'