© 2021 Tech Science Press. All rights reserved.In this article, a low-cost electromagnetic structure emulating photonic nanojets is utilized to improve the efficiency of wireless relay networks. The spectral element method, due to its high accuracy, is used to verify the efficiency of the proposed structure by solving the associate field distribution. The application of optimal single-relay selection method shows that full diversity gain with low complexity can be achieved. In this paper, the proposed technique using smart relays combines the aforementioned two methods to attain the benefits of both methods by achieving the highest coding and diversity gain and enhances the overall network performance in terms of bit error rate (BER). Moreover, we analytically prove the advantage of using the proposed technique. In our simulations, it can be shown that the proposed technique outperforms the best known state-of-the-art single relay selection technique. Furthermore, the BER expressions obtained from the theoretical analysis are perfectly matched to those obtained from the conducted simulations.