Maxwell fluid flow over a curved surface with the impacts of nonlinear convection and radiation, temperature‐dependent properties, and magnetic field are investigated. The governing equations of the physical system are solved using wavelet based physics informed neural network, a machine learning technique. This is an unsupervised method, and the solutions have been obtained without knowing the numerical solution to the problem. Given the nonlinearity of the coupled equations, the methodology used is flexible to implement, and the activation function used improves the accuracy of the solution. We approximate the unknown functions using different neural network models and determine the solution by training the network. The special case of the obtained results is examined with the available results in the literature for validation of the proposed methodology. It is observed that the proposed approach gives reliable results for the analyzed problem of study. Further, an analysis of the influence of flow parameters (deborah number, variable thermal conductivity and viscosity parameter, velocity slip parameter, temperature ratio parameter, suction parameter, and convection parameters) on temperature and fluid flow velocity is carried out. It is observed that as the flow parameter Deborah number, velocity slip parameter, and viscosity parameter increase, there is a decline in velocity and an enhancement in temperature. This study of fluid flow over a curved surface has applications in the polymer industry, which plays an important role in the manufacturing of contact lenses.