Step 3: Transferring a Caller

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

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

  1. In the Microsoft Visual Studio 2008Toolbox, expand Unified Communications Workflow to display workflow activities.

  2. Drag and drop an InstantMessagingQuestionAnswer activity from the Toolbox onto the design surface in ifElseBranchGovernment, following promptGovernment.

  3. Rename instantMessagingQuestionAnswer1 to qaGovernmentDirectory.

  4. Set the MainPrompt property for qaGovernmentDirectory to two available managers are Sue and Bill. Which do you want?

  5. Specify user inputs so that qaGovernmentDirectory recognizes the names Sue and Bill. For more information, see Authoring Grammars.

  6. In the Toolbox, expand Windows Workflow, and then drag and drop an IfElseActivity activity onto the design surface within ifElseBranchGovernment, following qaGovernmentDirectory.

  7. Rename the new activity to ifElseGovernmentDirectory. Rename the left branch to ifElseBranchSue and then rename the right branch to ifElseBranchBill.

  8. On the left branch, ifElseBranchSue, add a code condition called conditionSue, and then add the following code:

    e.Result = (this.qaGovernmentDirectory.RecognitionResult.Text == "sue");
    
  9. 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.

  10. 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.

    Dd146419.d836dcce-6c00-45f9-9c55-813d7ad77c1a(en-us,office.13).jpg

See Also

Concepts

Walkthrough: Author an IM Agent for Information Access