Recognizing Input
Continue the aa.aef script by dragging a Simple Recognition step from the Media palette to the Design pane, and dropping it over the Set step.
Then configure the Simple Recognition step to receive either speech or digits in response to prompts. The script steps under the Simple Recognition step transfer the call to the proper extension if the script receives valid input from the caller.
Note | The Simple Recognition step is similar to the Menu step, with the added advantage that it allows you to utilize user-defined grammar for matching user input with options you provide. |
Use this step to configure grammar variables that store the words or digits that the script must recognize in order to dial an extension number, a name, or the operator, depending on the input from the caller.
Figure shows the configured Filter tab of the Simple Recognition customizer window.

Configure the Simple Recognition customizer window as follows:
-
General tab
-
Contact—Triggering Contact
The contact that triggered this script remains the contact for this step.
-
Interruptible—Yes
External events can interrupt the execution of this step.
-
-
Prompt tab
-
Prompt—prompt
The step plays this prompt back to the caller.
-
Barge In—Yes
The caller can respond without first having to listen to the playback of the entire prompt.
-
Continue on Prompt Errors—Yes
If a prompt error occurs, the script continues to play the next prompt, or, if this is the last prompt in the sequence, the script waits for caller input.
-
-
Input tab
-
Timeout (in sec)—5
After playing all prompts, the script waits 5 seconds for initial input from the caller before re-attempting with a timeout error, or, if this was the last attempt, the script executes the Timeout output branch.
-
Maximum Retries—5
The script will retry to receive input 5 times before sending the script to the Unsuccessful output branch.
-
Flush Input Buffer—No
The script saves previous input.
-
-
Filter tab
-
Grammar—SG[AA\AAMainMenu]
The system grammar that the step uses to recognize caller input.
-
Options Tag/Connection list box—DialByExtn, DialByName, Operator
The list of options the menu offers to the caller. The tags map to the output points to determine the execution of branching output paths.
-
Note | The tag values must correspond to the tag values defined in the grammar. |
The Simple Recognition step contains two built-in output branches: Timeout and Unsuccessful. Add three output branches, as shown in figure below, corresponding to the three choices menuPrompt gives the caller: to dial by extension, dial by name, or to dial the operator.

The Timeout and Unsuccessful output branches need no scripting. If the script reaches either of these branches, it falls through to the next step on the same level as the Simple Recognition step, the second Play Prompt step (see The Play Prompt Step).
-
The DialByExtn Output Branch of the Simple Recognition Step
-
The DialByName Output Branch of the Simple Recognition Step
-
The Operator Output Branch of the Simple Recognition Step