ReSci's integration with Curalate allows for Curalate images to be used in product recommendations rather than standard stock photos. For reference, Curalate's API documentation can be found here.
- Sign up for Curalate and request a "dataSourceId" for their API.
- Use the "Top images" API endpoint as shown in the example below.
https://api-2.curalate.com/v1/media/:dataSourceId/images/top?filter=productId:Item_SKU&fallbackImage=productImageUrl
- Replace the
:dataSourceId
parameter with thedataSourceId
from Step 1. - Replace the
filter=productId:Item_SKU"
withfilter=productId:{{rs_rmdl1}}
, as shown in the example below. - Replace the
fallbackImage=productImageUrl
withfallbackImage={{ rs_riu1 }}
, as shown in the example below.
- When setting up the API you should specify the
fallbackimage
parameter. While this isn't required, specifying the fallback image as{{ rs_riu# }}
ensures that if a social image for the product isn't found,it uses the image specified by the items feed.
https://api-2.curalate.com/v1/media/WoloukOXUpBbBEop/images/top?filter=productId:{{rs_rmdl1}}&fallbackImage={{ rs_riu1 }}
- Insert the dynamic URL:
- If you're using the Template Builder, copy this link and insert it as the "Dynamic URL".
- If using the HTML editor, the complete image tag should resemble the following:
<img src="https://api-2.curalate.com/v1/media/WoloukOXUpBbBEop/images/top?filter=productId:{{rs_rmdl1}}&fallbackImage={{ rs_riu1 }}" alt="{{ rs_rn1 }}" align="center" style="border: 0;padding-left: 10px;padding-right: 10px;padding-bottom: 10px; padding-top: 10px;" border="0" width="150">
Once all of this is complete, when your email is sent, the image should be replaced with the Social Image pulled from Curalate!
Comments
0 comments
Please sign in to leave a comment.