~に{行|い}きます({目的|もくてき})
'go (somewhere) to do …'
N5
V-stem + に + {行|い}きます/{来|き}ます/{帰|かえ}ります | N (activity) + に + {行|い}きます
This pattern gives the purpose of going somewhere: {昼|ひる}ご{飯|はん}を{食|た}べに{行|い}きます. Use the verb stem (drop ます) + に; activity nouns ({買|か}い{物|もの}, {散歩|さんぽ}) take に directly: {買|か}い{物|もの}に{行|い}きます. The full sentence is often place + へ + purpose + に + {行|い}きます. Don't use the dictionary form ({食|た}べるに) here; ~ために comes later at N4.
Examples
昼休みにコンビニへパンを買いに行きます。
At lunch break I go to the convenience store to buy bread.
来週、母が日本へ私に会いに来ます。
Next week my mother is coming to Japan to see me.
日曜日は友だちと買い物に行きました。
On Sunday I went shopping with a friend.
Exercises
1.図書館へ本を に行きます。
2.駅の近くの店へご飯を食べ 行きます。