• A methodology for assessing and managing energy flexibility in the commercial building sector. • Disaggregation of the electricity load, based on real-time data integrated with information gathered from interviews with technical staff in the building. • A deterministic optimization model that can simulate scenarios involving increases or reductions in flexible loads. • An artificial neural network model that integrates a feasibility classifier to assess whether load adjustments are possible an