First time customer coupon

I want to entice first time customers to return and buy more. What I’d like to do is automatically send them a coupon after their first purchase.

I know how to make an automatically generated coupon. I’m not sure how to know who is a first time customer.

Any ideas?