There are two main ways to add games to a DSi. You can insert a physical game card into the cartridge slot, or you can download titles through the DSi Shop using DSi Points.
To get points, buy a DSi Points card from the DS section of a retailer. A card is often around $20 for 200 points, enough for a few smaller titles. Many downloads are short, demo-style games, though some fuller games are offered for around 800 points.
Once you have a card, open the DSi Shop app already on your system, enter the code, choose a game, and download it straight to your DSi menu.