Before we set the Play TTS and Capture outcomes,
The new script design is shown in Fig. 1.
Fig. 1 - Script with Transfer Call steps
It is possible to move the steps as a group in the Designer. Click on all steps to be moved while holding down the 'shift' key. Keep holding down the 'shift' key and drag the steps into position. If you release the shift key and then try to drag, you will deselect the group the next time you click on a step.
The Play TTS and Capture step has the default outcomes Success, Timeout, Aborted, Call Ended and Fail, as shown in Fig. 2.
Fig. 2 - PlayTTS and Capture - Outcomes 1
With the Play and Capture components, you can also create your own outcome fields. A new outcome is automatically created each time the component is linked to a new step.
The return value of the step depends on the configured Valid Digits and the Outcome Values.
If the Play TTS and Capture step has
If the user inputs... | The step will return... |
---|---|
1 | Other digits |
2 | Other digits |
3 | Fail |
If the user inputs... | The step will return |
---|---|
1 | 1 |
2 | Other digits |
3 | Fail |
Fig. 3 shows the resulting Select Outcomes dialogue.
Fig. 4 shows the resulting script design.
If we select the Outcomes tab for the Play TTS and Capture step, we see the two outcomes that are connected to the Transfer Call steps (Fig. 5).
Fig. 5 - Play TTS and Capture - Outcomes 3
Notice that the five default outcomes - Success, Timeout, Aborted, Call Ended and Fail - are not connected to any other steps. In practice, all outcomes for any step should be specifically handled to avoid unexpected errors.
The Timeout outcome should go to a Play TTS or Play Recording step which would prompt the user to re-key his selection and then return the script to the Play TTS and Capture step. This loop might also include a counter to limit the number of attempts allowed. For the sake of brevity we have omitted this in this example.
Usually the last step before the Exit Script will be an End Call Transaction step (generating a Transaction Complete [TC] message to Softdial CallGem™).
The End Call Transaction step is required to
To add an End Call Transaction step:
The resulting design is shown in Fig. 6.
The only time an End Call Transaction step is not required is