Going to is used to indicate plans, predictions where there is evidence of what will happen, or imminent actions. Will is used for instant decisions, promises, offers, predictions by guessing the future, and when there is no explicit connection to the present. Both can be used to predict the future in some cases interchangeably, but going to implies a connection to the present while will does not.