What to do to maintain the temperature of the body? To keep the body cool from inside?

Body temperature. Whoever designed the human body did it in a way so that it maintains its own temperature all by itself. You shouldn't have to do anything except avoid excessive exposure to heat (too much hot tubs, exercising in very high temperatures) or excessive exposure to cold (hypothermia).