Need some mommy advice please

So I have a 3 year old who loves to talk to anybody and everybody which is a bit concerning to a point how do I talk to her about stranger danger without scaring her?