here is one of Jerry Garcia's main "signature licks" he played at the end of thousands of Grateful Dead songs ...
(jump straight to 6:55 if you just want to hear the lick, without all the teaching or explaining) ...
Track Listing
1:45 - How to Play - Jerry Garcia's "Magical Ending Lick" - PART 1
3:51 - this works in any key - here it is in the "key of G"
4:14 - this works in any key - here it is in the "key of C"
4:45 - PART 2 - here are the "extra two notes" you can add at the end of the lick
6:09 - how can this always work when it contains notes not even in the scale?
6:42 - How to Play - the COMPLETE LICK with the "extra two notes" added - "key of G"
7:06 - this lick works even on MINOR CHORDS - "key of A minor"
8:25 - Summary