In the “configuring promotions” lab at Ascend 2017 in Vegas, there was an exercise I created for a custom promotion.
It’s a fairly easy promotion: to be able to give a give a gift on an entry level, instead of on an order level.
You can find the full code to the promotion in this gist.