[This is preliminary documentation and is subject to change. Blank topics are included as placeholders.]

Creates a new workflow prompt for the Response Group application. A workflow prompt is either an audio file that is played or text that is read aloud in order to supply callers with additional information.

Syntax

New-CsRgsWorkflowPrompt -PromptTts <String> [-PromptAudioFile <AudioFile>]

Parameters

Parameter Required Type Description

PromptTts

Required

String

Text-to-speech (TTS) prompt to be read when the workflow is activated. The TTS prompt, which is used only if an audio file is not specified, can contain a maximum of 4096 characters.

PromptAudioFile

Optional

AudioFile object

Audio file to be played when the workflow is activated. The audio file must be imported using the Import-CsRgsAudioFile cmdlet.

Detailed Description

Keeping callers well-informed about what’s going on, and why, is an important part of a Response Group workflow. For example, you might have the workflow configured to answer the phone and then immediately place the call on hold until an agent is available. That’s fine, but it also requires you to inform the caller that: 1) the phone has been answered; and, 2) the call will be put on hold until an agent is available. Providing information such as this is the job of the workflow prompt.

The Response Group application supports two different kinds of workflow prompts. First, you can pre-record and then play back an audio file. To do this, you must record the prompt ("Please hold. Your call is important to us.") in either the .WAV or .WMA format; import the file using the Import-CsRgsAudioFile cmdlet; and then assign the file to a workflow prompt. Alternatively, you can simply provide the text to be read and, when the prompt is needed, the Response Group Service will use its text-to-speech capabilities to "read" the text aloud. Text-to-speech promprts are easier to configure: there are no audio files to record and import. On the other, audio file prompts are typically of higher quality and fidelity.

The New-CsRgsWorkflowPrompt cmdlet provides a way for you to create workflow prompts. Note that each time you need to use a prompt it must be created from scratch; there is no way to save and reuse prompts. (This means you will have to re-import audio files as well.) When you create a new workflow prompt you must provide a text-to-speech prompt; if you want, you can provide an audio file prompt as well. If you provide both a text-to-speech and an audio file prompt the Response Group Services will use the audio file by default, and will rely on the text-to-speech prompt only if the audio file is unavailable. After new prompts are created (in memory) the corresponding object reference is then typically added to a Response Group call action.

Return Types

New-CsRgsWorkflowPrompt creates instances of the Microsoft.Rtc.Management.WriteableSettings.WorkflowPrompt object.

Examples

-------------------------- Example 1 ------------------------

Copy Code
$queue = Get-CsRgsQueue -Identity service:ApplicationServer:atl-cs-001.litwareinc.com -Name "Help Desk "

$prompt = New-CsWorkflowPrompt -PromptTTS "Welcome to the help desk. Please hold."

$z = New-CsRgsCallAction -Prompt $prompt -Target TransferToQueue -TargetQueueID $queue.Identity

The commands shown in Example 1 demonstrate how a workflow prompt (and a Response Group queue) can be included in a new call action. In the first command, the Get-CsRgsQueue cmdlet is used to return an object reference ($queue) to the Response Group queue Help Desk. In the second command, the New-CsRgsWorkflowPrompt cmdlet is then used to create a new text-to-speech prompt "Welcome to the help desk. Please hold." This new prompt is stored in a variable named $prompt.

In the final command in the example, New-CsRgsCallAction is used to create a new Response Group call action ($z). When creating the call action, the object reference $prompt (which contains the newly-created workflow prompt) is used as the parameter value for the –Prompt parameter; the object reference $queue is likewise used in conjunction with the –TargetQueueID parameter. After running this command, the new call action (and its new workflow prompt) are ready to be added to a Response Group workflow.

-------------------------- Example 2 ------------------------

Copy Code
$queue = Get-CsRgsQueue -Identity service:ApplicationServer:atl-cs-001.litwareinc.com -Name "Help Desk Queue"

$audioFile = Import-CsRgsAudioFile -Identity "service:ApplicationServer:atl-cs-001.litwareinc.com " -FileName "welcome.wav" -Content (Get-Content C:\Media\Welcome.wav -Encoding byte -ReadCount 0)

$prompt = New-CsWorkflowPrompt -PromptAudioFile $audioFile -PromptTTS "Welcome to the help desk. Please hold."

$z = New-CsRgsCallAction -Prompt $prompt -Target TransferToQueue -TargetQueueID $queue.Identity

The commands shown in Example 2 are a variation of the commands shown in Example 1. In this case, however, the new workflow prompt includes an audio file prompt as well as a text-to-speech prompt. To include an audio file in a workflow prompt, the second command in the example uses the Import-CsRgsAudioFile to import the audio file C:\Media\Welcome.wav; the imported file is then stored in a variable named $audioFile. After the audio file has been imported, both it and a text-to-speech prompt are added to a new workflow prompt ($y). To do this, the –PromptAudioFile parameter is set to $x, and the –PromptTTS parameter is set to the text value "Welcome to the help desk. Please hold."