Redirecting the uproccessed data to router or error handler

Hi everybody, I am looking for solution for the following use case.

I have a regex in Text Parser Match Pattern module that is pretty accurate but I want to add an error handler or a router to a new webhook response that sends the message to my front end something like: Please try again - when the regex doesn’t process the text prompt.

So, how do I redirect my unprocessed data to my error handler or my router that leads to my new webhook response? If my Match Pattern module throws an error each time it cannot process the data, it would be easy but the Text Parser Match Pattern module silently fails and produces no output - it stops that data flow.

Does anyone have a solution for this use case?

I don’t want to make code changes to my edge function and rename the automatic message: Accepted, but I want to display my custom json Make’s message (from the webhook that is connected to my Router)

Hey Damir,

configure the Text parser to Continue the execution of the route even if the module finds no matches. Follow it with a router with 2 paths with filters. Top route processes if matches are found. Bottom route for no matches found.

1 Like

@Stoyan_Vatov Sorry for the reply! I did the exactly that and I fixed my issue - Thank you

1 Like