Prompt tab Syntax Buttons

The Prompt tab syntax buttons indicate all the ways you can add a Prompt object to an expression. Clicking on one of the buttons adds the indicated syntax (minus the question marks) to your expression. In the spaces left by the question marks, enter the appropriate values. See Prompt Literals for code examples. For operations you can perform on prompts, see Operators Used with Prompts and Documents.

Syntax Button

Prompt Type or Operator

Description

P[?]

User-Defined Prompt

A prompt located in the prompt repository and manageable using the prompt management pages that are part of the Cisco Unified CCX Administration Web page.

User prompt. See Prompt Literals and User Prompt Literals.

Examples:

P[text.tts]
P[AA\Welcome.wav]

P[?,?}

User prompt with optional arguments. See Literals and User Prompt Literals.

Example:

P["currency.tpl", amount, C[USD]]

#[?]

Ordinal Prompt

A prompt that corresponds to the spoken ordinal position of a specified number in a parameter.

Ordinal Prompt (neutral gender). See Ordinal Prompt Literals.

Examples:

#[2] // second
#[3.3F] // third

#[?,?]

Ordinal prompt with gender argument. See Ordinal Prompt Literals.

Example:

#[2 + i, FEMALE]

$[?]

Currency Prompt

The spoken amount representation of the specified currency arguments.

Currency prompt (the system default currency). See Currency Prompt Literals.

Examples:

$[2] // 2 dollars
$[3.3F] // 3 dollars and 30 cents
$["23.33"]

$[?,?]

Currency prompt with additional arguments. See Currency Prompt Literals.

Examples:

$["23.33", true]
$["123.33", C[CAD]]
$["123.33", false, C[DEM]]

N[?]

Number Prompt

The spoken number representation of the specified arguments.

Number prompt (neutral gender). See Number Prompt Literals.

Examples:

N[2345.3D]
N["12" + '.' + "23"]

N[?,?]

Number prompt with additional arguments. See Number Prompt Literals.

Examples:

N[0x233, false]
N["1223", Boolean.TRUE]
N[45, MALE]
N["3.23", NEUTRAL]
N[11, 1]
N[2000000, false, FEMALE]
N[-2e23, Boolean.TRUE, 1]
N["29.0002", true, MALE]

S[?]

Spelling Prompt

A string spelled back one character at a time.

See Spelling Prompt Literals.

Examples:

S[A]
S[John Doe]
S[\n b];
S["some text"]
S['\f']
S['a' + " nice day"]
S["b"]
S[u"\t"]
S[java.util.Locale.US]

S[?,?]

Spelling prompt with additional arguments. See Spelling Prompt Literals.

Examples:

S["a", true]
S[java.util.Locale.US, false]

TTS[?]

TTS (Text To Speech) prompt

A prompt generated from textual content using a TTS server.

TTS prompt. See TTS Prompt Literals.

Examples:

TTS[This is an example]
TTS[John Doe]
TTS[URL["http://localhost/email.doc"]]
TTS[new java.io.File(u"C:\\help.ssml")]
TTS["Some text to be rendered", "Nuance
      Vocalizer 3.0"]

TTS[?,?]

TTS prompt with provider argument. See TTS Prompt Literals.

Example:

S[java.util.Locale.US, false]

DP[?]

Delay Prompt

A silence pause of the specified number of milliseconds in parameter.

Delay prompt. See Delay Prompt Literals.

Examples:

Delay Prompt Literals

? + ?

Prompt Concatenation Operator

Prompt concatenation. If only one operand expression is of type Prompt, then prompt conversion is performed on the other operand to produce a prompt at run time. The result is a reference to a newly created Prompt object that is the concatenation of the two operand prompts. The content of the left-hand operand precedes the content of the right-hand operand in the newly created prompt.

? ||| ?

Prompt Substitution Operator

Prompt substitution. A prompt used as a substitute prompt when another is no longer available. For example, if a failure occurs while attempting to queue a prompt, then the substitute is queued instead.

See Prompt Substitution Operator |||.

? || ?

Escalation Operator

Can create a Time of week, day of week, time of day, random, or escalation prompt. See Prompt Escalation Operator ||.

? @ ?

Prompt Qualification Operator

Prompt qualifier. The prompt qualifier @ expects a qualifying expression of the following type:
  • Language

  • DayOfWeekLiteral

  • Number

  • Time

See Prompt Qualifier Operator @

? % ?

Prompt Weight Qualification Operator

Prompt weight. The prompt weight qualifier % expects a qualifying expression of the Number type and is used to assign a weight to a prompt when used in a random prompt expression. See Prompt Weight Qualifier Operator % and Random Prompt.

(Document)?

Prompt Conversion Operation

Converts a prompt into an audio document. See Prompt Conversions.