AI in scalability and flexibility