In the Riffs article in UKE Magazine Issue 32, it was mentioned that a good way to start coming up with riffs is experimentation, using scales, and a backing track. Use some notes from the scale in a repeated pattern, with the backing track in place so you can hear how it would sound when you’re joined by other musicians.
Here is the backing track: