What you are describing sounds like the plot of the SyFy series Caprica, though the figure he constructs is a robot or android rather than a doll.
At the time of writing the show had not yet debuted, which is why it may have been hard to place.