Gift card recived only gifted person

For those who are purchasing a box for themselves, I need automations : thank you email (exist already), an invoice email and a form to fill (exist already)
For those who are buying the box as a gift, I need a thank you email (exist already), an invoice email and a firm to fill that is send to the receiver as well as a gift card.

If I buy something for me, I don’t want to receive a gift card. Obviously, because this is for me

I want the gift card to only go to the gifted person

Thanks