Gold-based metal nanoparticles serve a key role in diagnosing and treating important illnesses such as cancer and infectious diseases. In consideration of this, the current work develops a mathematical model for viscoelastic nanofluid flow in the peristaltic microchannel. Nanofluid is considered as blood-based fluid suspended with gold nanoparticles. In the investigated geometry, various parametric effects such as Joule heating, magnetohydrodynamics, electroosmosis, and thermal radiation have been imposed. The governing equations of the model are analytically solved by using the lubrication theory where the wavelength of the channel is considered large and viscous force is considered more dominant as compared to the inertia force relating the applications in biological transport phenomena. The graphical findings for relevant parameters of interest are given. In the current analysis, the ranges of the parameters have been considered as: [Formula: see text]The current results reveal that, A stronger magnetic field leads the enhancement in nanoparticle temperature and shear stress, and it reduces the velocity and trapping bolus. The nanoparticle temperature rises with the increasing parameters such as Brinkman number and Joule heating parameter.