One of the best things I did was give my husband space and time, learned to be very patient (hey, it's the journey that matters, not how quickly you get there!). I also told him he needed to be very certain he wanted to be with me and the kids before he came back, and even though I'd try to make everything work, he'd need to understand it might not always be perfect or happy and he had to be okay with that.
I didn't try to convince him to come back, I needed him to convince himself that he wanted to be back. It took time, but I think it was worth it.