Skip to main content
Adobe Employee
Jun 2, 2025 9:04 PM UTC
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

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

4 replies

SatheeskannaK
Adobe Champion, Community Advisor, UG Leader
Adobe Champion, Community Advisor, UG Leader
Jun 3, 2025 3:03 AM UTC

@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
Adobe Employee
Jun 4, 2025 4:43 PM UTC

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
Adobe Champion, Community Advisor, UG Leader
Adobe Champion, Community Advisor, UG Leader
Jun 4, 2025 5:20 PM UTC

@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