AGN feedback in galaxy groups: the delicate touch of self-regulated outflows