How do I trigger an invalid response to the routing automation so that I can use the inbuilt retry process?
Using the sample routing automation code, the invalid does not trigger the “IF INPUT IS INVALID” section.
validateUserMultipleDigits: function (request) {
let validVIPNumbers = ['11','12'],
response = validVIPNumbers.includes(request.input) ? 'valid': 'invalid';
return renderData(null, { success: true, data: {
response,
"app_variables": {}
}});
}
I can pickup the invalid in the standard responses and work with it, but the only way I can retry the collection of the numbers is to duplicate the routing automation and send the invalid response to the secondary routing automation.
What I need to be able to do is trigger the input is invalid section. I am unable to find any documentation on how to do this.
Thanks in advance.