Train email generator with given structured context (tabular or json)

I want to be able to train a model similar to described in below linkedin post. Basically given a linkedin profile the model outputs a reach-out email to that person for a job opening. I am trying something different but can someone please explain how this can be achieved? Basically how the training will be setup and which hugging face models one can try?

Example. Given a Linkedin profile a cold email may look like this. All the context in the email is derived from linkedin profile and added context about job.

Hello John Doe,
Your experience at Adobe and Qualcomm is impressive. We are looking for an experienced Machine Learning Engineer like you at xyz. Let us know a convenient time to chat.
Jane Doe