40 questions on be going to vs will, focusing on when going to is needed: plans & intentions, evidence-based predictions; and when will is needed: spontaneous decisions, promises, opinions.
Use 'be going to' for a plan you made before you started speaking. Use 'will' for a decision you make as you speak. Five sentences need going to and five need will.