Go to https://sendgrid.com/dynamic_templates, then click the "Create Template" button.
Then type a name, here we choose "onboarding_next_step", then click "save"
So you get there:
Where you will click the "Add version" button.
Make sure to choose "Code editor", then click on "Continue"
Copy this snippet in the "Test data" tab:
{
"name": "Antoine",
"agent_installed": true,
"subject": "What are the next steps ?"
}
Then copy this snippet to the "Code" tab:
<p>Hi {{ name }},</p>
{{#if agent_installed }}
Look at our real-world example ...
{{else}}
Have you seen our tutorial ?
{{/if}}
Last settings, click on the "Settings", on the left bar to setup the mail template name and the subject.