To me, the question of inspiration is an exercise in hindsight. The truth is, inspiration is mysterious at the time. I don't think it's ever a rational process.
To create characters, one must build background. And one of the tools we use is improvisation.