Step 3: Transferring a Caller
This is the last of three topics describing the steps to create the Author an IM Agent for Information Access walkthrough application. This sequence of topics demonstrates how the instant messaging (IM) capabilities of communications workflow activities are used to create an IM agent for basic information access. The procedures for creating the walkthrough application build sequentially. Completing the procedures in sequence is important.
Transferring a Caller
To transfer a caller to a department contact
In the Microsoft Visual Studio development system Toolbox, expand Unified Communications Workflow to display workflow activities.
Drag and drop an InstantMessagingQuestionAnswer activity from the Toolbox onto the design surface in ifElseBranchGovernment, following promptGovernment.
Rename instantMessagingQuestionAnswer1 to qaGovernmentDirectory.
Set the MainPrompt property for qaGovernmentDirectory to two available managers are Sue and Bill. Which do you want?
Specify user inputs so that qaGovernmentDirectory recognizes the names Sue and Bill. For more information, see Authoring Grammars.
In the Toolbox, expand Windows Workflow, and then drag and drop an IfElseActivity activity onto the design surface within ifElseBranchGovernment, following qaGovernmentDirectory.
Rename the new activity to ifElseGovernmentDirectory. Rename the left branch to ifElseBranchSue and then rename the right branch to ifElseBranchBill.
On the left branch, ifElseBranchSue, add a code condition called conditionSue, and then add the following code:
e.Result = (this.qaGovernmentDirectory.RecognitionResult.Text == "sue");
In the Toolbox, expand Unified Communications Workflow, and then drag and drop a BlindTransfer activity from the Toolbox onto the design surface in ifElseBranchSue. Rename blindTransferActivity1 to blindTransferSue. Set the CalledParty property to sip:sue@contoso.com or another value that works in your environment.
Drag and drop a BlindTransfer activity from the Toolbox onto the design surface in ifElseBranchBill. Rename blindTransferActivity1 to blindTransferBill. Set the CalledParty property to sip:bill@contoso.com or another value that works in your environment.