-
Notifications
You must be signed in to change notification settings - Fork 30
Description
Thanks to issue #751 and its corresponding customer ticket, we now know that you must include "transfer": true before your SWML block in functions.data_map.output.action[].SWML when the SWML object in the action will transfer the call. This property ends the AI interaction and stops AI billing.
"action": [
{
"transfer": true,
"SWML": {
"sections": {
"main": [
{
"join_conference": {
"name": "main_conference"
}
}
]
}
}
}
]
Because of a problem in the YAML-JSON conversion, it's impossible to position this transfer property correctly when writing SWML in YAML. (See the "additional steps" section below.)
This property should be added to the SWML schema and docs.
Required information
To correctly document this behavior and intended usage, we need a complete list of "transfer-like" methods for which the transfer property is required. We know these two methods are included, since they were described in the original ticket:
join_conferenceconnect
It seems logical that the transfer method would also require the transfer property, but this should be confirmed, and any other methods should be added.
Proposed documentation changes and additions
-
Convert the existing "List of valid actions" section of
data_map.outputparameters to a standalone nested doc. -
Add
action[].transfer(boolean, optional) as a parameter ofoutput.action[]. -
Include a usage example showing the new
transferparameter in context above the SWML block in the sameaction[]object. -
Add a note in the
action[].SWMLApiField reminding users to include"transfer": truefor transfer-like methods. -
List transferring SWML methods (e.g.,
connect,join_conference).
Additional steps
- Open a new ticket reporting the YAML issue.