Claude 3.5 Sonnet (Claude) is very good at making custom email templates for tools like Postmark or SendGrid, way better than ChatGPT. It speeds up email design so much.
It will also generate and render code inline. Here I told it to redesign the same email but for a team member invitation:
And you can view the full email here…
Cool stuff - no more plain text emails for me!
In case you want to include HTML in SendGrid without too much effort, here’s the code for your API Connector call (replace Send email actions with the custom API call):
URL
https://api.sendgrid.com/v3/mail/send
Headers
Authorization: Bearer $SendGridAPIKey
Content-Type: application/json
Body
{
"personalizations": [
{
"to": [
{
"email": <email>
}
]
}
],
"from": {
"email": "admin@notquiteunicorns.xyz"
},
"subject": <subject>,
"content": [
{
"type": "text/html",
"value": <html>
}
]
}
Then, just ensure all of your inputs are :formatted as JSON safe.