ai in the middle