Active elements in active nematics can impose forces on immersed bodies and move them accordingly. We numerically investigate the vibrational motion of a cantilever beam placed in active nematics. The continuous energy transfer from vortices to the beam results in beam oscillation, whose direction and amplitude depend on the vortex strength, size and position. Referring to the kinetic-energy spectrum, we indicate that both the large- and small-scale vortices are the primary mechanism for the energy transfer between the fluid and beam, leading to the beam oscillatory motion, with the contribution from the large-scale vortices being higher. We investigate the effect of fluid properties such as activity, viscosity and elastic constant on the oscillation frequency. We show that the intensification of the activity increases peak frequency, and there is a linear correlation between the peak frequency and activity. We further demonstrate the reciprocal relationship between viscosity and peak frequency. Subsequently, we relate the increase and decrease in the peak frequency to the energy injection/dissipation by activity/viscosity. Moreover, we reveal the negligibly small dependency of beam peak frequency on the elastic constant and discuss free energy's role in accounting for this behaviour. The findings clearly demonstrate that active fluids can impose an oscillatory motion on flexible bodies, which might be used as a novel method for measuring the critical properties of active nematics.