Dynamic image in API triggered email campaign
Dear,
We are creating an API triggered campaign email, where the trigger includes a series of context attributes to make the content of the email dynamic and personalized.
There is one content block with an image that would need to be dynamic, based on a given context attribute from the trigger's payload (e.g. show an image of a dog if the context attribute value is "dog", or a cat if the value is "cat".
However, each image is stored on a location and has a random URL, so we cannot make that URL dynamic based on the attribute received in the trigger's payload (i.e. www.example.com/animal/{{animal_name}} would not work).
Given we have 90 different images with a random URL that can potentially be displayed based on that attribute, we can not map each image url to each context attribute value within the HTML, as that would make the content way too heavy.
How would you make that work?
Kind regards,
Stephan
