You are on page 1of 12

Dialog Designer for Developers

Creating Speech Applications Lab 2.2.1: Building a Speech Project

Lab 2.2.1: Building a Speech Project


Overview:
In this exercise, you will create the BuildASedan_Basic speech application that you learned in the course. This exercise has eight parts: In Part 1, Creating the Call Flow, you will create the call flow for the project. In Part 2, Configuring the SedanType node, you will configure the SedanType node to ask for and collect the sedan type information. In Part 3, Configuring the ExteriorOptions node, you will configure the node for exterior options. In Part 4, Configuring the InteriorOptions node, you will configure the node for interior options. In Part 5, Setting the If Condition, you will configure the If condition to direct the flow of the call. In Part 6, Configuring the ThankYou node, you will configure the node to thank the caller. In Part 7, Configuring the Exit node, you will configure the node to end the call. In Part 8, Simulating the application, you will simulate the application using the Avaya Application Simulator view.

Before you begin:


Before you begin, make sure that you have: 1. Imported the BuildASedan application onto your workbench for reference.

Copyright 2010 Avaya All Rights Reserved Page L2.2.1-1

Creating Speech Applications Lab 2.2.1- Building a Speech Project

Dialog Designer for Developers

Part 1- Creating the Call Flow


1. Go to File>New>Speech Project. 2. Enter BuildASedan_Basic in the Project Name field. 3. Click Finish.

4. On the Call Flow Editor: a. Add a Prompt and Collect node and name it SedanType. b. Add another Prompt and Collect node and name it ExteriorOptions. c. Add another Prompt and Collect node and name it InteriorOptions. d. Add a Data node and name it DetermineOptions. e. Right-click DetermineOptions and select Create New Reference to create a reference node. f. Add an Announce node and name it ThankYou. g. Add a Return node and name it Exit.
Copyright 2010 Avaya All Rights Reserved

Page L2.2.1-2

Dialog Designer for Developers

Creating Speech Applications Lab 2.2.1: Building a Speech Project

h. Connect the nodes as shown below

Copyright 2010 Avaya All Rights Reserved Page L2.2.1-3

Creating Speech Applications Lab 2.2.1- Building a Speech Project

Dialog Designer for Developers

Part 2- Configuring the SedanType node


1. Double-Click the SedanType node. 2. To create the prompt: a. Select File>New>Prompt File. b. Enter SedanType in the File Name field. c. Click Finish.

d. e. f. g.

On the Prompt Editor, drag and drop the TTS option. Enter the text Would you like a traditional sedan or a hybrid sedan? Click the Prompt parameter in the SedanType node. Select SedanType as the Prompt from the properties view.

3. To create the grammar: a. Select File>New>Grammar File.


Copyright 2010 Avaya All Rights Reserved

Page L2.2.1-4

Dialog Designer for Developers

Creating Speech Applications Lab 2.2.1: Building a Speech Project

b. Enter SedanType in the File Name field. c. Create a grammar that recognizes a callers response to the prompt. Because responses may be slightly different, use TAGS in the grammar to allow responses to be recognized as either Sedan or Hybrid. Responses of hybrid car or hybrid vehicle should be interpreted as Hybrid (use hybrid as the tag). Responses of traditional or traditional sedan should be interpreted as Sedan.

5. Save the file. 6. Click the Grammar parameter in the SedanType node. 7. Select SedanType as the Grammar from the properties view.

Copyright 2010 Avaya All Rights Reserved Page L2.2.1-5

Creating Speech Applications Lab 2.2.1- Building a Speech Project

Dialog Designer for Developers

Part 3- Configuring the ExteriorOptions node


1. Double-Click the ExteriorOptions node. 2. To create the prompt: a. Select File>New>Prompt File. b. Enter ExteriorOptions in the File Name field. c. Click Finish. d. On the Prompt Editor, drag and drop the TTS option. e. Enter the text Would you like the Exterior Option package, which includes fog lights, 15 inch alloy wheels and a splash guard? and The cost of the package is $1000.

