Once a Moshling appears in your garden, click on it and choose "Keep It!" to add it to your collection.
Attracting one in the first place is the harder half. Different Moshlings require different combinations of plants in your garden, so check the Moshlings guide for the specific recipe you are chasing and plant accordingly.