Re: RTP Predictive Token in Snippet: What does Position control?

JD_Nelson
Level 10 - Community Advisor

RTP Predictive Token in Snippet: What does Position control?

<a href="{{predictive.content:default=layout-2;position-229905}}" target="_blank"><img width="179" border="0" style="width: 179px!important; height: auto!important;" src="{{predictive.image:default=layout-2;position-229905}}" />

I'm trying to use this code in a snippet so I can globally control the layout of my predictive content in my emails, by using a snippet. I finally got everything the way I want it, but I can't figure out what the position is referencing. I have 3 predictive images in the snippet, and from best I can tell 'position' is required (without the position, all three pieces of content are the same; but even with the same position, all pieces of content are still the same) --

Anyone had luck with this?

Tags (1)
5 REPLIES 5
JD_Nelson
Level 10 - Community Advisor

Re: RTP Predictive Token in Snippet: What does Position control?

David Myers​, this is what I was talking with you about in regards to putting my ContentAI into a Snippet. The code I could not decipher was the Position #, as mentioned above. Any insight on that?

Marit_Rossing
Level 3

Re: RTP Predictive Token in Snippet: What does Position control?

Hi JD Nelson,

I was looking for documentation on Predictive Content inside Snippets. Thanks for the provided code above. Are you aware of an overview of tokens that we can use for Predictive Content?

Thanks Marit.

JD_Nelson
Level 10 - Community Advisor

Re: RTP Predictive Token in Snippet: What does Position control?

No. Predictive (contentai, now) renders everything as an image when you save it. Tokens/personalization are not available.

Marit_Rossing
Level 3

Re: RTP Predictive Token in Snippet: What does Position control?

Thanks for your message. Are you aware or is there a list of the elements (like layout, position) that can be used in this token: {{predictive.content:default=layout-2;position-229905}} or tokens like this we can use for predictive content?

JD_Nelson
Level 10 - Community Advisor

Re: RTP Predictive Token in Snippet: What does Position control?

No. Predictive content is not dynamic and therefore won't have any tokens to use. The token I showed above was purely for bringing in the predictive content to your snippet/asset, the 'layout' is 1-6 of the default layouts available in ContentAI (and something you normally choose when inserting content through the normal editor image process. The 'default' bit relates to the categories you setup to classify your predictive content (for instance only showing "whitepapers" or another category you've chosen). Other than that there aren't any additional filters or criteria. Hope that helps.