To allow unexpected responses sent by your customers, consider using an all-encompassing expression.
Example:
Suppose that a regex in the condition module to unsubscribe from SMS contains the syntax ^STOP$. If a customer sends an SMS that contains not only the keyword (for example, Stop sending me SMS), the inbound SMS is not recognized because the syntax can recognize only that SMS whose entire body contains only the keyword "Stop" (case-insensitive). Therefore, consider using an expression that can recognize an inbound SMS if the keyword is present anywhere in the body of the SMS. An example of such an expression is as follows.
/(^|\W)(STOP|END|CANCEL|UNSUBSCRIBE|QUIT)(\W+|$)/gi.test(`{"type":"tts","name":"sms_message","source":"system"}`)
CODE