Great question! The best way to set something like this up would be with one of our apps from our app store. I can list a few of them below. All have similar functions of offering discounts for certain product/cart conditions and come with free trials.
You can find them here:
You can test each out to see which will work best for you and your store :)