In this paper, we propose a site-wide lead advisor, which is an artificial intelligence–based prediction and set-point recommendation engine, by combining the use of machine learning with optimization techniques. It provides operational set-point recommendations to continuously improve site-wide operations for throughput measured in additional barrels of oil produced per day. A key contribution and differentiator is the utilization of sensor data to continuously learn the behavior of all the subsystems of an oil-producing plant and use this within an optimization framework to provide advisory control in near real time. This is novel in that it does not require a model of the plant to be provided as input. The predictive model is learned automatically and continuously from data. This work required the development of a new prediction-optimization modeling framework that optimizes throughput while staying in the vicinity of the historical process behavior and employing the model’s structure in designing algorithms to solve it. This solution has been deployed at Suncor Energy, an oil-sands company, since January 2019 and is estimated to generate business value in the order of tens of millions of dollars per year. The generalized approach of this framework lends it the ability to be applied to any processing or manufacturing plant.