The current investigation is carried out to analyze the effect of heat transfer in a flexible tube with ciliated walls and carbon nanotubes. The problem has been formulated in the form of non-linear partial differential equations, which are then reduced to ordinary differential equation form using the dimensionless variables and the conditions of low Reynolds number and long wavelength. Exact solutions have been obtained for velocity, temperature and pressure gradient and graphs for velocity, temperature and pressure gradient have been plotted for a better analysis of the solution.