Introduction
Have you ever wondered why the jtel System has so many variables available in the configuration of the Service Number parameters?
...
- So why so many?
- And why does the list keep on growing with every release?
- And what can I do with them?
Demo Scenario
To help you understand, let's consider a simple demo scenario where the system is shared by several branch offices.
...
Warning | ||
---|---|---|
| ||
You start to think that this is all getting a bit repetitive ... |
Is there a Better Way?
The good news is: yes, there is!
You only have to build the application once, and you can re-use the application for all three service numbers.
Here's what to do:
Use Variable Objects
Variable Objects in the jtel IVR are used to execute the same functionality as "normal" objects, but based on the contents of a variable.
...
So putting the value 2 in the ID - Voice Prompt field will play "JTEL - Willkommen".
Info | ||
---|---|---|
| ||
Try it out! |
Use Variables
You can also use variables here. That's where these "variable" objects get their names.
...
Info | ||
---|---|---|
| ||
Try it out! Hint: add a variable assignment object directly after the start object. Then change the ID value in the Play Voice with variable ID object to $myPrompt. |
Populate the Variables using the Service Number Parameters
Now for the trick with the service number parameters.
...
Info | ||
---|---|---|
| ||
Get the idea? You can now build the application just once, using variable objects for:
|
Finished Application
The finished application will look something like this:
Variable Objects
Let's look inside the variable objects. As you can see, these all reference parameters (variables) defined in the service number parameters.
Branch Opening Hours
Welcome
Closed
Connect Sales
Connect Support
Service Number Parameters
And finally let's see the relevant service number parameters.
Other Service Numbers
The other two service numbers would be configured in the same way - using the same routing application, but different sets of parameters for the prompts, opening times and holiday lists, and connect destinations.
Info | ||
---|---|---|
| ||
Remember: you always need to specify the language parameter for the service! |
Conclusions
Using "variable" objects enables you to create generic, re-usable applications.
...