It is used to talk about the plans you have already made for the future:
I am going to meet Anna tomorrow.
She is going to watch a movie.
It is used to make logical predictions based on what you already know or you can see:
There are so many dark clouds in the sky. it's going to rain.
He is so pale. he is going to faint.