have the "add to calendar" function in the auto generated email

have the "add to calendar" function in the auto generated email

Hello,
Is there a function to add to the auto-generated email, like a link, that the patient can click and have the appointment added to their own calendar? I searched online but it seems not as easy as adding some codes to customize in the email template.