Auto generation of heat teamplate