Automatic Heat template generation