Due to the growth of population traffic congestions are increasing and reaching to critical limits, so it is considered as a severe challenge, that facing cities and metropolitans to solve traffic congestion. To achieve this there are many approaches and one of them, is developing an adaptive traffic light signal in order to tackle this problem. Therefore, before designing traffic signal, it is necessary to study all the factors that affect the design of traffic signal. Traffic light management system is an important factor for everyone within the city as it controls the traffic flow. The main reasons behind poor traffic light management system occur due to poor road management, rapid growth in number of cars, legacy traffic light system, and poor practices on behalf of drivers. Traffic light management system aims to reduce traffic congestion, safety, and delay. This paper utilizes the new technology of artificial intelligence approaches to generate an automated traffic light management in order to improve vehicles flow and minimize intersection delay in Jordan as a case study. The proposed approach starts with extracting rules from the data set using Weka. According to the extracted rules and some exception constraints, Answer Set Programming (ASP) is used to generate the solution for the extracting rules to return an optimal slot time for the traffic light phases dynamically.