Then real cops step in and help the radicalized folks plan something illegal, then arrest them for planning it before they can carry it out.

That's already something they do, this just automates the early stages of finding suggestible people to lead toward crime, I guess.

For reference, this is literally something the FBI has been known to do.

Here are some examples, I have read of a bunch more: https://www.theguardian.com/world/2011/nov/16/fbi-entrapment...