Step 1: Adding Main Menu Choices
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 first 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.
As shown in the following procedures, to create an IM agent for basic information access:
Add activities that generate welcome statement and main menu choices.
Create a grammar that recognizes the user’s menu selection.
Attach a grammar to the InstantMessagingQuestionAnswerActivity activity.
To recognize main menu choices
In Microsoft Visual Studio 2008 development system, create a new Inbound Sequential Workflow Console Application (with Code Separation) project.
In the Visual Studio 2008Toolbox, expand Unified Communications Workflow to display workflow activities.
Drag and drop an InstantMessagingStatement activity from the Toolbox onto the design surface in communicationsSequenceActivity1 above disconnectCallActivity1.
Rename instantMessagingStatementActivity1 to promptWelcome.
Set the MainPrompt property for promptWelcome to Welcome to Contoso, Limited.
Drag and drop an InstantMessagingQuestionAnswer activity from the Toolbox onto the design surface between promptWelcome and disconnectCallActivity1.
Rename instantMessagingQuestionAnswerActivity1 to qaMainMenu.
Set the MainPrompt property for qaMainMenu to Which team do you want? Government, Corporate, or Academic?
Specify user inputs so that qaMainMenu recognizes the words corporate, government, and academic. For more information, see Authoring Grammars.