This article will pre-populate a default email template when the user clicks the 'Email' action on case feed layout, or clicks the 'Reply' / 'Reply All' button.
Apex Class:
You will need an Apex Class which implements the QuickActions.QuickActionsDefaultHandler
Please note that you could use the class below to modify the code and pick different templates for different scenarios.