We use be going to for plans. We also use it when we are sure that something is going to happen in the future.