how to use contextual attributes in creating a ranking formula | Community
Skip to main content
Employee
June 2, 2025
Question

how to use contextual attributes in creating a ranking formula

Hi

I am trying to use contextual attributes like current temp in a ranking formula to assign ranking score to offers using offer decisioning. I am using AEP Tags to send event with contextual data  to AEP, and the event is being sent correctly. But I think the current temp value in the ranking formula is always null. The screenshot from AEP debugger shows the contextual data that is being sent from AEP Tags

 

 

4 replies

SatheeskannaK
Level 1
June 3, 2025

@workflowuser Did you follow this documentation on how to use contextual data in offer decisioning?

https://experienceleague.adobe.com/en/docs/journey-optimizer/using/decisioning/experience-decisioning/selection/context-data

Translate
Thanks, Sathees
Employee
June 4, 2025

yes, I have followed that documentation. I was able to select the context data in my formual ranking builder  if ( context.datastream.event.`305db7ad21287bf3e904ed956d6d8008526e5433b625e71d`._techmarketingdemos.temperature > 65, 100, 0 ).

The rule is not working as expected, as it is assigning a score of 0 to offers. That means the temperature field value is not being passed correctly 

Translate
SatheeskannaK
Level 1
June 4, 2025

@workflowuser I'm curious if you've tried with other contextual attributes like Humidity, city name, and so on. Is that working for you?

Translate
Thanks, Sathees