Question: what is the difference between will and to be going to?
Answer: Will is used to express future actions decided at the moment of speaking while Going to describes future plans decided before the moment of speaking.