There are couple of UCCX Script editing steps which can be used when creating menus on UCCX Scripts - they can be used interchangeably. Two of these steps are 'Switch' and 'Menu'
Switch step is found under the General category on UCCX Script editor.
It would be easier to explain using an example:
Lets assume we need to create an auto attendant script where the call in user is asked to enter:
1 for Sales (redirects to extension 2001)
2 for Marketing (redirects to extension 2002)
0 for Operator (redirects to extension 2003)
or press the extension of the person you need to dial.
To start off (after the other basic steps of accepting the call, etc) I would use a Play Prompt step (under Media) to play the recording : "Press 1 for sales, press 2 for marketing, 0 to speak to an operator, or if you know the extension of the person, just dial that extension"
I would create a parameter on script editor, where I would store the value which was entered by the user (1, 2, 3, extension). I have named this Parameter s_DigitString (s is the name distinguishes its a string, DigitString in the name distinguishes the purpose). The default value is empty.
Once the digits have been captured, now comes the Switch step.
Switch step will look at the digits that are entered in the s_DigitsString and will perform the action based on the captured digit. Here are the properties of the Switch step.
This is in nutshell is how a Switch step works. Now lets move to Menu step.
Menu step is found under Media category on the UCCX Editor.
- Play Prompt
- Get Digit String
The second tab, Prompt on the Menu properties is where you define the Prompt that will be played.
To close off, I would invariably use Menu always unless I have to register more than one digit. Menu makes things lot more easier, but then the problem with Menu is that you cannot enter an extension 2112 for example. It would just register that as Option 2 with Menu.
Hope this helps.