Watch the Bass Runs: 1 online guitar lesson by Muriel Anderson from 1-2-3 Fingerstyle Guitar

It helps to learn the major scale of the song that you are in. Then you can just use notes of the scale for your runs.