For commercial vehicles, reliability is key since the vehicle is typically linked to the daily earnings of the owner. To ensure continuous vehicle operation, early issue diagnostics and proactive maintenance are important. However, an electric vehicle is a complex and dynamic system consisting of numerous components interacting with each other and with external environments such as road conditions, traffic, weather, and driving behavior. Thus, vehicle operation and performance are highly contextual and for identifying an abnormal operation (diagnostics) the solution must take into account the conditions under which it is driven. To address this, we have built an AI-based digital twin of electric vehicles. The model is an AI-based generative transformer network that generates near-ideal vehicle behavior. The present focus has been on motor, controller and battery. The model is trained using 200 vehicles first 1500 km driven data. To ensure the digital twin model learns near-ideal