They are attracted flowers with petals that form a landing platform, and that have a sweet scent. In my yard the bees are attracted to lupines, palo verdes, acacias, cassias and rosemary. Butterflies, on the other hand, visit flowers that are orange, yellow, pink or blue. They like that have a wide landing pad, but will visit more tubular flowers as well. Examples of butterfly flowers are zinnias, butterfly bush, calendulas, Mexican sunflowers, and hollyhocks.
Moths are active at night, so require flowers that are open and providing nectar at night.
White flowers with a very strong, sweet scent are easiest for them to locate. Examples of flowers for a moonlight moth garden are honeysuckle, datura, flowering tobacco, and primrose. In fact, yuccas can only be pollinated by one insect, the yucca moth. We tend to forget other insects that pollinate flowers. Beetles come to dull, reddish brown flowers that smell spicy or like rotting fruit.