The
script may specify either a text-to-speech string and language code or the URL of
a prerecorded message for each entry. You can also add optional attributes to
store related information, such as myCustomData in the
example above.

Conditions

The conditions determine the transition that comes after this activity.

The input activity does not specify any conditions by default. You
must define conditions to build the phone menu. Each condition is one option on the phone
menu. Notify reads the text from each condition Name to the caller,
up to 100 characters per condition.

You can specify a language for each condition by prefixing the message with the language
code, in the format xx-XX:<Message>. For example, add
fr-CA: for Candian French. Available languages are stored on the
Notify Language [notify_language] table.

The condition that the activity transitions through depends on the digits entered by the
caller. Set the condition Condition value to
parseInt(workflow.scratchpad.digits) == <expected digits>. For
example, to transition through a condition when the caller presses the number 3, set the
Condition to parseInt(workflow.scratchpad.digits) ==
3.

You can add an error condition to this activity. The activity transitions through the error
condition if the advanced script returns an invalid value, or if the text to say for a
condition is empty.

Scratchpad Entries

The activity uses the workflow scratchpad to write persistent values.

Table 2. Values written to scratchpad

Entry

Description

workflow.scratchpad.digits

The digits entered by the caller, as a string.

workflow.scratchpad.menu<activity name>

The entire answer variable, if using the advanced script
option. You can access this menu from other activities after this activity
successfully executes.

For example, if the activity name is
choices, you can access values from the menu
using