Maintenance and management of fourth-generation (4G) current networks are still done manually and semi-automatically, which is expensive and time-consuming. This poses a major challenge for network management of disparate, software-defined, and virtualized fifth-generation (5G) systems. Fifth-generation (5G) cellular networks include a wide variety of technologies to address very different uses. Assessing these technologies and exploring future alternatives is complicated by relying solely on network administrators. 5G network intelligence is an important alternative to network administrators. With the advent of network intelligence for the 5G system opens the possibility of intelligent control. Without the intervention of administrators, the new approach can autonomously solve network problems, cyberattacks and inefficient use of resources, which in turn can reduce operating costs, improve user experience and reduce the time to market of new services. This work presents a test bench of a 5G mobile network with a virtualized and organized structure that focuses on integration into artificial intelligence programs. The presented test bench uses open-source technologies for deployment and orchestration of virtual network functions for flexible creation of various scenarios of mobile networks with clear topologies of frontal and feedback. The article explains how to deploy the structure of the test bench and reproduce the presented results with the provided algorithms and presents the recommended architecture, functionality, closed control, algorithms that include network intelligence. An intelligent 5G test bench has been installed, and experimental results confirm the feasibility and effectiveness.