Send an invalid response

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.

image

  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.

image

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.

Hey @miku,

Thanks for bringing this to our notice, I’ve raised a support ticket on behalf of you for further help.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.