To go (somewhere) for the purpose of doing an action.
Long explanation:
The grammar point Verb に 行きます is used when expressing that someone is going to a certain place with the purpose of doing a specific action. It is formed by combining the verb in the dictionary form with に 行きます.