Let's say I'm in A Minor and I want to harmonize a riff using m3.

On the A string:

Would I harmonize based on the key, or based on the note I start a riff on, in this case D? And what would it look like harmonized? Thanks.
Fender Stratocaster Standard
Fender Blues Jr.