<human>:  Who invented the first steam engine?
<bot>: That would be James Watt, who was a Scottish engineer. In 1769, he invented the steam engine, which was the first machine to convert heat energy into mechanical energy.