implementing interceptor AI