Facebook Messenger will notify you if it suspects you are chatting to a scammer or bad bot, the company announced on its blog.

The feature is programmed to work with encryption as moves Messenger towards full end-to-end encryption like WhatsApp.

Hence safety notices will alert you on Messenger if it spots any suspicious activity so you could take action to block or ignore someone.

Facebook takes on Amazon with new shopping feature

“Our strategy to keep people safe on Messenger not only focuses on giving them the information and controls they need to prevent abuse from happening, but also on detecting it and responding quickly if it occurs,” says Jay Sullivan, director of product management of Messenger Privacy and Safety.

Facebook says the new feature is particularly helpful  in protecting minors even though at present machine learning already detects and disables adult accounts engaging in inappropriate interactions with children.

Facebook enters the videoconferencing fray with Messenger Rooms

“We developed these safety tips with machine learning that looks at behavioral signals like an adult sending a large amount of friend or message requests to people under 18,” adds Sullivan.

“This ensures that the new features will be available and effective when Messenger is end-to-end encrypted.”

The social media giant rolled out this feature on Android in March and will launch it globally on iOS next week.

This article was originally published on Pocket-lint.