A Black Service Component is a non-voice component that can access back ends. You can reference a Service Component from your voice model and edit it in place using the complete set data manipulation operators.
When working with Service Components, connecting lines represent the flow of data, as in other Visual Composer models, instead of representing the call flow as is usually the case in the Voice Kit. Data is passed in and out of modules through a parameter passing mechanism.
Service Icons
Compose Details |
Compose Icons |
Design Board |
- |
- |
|
Fields
Field |
Type |
Values |
Default |
Name |
Text entry field |
- |
- |
If a fetchaudio prompt is defined in the application settings, you need to add a child <audio>element inside the script object that calls the Service Component, when you render the script element representing it:
<script name="setvar" scriptType="vcscript">
<value><![CDATA[execute_data_service]]></value>
<parameterSet>
<item alias="_ENV_driver" object="#System:Driver"/>
<item alias="_ENV_ani" object="#System:ANI"/>
<item alias="_ENV_dnis" object="#System:DNIS"/>
</parameterSet>
<audio audioFileExtension="WAV" file="fetchaudio_1"
location="#prompts"/>
</script>
Basically, when you create the Vcscript item for the element, you just add the <audio> to it, taking the filename and resource target from the application properties. For the Audio File Extension, use the setting from the resource target.
For more information, see Handling Data Services.