add_action
add_action
Append a raw action to the action list. Prefer the named convenience methods
(connect(),
hangup(),
say(), etc.)
for common operations.
Parameters
name
Action type identifier (e.g., "hold", "hangup", "set_global_data").
data
Action payload. Can be a string, boolean, dict, or list depending on the action type.
Returns
FunctionResult — self, for chaining.