| value |
Data Type: String |
Default: "" (undefined) |
Required |
| This defines what the user will hear when the verb is executed. In the case of a voice channel, this can be text for the Text to Speech engine or a URL to play an audio file. In the case of a text channel, text is sent to the user via SMS or instant message. |
| allowSignals |
Data Type: String or Array |
Default: * (any signal) |
Optional |
This parameter allows you to assign a signal to this function. Events from the Tropo REST API with a matching signal name will "interrupt" the function (i.e., stop it from running). If it already ran and completed, your interrupt request will be ignored. If the function has not run yet, the interrupt will be queued until it does run.
By default, allowSignals will accept any signal as valid; if you define allowSignals as "", it defines the function as "uninterruptible". You can also use an array - the function will stop if it receives an interrupt signal matching any of the names in the array. |
| as |
Data Type: String |
Default: "" (undefined) |
Optional |
| This specifies the type of data being spoken, so the TTS Engine can interpret it correctly. The possible values are "DATE", "DIGITS" and "NUMBER". Applies to voice only. |
| name |
Data Type: String |
Default: "" (undefined) |
Optional |
| This is the key used to identify the result of an operation, so you can differentiate between multiple results. As an example, if you asked the user for their favorite color, you could set the name value as 'color' while the returned value might be 'blue'. Not particularly useful if there's only one result returned, but if there are multiple results it helps to determine which result belonged to which operation. |
| required |
Data Type: Boolean |
Default: true |
Optional |
| This determines whether Tropo should move on to the next verb; if required is set to 'true', Tropo will only move on to the next verb if the current operation completely successfully. |
| voice |
Data Type: String |
Default: allison |
Optional |
Specifies the default voice to be used when speaking text back to a user.
A full list of all voices can be found here (there's many, many options). |