Detecting User Message Language and Act Accordingly

Hi, I’m working on creating a pipeline that detects the user’s input language and then decides how to proceed accordingly. What I want to do is if the message language is anything than English then I do not want to proceed to the next pipeline, rather I want to send a reply to the user that the language is out of the Bot’s domain. Now detecting the language is the easy part since there are so many libraries, however, how can I stop the chatbot from proceeding with the next pipeline and just send a reply to the user ?

Any help would be appreciated.

2 Likes