AI OnAI Off
Starting point would be custom IVisitorGroupRepository and then add filtering as required. Inspiration can be taken from here I am sure ;)
https://kunalshetye.com/posts/customizing-visitorgroup-behavior-in-optimizely-cms/
CMS 11 and 12.

Do anyone know if it is possible to somehow deside which visitor groups should be shown in different contexts in UI in ContentAreas?
In some project we have 100 groups, would be nice to be able to filter the list by group or by site....