State-based bots could use NLU, but don't have to. They could be entirely keyword based, rely on exact answers or on fixed keys, like Woebot.
When I first started programming, we used to write "menu"s that were like this, enter 1 to do foo, enter 2 to do bar. You can do that with words too, and rely on the user to input things correctly.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
State-based bots could use NLU, but don't have to. They could be entirely keyword based, rely on exact answers or on fixed keys, like Woebot.
When I first started programming, we used to write "menu"s that were like this, enter 1 to do foo, enter 2 to do bar. You can do that with words too, and rely on the user to input things correctly.