The whole point of a guitar solo is that it is unscripted. That you are not following a formula. You are just feeling the music and applying the techniques you have learned to make something at the moment.
It is a risk because it might not work.
The reward, however, is that you do something for someone one time–creating a unique experience.