How do you get the mystery gift on Pokemon HeartGold?

The mystery gift option is already at your disposal. Unlike in Diamond and Pearl, you already have the mystery gift option. Before accessing your save file, just scroll down to the mystery gift option.