f. Click the Prompt parameter in the ExteriorOptions node. g. Select ExteriorOptions as the Prompt from the properties view. 3. To create the grammar: a. Select File>New>Grammar File. b. Enter YesNoGrammar in the File Name field. c. On the Grammar file editor create a grammar that will catch Yes or No as the response. To do this you need to use tags as u did for the SedanType Grammar.

d. Click the Grammar parameter in the ExteriorOptions node. e. Select YesNoGrammar from the properties view.

Copyright 2010 Avaya All Rights Reserved

Page L2.2.1-6

Dialog Designer for Developers

Creating Speech Applications Lab 2.2.1: Building a Speech Project

Part 4- Configuring the InteriorOptions node


1. Double-Click the InteriorOptions node. 2. To create the prompt: a. Select File>New>Prompt File. b. Enter InteriorOptions in the File Name field. c. Click Finish. d. On the Prompt Editor, drag and drop the TTS option. e. Enter the text Would you like to include the Interior Options package which includes all season floor mats, a CD changer and air conditioning? and The cost of the package is $1500.

f. Click the Prompt parameter in the InteriorOptions node. g. Select InteriorOptions as the Prompt from the properties view. 3. To create the grammar: f. Click the Grammar parameter in the InteriorOptions node. g. Select YesNoGrammar from the properties view.

Copyright 2010 Avaya All Rights Reserved Page L2.2.1-7

Creating Speech Applications Lab 2.2.1- Building a Speech Project

Dialog Designer for Developers

Part 5- Setting the If condition


1. Double-click the DetermineOptions node. 2. Drag and drop an If condition from the palette. This If condition will allow the caller selecting the Hybrid Sedan to skip the selection of the ExteriorOptions node. The exterior option package is automatically included in the price of the Hybrid Sedan. The Hybrid Sedan caller should move directly to the InteriorOptions node. 3. Configure the If condition by populating the fields as below: a. Operator: Select a conditional operator. For this application, the if condition applies when the callers Sedan Type utterance is equal to Hybrid. Set to EqualsIgnoreCase. b. Left variable: In this application, the variable being used is Sedan Type. c. Left variable field: In this case, the if condition applies to the interpretation of the callers selection Hybrid or Sedan. d. Right variable: Leave blank. e. Right variable field: Leave blank. f. Right constant: Set to hybrid.

4. There are two Next items in this node. Complete the following: a. Set the first Next in the If condition to next form = InteriorOptions. b. Set the second Next to the ExteriorOptions node. By doing this, the application defaults to the ExteriorOptions node, unless the caller selects the Hybrid Sedan.
Copyright 2010 Avaya All Rights Reserved

Page L2.2.1-8

Dialog Designer for Developers

Creating Speech Applications Lab 2.2.1: Building a Speech Project

Copyright 2010 Avaya All Rights Reserved Page L2.2.1-9

Creating Speech Applications Lab 2.2.1- Building a Speech Project

Dialog Designer for Developers

Part 6- Configuring the ThankYou node


1. Double-Click the ThankYou node. 2. To create the prompt: a. Select File>New>Prompt File. b. Enter ThankYou in the File Name field. c. Click Finish. d. On the Prompt Editor, drag and drop the TTS option. e. Enter the text Thank you for your order. We will get back to you soon.

f. Click the Prompt parameter in the ThankYou node. g. Select ThankYou as the Prompt from the properties view.

Copyright 2010 Avaya All Rights Reserved

Page L2.2.1-10

Dialog Designer for Developers

Creating Speech Applications Lab 2.2.1: Building a Speech Project

Part 7- Configuring the Exit node


1. As the Exit node here is meant to end the call. You dont need to change any setting here and can leave the defaults.

Copyright 2010 Avaya All Rights Reserved Page L2.2.1-11

Creating Speech Applications Lab 2.2.1- Building a Speech Project

Dialog Designer for Developers

Part 8- Simulating the application


2. 3. 4. 5. 6. 7. Click the Avaya Application Simulator view tab. Select the BuildASedan_Basic project from the list of available projects. Click Run Application. Enter the traditional and hybrid in two different instances. Check the application by choosing Yes and No in different instances. Check the application flow.

Copyright 2010 Avaya All Rights Reserved

Page L2.2.1-12

You might also like