How to make the avatar different depending on the brand | Community
Skip to main content

How to make the avatar different depending on the brand

  • July 8, 2022
  • 3 replies
  • 0 views

raphael12

Hi Zendesk Community,

On the e-mails look

Depending on the ((footer)) - that always include the brand - we can set something like (% case ((footer)) IS 'This e-mail comes from Zendesk.' %) THEN________________.

How can we change the agent avatar depending on the brand please? In the e-mails

Thank you !

Best regards,

 

3 replies

Lou11
  • July 8, 2022

(Disclaimer: I'm no expert on this).

Having said that, I don't believe you can. There's only one email template for all emails going out, so you can only have the one footer.


raphael12
  • Author
  • July 11, 2022

@lou11 Thanks a lot Lou! 


  • January 15, 2024

When it comes to customizing the agent avatar in emails based on the brand mentioned in the footer, you can achieve this by incorporating conditional statements in your email templates.

In this example:

  • We use a case statement to check the content of the footer.
  • Depending on the content, we assign a specific avatar URL to the agent_avatar variable.
  • The if statement is used to ensure that if the agent_avatar is set, we display the corresponding image.

Make sure to replace the placeholder URLs with the actual URLs of the avatars you want to use. Additionally, you can extend the case statement to cover all the different brands you have.

Remember to test this in a safe environment first to ensure it works as expected with your specific setup.

Feel free to reach out if you have further questions or need more assistance.