I am going to help you.
What is the grammatical function of to help you here?
Reopen note
Please note that I did not ask about going to (and that the to belongs with the following verb as shown above, not with going). The question is about the grammatical relations of to help you, not about going.