Customizing templates

Customizing templates

Hi everyone! I'm facing this issue, I'm not sure how to resolve it yet. Can you help me please? I'm automating the lead onboarding process, so I created a template to welcome new leads and included a button "Book your appointment" It should take the customer to the sales rep's google calendar. There are 3 reps, how can I customize the template so the link associated to the button is the corresponding owner record's google calendar link?