Badword handling

Badword handling

Users can be tricky sometimes, and will try everything possible to test out the Chatbot. But you don’t have to just take everything as it comes. There’s a mechanism to avoid responding to curse words in dialogues.

You can find downloadable lists of curse words, so called ‘Bad Words’ lists. Then you can add such a list to the Chatbot database and set up a response to the words on the list.

For this purpose, use the variable type “collection”, and name it “badwords.” As values, you can just copy the complete list of curse words, separated by commas.

In the topic “Priority,” create a new dialogue, with the user input $badwords$.

Bot Answer: I heard that!  Behave, or I’ll have to block you!

And that’s all there is to it: