Purpose The complexity of citizenship behavior in organizations has long been a focus of research. Traditional methodologies have been predominantly used to address this complexity. This paper aims to tackle the problem using a cutting-edge technological tool: business process mining. The objective is to enhance citizenship behaviors by leveraging primary data collected from 326 white-collar employees in the Indian service industry. Design/methodology/approach The study focuses on two main processes: training and creativity, with the ultimate goal of fostering organizational citizenship behavior (OCB), both in its overall manifestation (OCB-O) and its individual components (OCB-I). Seven different machine learning algorithms were used: artificial neural, behavior, prediction network, linear discriminant classifier, K-nearest neighbor, support vector machine, extreme gradient boosting (XGBoost), random forest and naive Bayes. The approach involved mining the most effective path for predicting the outcome and automating the entire process to enhance efficiency and sustainability. Findings The study successfully predicted the OCB-O construct, demonstrating the effectiveness of the approach. An optimized path for prediction was identified, highlighting the potential for automation to streamline the process and improve accuracy. These findings suggest that leveraging automation can facilitate the prediction of behavioral constructs, enabling the customization of policies for future employees. Research limitations/implications The findings have significant implications for organizations aiming to enhance citizenship behaviors among their employees. By leveraging advanced technological tools such as business process mining and machine learning algorithms, companies can develop more effective strategies for fostering desirable behaviors. Furthermore, the automation of these processes offers the potential to streamline operations, reduce manual effort and improve predictive accuracy. Originality/value This study contributes to the existing literature by offering a novel approach to addressing the complexity of citizenship behavior in organizations. By combining business process mining with machine learning techniques, a unique perspective is provided on how technological advancements can be leveraged to enhance organizational outcomes. Moreover, the findings underscore the value of automation in refining existing processes and developing models applicable to future employees, thus improving overall organizational efficiency and effectiveness.