This paper explores the necessary adaptations to the theory of administrative discretion when using AI systems. Regulatory frameworks in the EU, US, and Spain do not prohibit the application of AI in discretionary decision-making. Particularly, AI systems can be used when discretionary power involves correlations. However, to meet Rule of Law conditions, it is essential to establish adaptations and boundaries in areas such as duty of care, reason-giving, and judicial review. These conditions should focus on the impact of decisions on the affected individuals.