To attract a Moshling you plant three seeds in your garden. You buy the seeds from the stand on Main Street or down at the Port, then plant a combination and see who turns up.
Every Moshling has its own specific three-seed combination, and the game doesn't hand you the recipe — the process is trial and error. Plant, check the garden, adjust, repeat.
Keep a note of the combinations you've already tried. It saves replanting the same failed set and makes the whole thing much faster.