Continuing through the lattice of material, the electrons flow from the N type material to the P type material through an electrical connector, dropping to a lower energy state and releasing energy as heat to the heat sink (hot side).
(the electrons; flow; from the N type material; to the P type material)
the electrons
flow
from the N type material to the P type material