Execute a remote SWML document and return to the current document.
Use %{return_value.['object_field']} to reference the return values from the external SWML.
The condition that is evaluated to determine which path to take. Additional conditions can be added by clicking the Add condition button. Additional conditions will act as JavaScript else-if statements.
The path to take if none of the conditions are met.
The URL of the SWML document to execute. The URL must return swml in valid JSON or YAML format.
The parameters to pass to the SWML document.
The metadata to pass to the SWML document. A JSON object to serialize.
The conditions that are evaluated to determine which path to take. Additional conditions can be added by clicking the Add condition button. Additional conditions will act as JavaScript else-if statements.
In this example, we will execute a SWML script that is hosted on a remote server.
When making a request to the server, we will pass the User and Token parameters.
The SWML document will return a JSON object with a play method field.
This play field will be used for TTS (Text-to-Speech) in the current document
and will welcome the user with the User parameter and say the Token parameter.

{ "Content-Type": "application/json", "User": "user_1", "Token": "123" }%{return_value.return_value} === 1Below is the SWML document that will be executed.
Below is the server code that will return the SWML document.