When I was learning English in high school, we should remember that "be going to do =will do ".Maybe for native speaker there are some differences between them, but when they( "be going to do "and "will do ")mean sth will be done in the future, they are the same meaning.
In German, there is not a phrase like "be going to do ".So it does not means "Are you…?"and "Will you …?"both can be "Wirst du, Werden Sie "."Are you going to "is one phrase.
I hope that can help you: )