Standard Variables make it easier to use common expressions in your configuration without having to write everything from scratch yourself
Standard Variables are building blocks that make supporting certain common but somewhat complex expressions easier in your configuration. While you could construct these same expressions yourself in SAL, our predefined standard variables let you focus more on the unique aspects of your application.
The Standard Variables look like and are used like normal Variables, but you don’t have to define them in your configuration, because we’ve already done it for you. The Standard Variables can be identified by their names, which start with SPEECHLY.
You can see a standard variable being used in the example utterance below, which now permits various ways of expressing dates to be recognized by your application:
*book book a flight for $SPEECHLY.DATE(departure)
The above Template can expand for example to the following (just to name a few):
*book book a flight for january fifth twenty twenty one
*book book a flight for tomorrow
*book book a flight for second of november two thousand and twenty one
While Standard Variables can be used as such, if they appear as entity values, we also recommend assigning the entity in question the appropriate Data Type.
Last updated by Antti Ukkonen on April 12, 2021 at 17:16 +0300
Found an error on our documentation? Please file an issue or make a pull request