There is a lot of overlap where either one would work just as well. Where there is a difference:
“Going to” is usually used to talk about plans, or predictions based on solid evidence — the process is already in motion as you speak.
“Will” is usually used to talk about decisions in the moment, or predictions based on possibility or opinion.