Heat engine takes energy from source performs work and discards residual energy to sink, while in a heat pump the working substance external agency does some work on working substance it draws heat from sink and transfers it to source at higher temperature.