This page was last edited on December 19, 2019, at 17:47.
Comments or questions about this documentation? Contact us for support!
You can use the Custom Service block to access a custom service that was created by Genesys for your company.
You can provide input to the service. The resulting variable from the block is true if the service request is successful, otherwise the result is false. This result is available for use in later blocks.
Select the service name and action to use in this Custom Service block.
Select Disable DTMF buffering if you want to prevent any DTMF inputs made during fetch audio playback from being buffered and carried forward into subsequent User Input or Menu blocks.
If you enable the Play fetch audio check box, you can specify an audio resource to play to the caller while the custom service is being fetched.
In the Input Parameters tab, specify the input expected by the custom service.
In the Output Parameters tab, specify how and where to store the results of the custom service.
{
"thing": {
"otherthing": "abc"
},
"arrayofthings": [
"thing1", "thing2"
]
}
JSON Expression | Result |
---|---|
thing.otherthing | abc |
arrayofthings[1] | thing2 |
Select a variable to store the outcome status (true or false) of the Custom Service request.
You must also select an action to take if the fetch operation is not successful. You can choose to "Continue with normal processing" or "Execute error handler blocks".
If you select "Execute error handler blocks", an Error Handler child block appears under the Custom Service block.
Use the Error Handler block to send the application to another target block that you select from the Navigation tab, or add child blocks that will perform the actual error handling.
In this example, the Navigation tab is used to specify a target block. If there is an error, the application will go to the Play Message block and play an error message:
In this example, a child block is used to invoke a module that will perform the error handling: