There are many tools and techniques to help you fill cupcakes without making a mess when you're learning how to put filling in a cupcake. Most importantly, you must not rush the process. Allow the cupcakes to cool completely, consider your options to hollow out and fill your cupcake, and chose the best tool to fill them eg. a small measuring spoon or piping bag.