How can I add images to the body of email notifications sent by triggers or automations? There doesn't seem to be any button to attach files or add inline images?
Currently, there is no native "add inline image" option when editing the body of email notifications sent by triggers or automations. However, it is possible to include images in those notifications by using HTML.
You can use HTML to reference an image's location and have the email body display the image itself, rather than the image's URL or file path. We use an image tag to include the image in the email body, which looks like this: <img src="image_url">. Your image needs to be hosted online in order for it to be used as part of the image tag. If you don't have somewhere to host the image file, you can upload it as an asset in your help center. You can see an example of how to use HTML to include an image in the body of a trigger notification below.
1. Find the image you want to include in the email body and get the direct URL for that image.
We are going to use the image below which has this direct URL: https://d1eipm3vz40hy0.cloudfront.net/images/social/twitter-zendesk.jpg
2. In the email body within the Trigger creation page, you will need to include the HTML image tag we mentioned above, substituting the image's direct URL where it says "image_url".
3. Test your trigger to make sure everything looks correct. You can do this by setting the trigger conditions so they only fire on your test ticket (e.g., "Tags > Contains at least one of the following > TestForHTML") and then checking the email notification you receive.
You can also use HTML to do things like resize the image so that it looks more in-line with the rest of the email, and there are some great online tutorials for learning how to use HTML, like w3schools.