Tag: {Date}
The {Date} tag recognises a spoken date in a prompt. Due to the various ways that Dates are expressed when spoken, it's important to have a dedicated Tag to perform this recognition.
The simple form of the {Date} Tag will pass a Test Case Step if any recognisable date is heard, this is particularly useful for contact centre solutions that have spoken dates in menu prompts. Rather than building a unique Test Case for each date option, the {Date} Tag can be used instead.
Examples of recognised date formats are shown in the table below. The {Date} tag is very flexible and can recognise many different date formats in the active language.
Conditions and Restrictions
- The Recognition of Dates is dependent on the Active Language set within your Cyara Account.
- If an optional variable is specified, the variable result cannot be used in a subsequent dynamic reply
Example Prompt |
January fifth two thousand |
the fourth |
June four |
June fourth |
fourth June |
Wednesday the twelfth |
June fourth nineteen ninety seven |
June four ninety seven |
Wednesday June four ninety seven |
Examples of Using the {Date} Tag in a series of Cyara Test Cases.
The following example scenarios cover a range of applications of the {Date} Tag to improve Test Case recognition scores for IVRs that speak calendar dates to customers. The {Date} Tag allows you to pass multiple variants of a date being recognised by a Cyara Test Case.
Scenario 1.
In this scenario we want to build a Test Case that will be able to pass any date that is heard on a specific prompt. This prompt is designed to speak today's date to the customer while they are on hold. As this will change each time we run this Test Case, changing the Expect to Hear text each time wouldn't be workable. Instead we can insert the {Date} Tag to accept any spoken date and mark the Test Case Step as Successful.
Actual Audio Heard | Expect to Hear | Outcome |
---|---|---|
The date today is the 4th of June 2014 | The date today is the {Date} | Successful: Any audio heard that matches a valid date mark this step as successful. Check the above table for examples of valid spoken dates. |
Note: Ensure you enter the correct number of question marks to indicate that Cyara should not Expect to Hear that section of the date, 4 question marks for Years, and 2 for Months and Days.
{Date $VarDate == "????0705"}
Actual Audio Heard | Expect to Hear | Outcome |
---|---|---|
The school holidays will start on Monday the 5th of July | The school holidays will start on {Date $VarDate == "????0705"} | Successful: The audio heard must not only contain a date, but that date must also be July 5th (the ???? in the comparison indicates that a year is not expected to be heard. |
Comments
0 comments
Please sign in to leave a comment.