Auf dieser Seite: Erstellen Sie mit dem KI-Formelgenerator Rangfolgeformeln, die KI-Modellwerte, Angebotsprioritäten, Profilattribute und kontextuelle Signale kombinieren, damit Sie steuern können, welches Angebot zuerst angezeigt wird, und die Entscheidungsfindung sowohl auf Ihre Geschäftsziele als auch die Anforderungen Ihrer Kundschaft abstimmen können.
Mit Rangfolgeformeln können Sie festlegen, welches Angebot zuerst angezeigt werden soll, anstatt die Prioritätswerte der Angebote zu berücksichtigen.
Um diese Regeln zu erstellen, bietet der KI-Formel-Builder in Adobe Journey Optimizer mehr Flexibilität und Kontrolle bei der Rangfolge von Angeboten. Anstatt sich nur auf eine statische Angebotspriorität zu verlassen, können Sie nun benutzerdefinierte Rangfolgenformeln definieren, die Werte von KI-Modellen, Angebotsprioritäten, Profilattribute, Angebotsattribute und kontextuelle Signale über eine geführte Benutzeroberfläche kombinieren.
Dieser Ansatz ermöglicht es Ihnen, die Angebotsrangfolge dynamisch auf der Grundlage einer beliebigen Kombination aus KI-gesteuerter Tendenz, geschäftlichem Nutzen und Echtzeit-Kontext anzupassen, was die Abstimmung der Entscheidungsfindung auf Marketing-Ziele und Kundenanforderungen erleichtert. Der AI Formula Builder unterstützt einfache oder erweiterte Formeln, je nachdem, wie viel Kontrolle Sie anwenden möchten.
Sobald eine Rangfolgenformel erstellt wurde, können Sie diese einer Auswahlstrategie zuweisen. Wenn mit dieser Auswahlstrategie mehrere Angebote für diese Platzierung infrage kommen, verwendet die Entscheidungs-Engine die ausgewählte Formel, um zu berechnen, welches Angebot zuerst bereitgestellt werden soll.
Leitlinien und Einschränkungen ranking-guardrails
Beachten Sie vor dem Erstellen von Rangfolgeformeln die folgenden Einschränkungen:
- Der KI-Formel-Builder unterstützt keine personalisierten Optimierungsmodelle, die kontinuierliche Metriken verwenden.
- Wenn Sie ein KI-Modell verwenden, das in eine Rangfolgeformel integriert ist, werden Daten nicht im Bericht Konversionsrate für Holdout und modellgesteuerten Traffic angezeigt.
- Die Verschachtelungstiefe in einer Rangfolgenformel ist auf 30 Ebenen beschränkt und wird durch die Anzahl der
)in der PQL-Zeichenfolge bestimmt. - Die Zeichenfolge einer Rangfolgeformel kann bei UTF-8-codierten Zeichen bis zu 8 KB groß sein (8.000 ASCII-Zeichen oder 2.000–4.000 Nicht-ASCII-Zeichen).
- Lookback-Zeiträume werden in Rangfolgeformeln nicht unterstützt (z. B. Erlebnisereignisse aus dem letzten Monat). Beim Versuch, solche Formeln zu speichern, wird ein Fehler ausgelöst.
- KI-gestützte Formeloptimierung gilt nur für Rangfolgeformeln, deren Code-basierter PQL-Ausdruck größer als 2 KB in UTF-8-codierter Größe ist. Kleinere Formeln werden nicht analysiert.
- Wenn eine Formel auf ein Entscheidungselementattribut verweist, das keinen Wert für ein Element hat, wird die Referenz auf null aufgelöst. Eine Null in einem arithmetischen Ausdruck macht das gesamte Ergebnis null, und das Element erhält den Score null. Füllen Sie das -Attribut für jedes Element aus oder behandeln Sie fehlende Werte in der Formel, wie im Neigungs-Beispiel in Definieren von Kriterien mithilfe des Code-Editors.
Erstellen der Rangfolgenformel und Festlegen von Eigenschaften create-ranking-formula
Gehen Sie wie folgt vor, um eine Rangfolgenformel zu erstellen:
-
Rufen Sie das Menü Strategie-Setup auf und wählen Sie dann die Registerkarte Rangfolgenformeln aus. Es wird die Liste der zuvor erstellten Rangfolgen angezeigt.
-
Klicken Sie auf Formel erstellen.
-
Geben Sie den Namen der Formel an und fügen Sie bei Bedarf eine Beschreibung hinzu.
{width="80%"}
-
Klicken Sie optional auf KI-Modell auswählen, um das Modell festzulegen, das als Referenz zur Erstellung der Rangfolgenformel verwendet wird.
Jedes Mal, wenn Sie bei der Definition Ihrer unten stehenden Formel auf eine Modellbewertung verweisen, wird das von Ihnen ausgewählte KI-Modell verwendet.
-
Definieren Sie die Bedingungen, die den Rangfolgewert für die übereinstimmenden Entscheidungselemente bestimmen. Sie haben folgende Möglichkeiten:
- Füllen Sie den Abschnitt Kriterien mit dem Formel-Builder aus und/oder
- Klicken Sie auf Zum Code-Editor wechseln und definieren oder optimieren Sie die Rangfolgelogik mit PQL im Code-Editor.
Verwenden von Adobe Experience Platform-Daten aep-data
Im Abschnitt Datensatzsuche können Sie Daten aus Adobe Experience Platform verwenden, um die Rangfolgelogik dynamisch anzupassen und so reale Bedingungen widerzuspiegeln.
Dies ist besonders nützlich bei Attributen, die sich häufig ändern, beispielsweise Produktverfügbarkeit oder Echtzeitpreise. Informationen zum Verwenden von Adobe Experience Platform-Daten für die Entscheidungsfindung
Definieren von Kriterien
Definieren von Kriterien mithilfe des Formel-Builders ranking-select-criteria
Definieren Sie die Kriterien, die den Rangfolgewert für die übereinstimmenden Entscheidungselemente festlegen.
Mit einer intuitiven Benutzeroberfläche können Sie durch die Anpassung von KI-Bewertungen (Tendenz), Angebotswert (Priorität), kontextuellen Hebeln und externen Profiltendenzen die Entscheidungsfindung einzeln oder in Kombination verfeinern, um jede Interaktion zu optimieren.
-
Klicken Sie bei Bedarf auf Zum Code-Editor wechseln, um einen Ausdruck hinzuzufügen, der die PQL-Syntax parallel zum Formel-Builder verwendet. Diese Option ergänzt die Felder in der Benutzeroberfläche in den folgenden Schritten, sodass Sie beide Ansätze in derselben Rangfolgeformel kombinieren können. Weitere Informationen zur Verwendung der PQL-Syntax finden Sie im entsprechenden Handbuch. Die Syntax für Entscheidungselementattribute und Beispiele für das Kopieren und Einfügen finden Sie im Abschnitt Verwenden des Code-Editors.
note NOTE Durch den Wechsel zum Code-Editor werden Ihre Kriterien um ausdrucksbasierte Eingaben erweitert. Die anderen Felder der Benutzeroberfläche werden nicht entfernt. -
Geben Sie im Abschnitt Kriterium 1 die Entscheidungselemente an, auf die Sie einen Rangfolgenwert anwenden möchten, indem Sie Folgendes durchführen:
- ein Entscheidungselementattribut auswählen
- einen logischen Operator auswählen
- eine übereinstimmende Bedingung hinzufügen – Sie können entweder einen Wert eingeben oder ein Profilattribut oder Kontextdaten auswählen
{width="70%"}
-
Optional können Sie zusätzliche Elemente angeben, um die übereinstimmenden Bedingungen zu verfeinern, damit Ihre Kriterien erfüllt sind.
{width="80%"}
Sie haben beispielsweise Kriterium 1 so definiert: „Das benutzerdefinierte Attribut Wetter ist gleich der Bedingung Warm“. Darüber hinaus können Sie eine weitere Bedingung hinzufügen, z. B. wenn die erste Bedingung erfüllt ist und wenn die Temperatur zum Zeitpunkt der Anfrage 23 Grad überschreitet, dann ist Kriterium 1 wahr.
-
Erstellen Sie einen Ausdruck, der den Entscheidungselementen, die die oben definierte Bedingung erfüllen, einen Rangfolgenwert zuweist. Sie können eine der folgenden Optionen verwenden:
- die Punktzahl, die aus dem KI-Modell hervorgegangen ist, das Sie optional im Abschnitt Details oben ausgewählt haben;
- die Priorität des Entscheidungselements, die ein Wert ist, der beim Erstellen eines Entscheidungselements manuell zugewiesen wird;
- alle Attribute, die im Profil vorhanden sein könnten, z. B. jede extern abgeleitete Tendenzbewertung;
- ein statischer Wert, den Sie in einem freien Format zuweisen können;
- jede Kombination der oben genannten Optionen
{width="70%"}
note NOTE Klicken Sie auf das Symbol neben dem Feld, um vordefinierte Variablen hinzuzufügen. -
Klicken Sie auf Kriterium hinzufügen, um ein oder mehrere Kriterien beliebig oft hinzuzufügen. Es gilt folgende Logik:
- Wenn das erste Kriterium für ein bestimmtes Entscheidungselement zutrifft, hat es Vorrang vor den nächsten Kriterien.
- Wenn dies nicht der Fall ist, wechselt die Entscheidungs-Engine zum zweiten Kriterium usw.
-
Im letzten Feld können Sie einen Ausdruck erstellen, der allen Entscheidungselementen zugewiesen wird, die die oben genannten Kriterien nicht erfüllen.
{width="70%"}
accordion Beispiel für Rangfolgenformeln {width="80%"}
Wenn die Region des Entscheidungselements (benutzerdefiniertes Attribut) gleich dem geografischen Label des Profils (Profilattribut) ist, wird der hier ausgedrückte Rangfolgenwert (eine Kombination aus der Priorität des Entscheidungselements, dem Wert des KI-Modells und einem statischen Wert) auf alle Entscheidungselemente angewendet, die diese Bedingung erfüllen.
-
Wenn Ihre Formel bereit ist, klicken Sie auf Erstellen.
Sie können die Rangfolgeformel jetzt aus der Liste auswählen und ihre Details anzeigen und sie bearbeiten oder löschen. Sie kann in einer Auswahlstrategie verwendet werden, um die geeigneten Entscheidungselemente in einer Rangfolge zu ordnen.
Definieren von Kriterien mit dem Code-Editor ranking-code-editor
Wählen Sie die Option Zum Code-Editor wechseln aus, wenn Sie eine Rangfolgelogik als PQL-Ausdruck erstellen oder bearbeiten möchten.
Anschließend können Sie Profilattribute, Kontextdaten und Entscheidungselementattribute nutzen.
Sie möchten zum Beispiel die Priorität aller Angebote mit dem Attribut „heiß“ erhöhen, wenn das Wetter heiß ist. Zu diesem Zweck wurde contextData.weather=hot im Entscheidungsaufruf übergeben.
Um Attribute im Zusammenhang mit Ihren Entscheidungselementen in Formeln zu nutzen, stellen Sie sicher, dass Sie die korrekte Syntax im Code Ihrer Rangfolgenformel befolgen. Erweitern Sie jeden Abschnitt, um weitere Informationen zu erhalten:
Sie können je nach Bedarf viele verschiedene Code-basierte Rangfolgeformeln erstellen. Im Folgenden finden Sie einige Beispiele.
Wenn das Profil in der Stadt lebt, die dem Angebot entspricht, verdoppeln Sie die Priorität für alle Angebote in dieser Stadt.
Rangfolgeformel:
| code language-none |
|---|
|
Rangfolgeformel:
| code language-none |
|---|
|
Sie können die Punktzahl für ein Angebot basierend auf einem Tendenzwert für den Kunden erhöhen.
In diesem Beispiel lautet der Instanzmandant _salesvelocity und das Profilschema enthält einen Bereich von Werten, die in einem Array gespeichert sind:
In diesem Fall, für ein Profil wie:
| code language-none |
|---|
|
Die Entscheidungselemente enthalten das benutzerdefinierte Attribut propensityType, das mit der Kategorie der Punktwerte übereinstimmt.
Ihre Rangfolgeformel kann dann den Score jedes Entscheidungselements so festlegen, dass er dem propensityScore des Kunden für diesen propensityType entspricht. Wenn kein Score gefunden wird, verwende die statische Priorität, die für das Entscheidungselement festgelegt wurde.
Rangfolgeformel:
| code language-none |
|---|
|
In diesem Beispiel versucht das System immer zuerst, ein Angebot anzuzeigen, das mit der Postleitzahl übereinstimmt. Wenn keine Übereinstimmung gefunden wird, wird ein allgemeines Angebot verwendet und die Anzeige von Angeboten für andere Postleitzahlen wird vermieden.
| code language-pql |
|---|
|
Was die Formel bewirkt:
- Wenn das Angebot dieselbe Postleitzahl wie die Benutzerin bzw. der Benutzer hat, weisen Sie ihm eine sehr hohe Punktzahl zu, damit es zuerst ausgewählt wird.
- Wenn das Angebot überhaupt keine Postleitzahl hat (es handelt sich um ein allgemeines Angebot), geben Sie ihm eine normale Punktzahl, die auf dem Einkommen der Benutzerin bzw. des Benutzers basiert.
- Wenn das Angebot eine andere Postleitzahl hat als die Benutzerin bzw. der Benutzer, geben Sie ihm eine sehr niedrige Punktzahl, damit es nicht ausgewählt wird.
Mit Journey Optimizer können Sie bestimmte Angebote basierend auf Kontextdaten verstärken, die beim Entscheidungsaufruf übergeben werden. Wenn beispielsweise contextData.weather=hot übergeben wird, muss die Priorität aller Angebote mit attribute=hot erhöht werden.
| note |
|---|
| NOTE |
| Weiterführende Informationen zum Übergeben von Kontextdaten finden Sie in diesem Abschnitt. |
Beachten Sie, dass bei Verwendung des Decisioning-API die Kontextdaten zum Profilelement im Anfragehauptteil hinzugefügt werden wie im folgenden Beispiel:
| code language-none |
|---|
|
Simulieren der Rangfolgeformel simulate-ranking-formula
Bevor Sie eine Rangfolgeformel auf Ihre Auswahlstrategie anwenden, können Sie diese mit Beispiel- oder generierten Daten testen, um die Rangfolgeergebnisse zu validieren und das erwartete Verhalten sicherzustellen.
Aufrufen des Simulationsarbeitsbereichs
-
Öffnen Sie eine vorhandene Formel oder erstellen Sie eine neue und klicken Sie dann auf die Schaltfläche Formel simulieren.
-
Der Simulationsbildschirm wird mit mehreren Abschnitten geöffnet:
- Testvarianten: Hier generieren oder erstellen Sie manuelle Testvarianten
- Rangfolgeausdruck: Zeigt den Formelausdruck zu Referenzzwecken an
- Simulationsergebnis: Zeigt die Angebote nach Rangfolge geordnet an, wenn eine Variante ausgewählt ist
Hinzufügen von Testvarianten
-
Fügen Sie Testvarianten mithilfe einer der folgenden Methoden hinzu:
- Um ein manuelles Beispiel zu erstellen, wählen Sie die Schaltfläche Beispiel erstellen und wählen Sie anschließend die Angebotselemente aus, die Sie für den Test verwenden möchten.
- Um Testvarianten mithilfe von KI zu generieren, klicken Sie auf die Schaltfläche Generieren.
note NOTE Die KI-basierte Generierung von Testvarianten ist für Organisationen mit Zugriff auf Adobe AI-Funktionen verfügbar.
Der Abschnitt für Testvarianten wird automatisch mit den ausgewählten Elementen oder generierten Beispielen befüllt. Jede Variante enthält die in Ihrem Ausdruck verwendeten Attribute. Sie können die Feldwerte direkt bearbeiten, um verschiedene Szenarien zu simulieren.
Füllen von Varianten mit Adobe Experience Platform-Testprofilen
Nachdem Sie eine Variante erstellt oder generiert haben, können Sie Attribute aus vorhandenen Adobe Experience Platform-Testprofilen verwenden, um ihre Attribute zu befüllen.
-
Wählen Sie für eine Variante Bearbeiten aus und klicken Sie dann auf die Schaltfläche AEP-Profil auswählen.
-
Wählen Sie einen Identity-Namespace aus und geben Sie den entsprechenden Identitätswert ein.
Im Bereich Zuletzt werden Profile aufgelistet, die Sie erfolgreich angewendet haben. Die letzten Profile werden im Browser pro Organisation und Sandbox gespeichert. Sie sind mit dem neuesten zuerst sortiert und auf 10 Einträge beschränkt.
-
Klicken Sie auf die Schaltfläche Profil auswählen. Die Attribute des Testprofils werden zur ausgewählten Variante hinzugefügt.
Anzeigen der Simulationsergebnisse
Wählen Sie eine Testvariante aus der Liste aus, um das Rangfolgeergebnis Ihrer Simulation anzuzeigen. Im Abschnitt für das Simulationsergebnis werden die nach Rangfolge geordneten Angebote mit ihren Werten aufgeführt, sodass ersichtlich ist, wie Ihre Formel die Elemente auf Basis der Variantendaten anordnet.
Für jede ausgewählte Variante gibt die Simulation ein nach Rangfolge geordnetes Ergebnis zurück:
- Die am höchsten eingestuften Angebote sind diejenigen mit den höchsten berechneten Werten für diese Variante.
- Niedriger eingestufte Angebote bleiben qualifiziert, werden jedoch hinter Angeboten mit höheren Werten angeordnet.
KI-gestützte Formeloptimierung optimize
Journey Optimizer kann Rangfolgeformeln automatisch analysieren und Vereinfachungen vorschlagen, die die ursprüngliche Logik beibehalten. Zulässig sind nur Formeln, deren PQL-Ausdruck größer als 2 KB (UTF-8-codiert) ist. Kleinere Ausdrücke werden nicht analysiert. Wenn eine Vereinfachung gefunden wird, wird in der Liste neben dem Formelnamen ein roter Indikator angezeigt.
So optimieren Sie eine Rangfolgeformel:
-
Klicken Sie in der Liste der Rangfolgeformeln auf den roten Indikator neben dem Namen der Formel.
-
Das Fenster Optimieren wird geöffnet und zeigt den ursprünglichen PQL-Ausdruck zusammen mit der von der KI vorgeschlagenen Version an.
-
Um zu prüfen, ob beide Ausdrücke identische Ranking-Ergebnisse liefern, klicken Sie auf Optimierungsanalyse herunterladen (TSV), um eine Datei herunterzuladen, in der gezeigt wird, wie simulierte Profile für jede Version ausgewertet werden.
-
Wenn Sie zufrieden sind, klicken Sie auf Anwenden, um den ursprünglichen Ausdruck durch den optimierten Ausdruck zu ersetzen.
Anleitungsvideo video
Erfahren Sie, wie Sie mit dem KI-gestützten Formel-Builder in Adobe Journey Optimizer Strategien zur benutzerdefinierten Angebotsrangfolge erstellen.
This section contains structured knowledge intended to support interpretation, retrieval, and question answering related to this topic.
For complete understanding, this information should be combined with the documentation on this page. Neither source is intended to stand alone; the page describes the feature, while this section provides additional context that helps disambiguate terminology, intent, applicability, and constraints.
- TL;DR: Shows how to create, with the AI formula builder, ranking formulas that combine AI model scores, offer priorities, profile attributes, offer attributes, and contextual signals to control which offer is presented first, and how to simulate a formula and use AI-powered formula optimization.
Intents:
- Create a ranking formula from the Ranking formulas tab of the Strategy setup menu (formula name, optional description, optional AI model), then view its details, and edit or delete it from the list.
- Define the criteria that determine the ranking score for the matching decision items with the formula builder and/or the code editor (PQL).
- Use data from Adobe Experience Platform, in the Dataset lookup section, to adjust the ranking logic to reflect real-world conditions.
- Simulate a ranking formula with test variants before applying it to a selection strategy, and read the ranked offers with their scores.
- Use AI-powered formula optimization to compare an AI-suggested simplification with the original PQL expression and apply it.
- Find copy-paste PQL examples of ranking formulas.
Glossary:
- Ranking formula (product-specific): a rule that determines which offer should be presented first. Once created, it can be assigned to a selection strategy; if multiple offers are eligible to be presented when using this selection strategy, the decisioning engine uses the selected formula to calculate which offer to deliver first.
- AI formula builder (product-specific): provided in Adobe Journey Optimizer to define custom ranking formulas through a guided interface; it supports simple or advanced formulas depending on how much control you want to apply.
- Formula builder: the intuitive interface used to fill in the Criteria section, to fine-tune decisioning by adjusting AI scores (propensity), offer value (priority), contextual levers, and external profile propensities, individually or in combination.
- Code editor (Switch to code editor): used to define or refine ranking logic as a PQL expression. In the formula builder steps, it adds an expression that uses PQL syntax alongside the formula builder and complements the user interface fields, so that you can combine both approaches in the same ranking formula. In the code editor you can leverage profile attributes, context data, and decision item attributes.
- PQL (product-specific): the syntax used for expressions in the code editor; the page links to dedicated documentation on how to use PQL syntax.
- Criterion (formula builder): Criterion 1 specifies the decision items that you want to apply a ranking score to: you select a decision item attribute, select a logical operator, and add a matching condition (type a value, or select a profile attribute or context data). Additional elements can optionally refine the matching conditions. An expression then assigns a ranking score to the decision items that meet the condition; it can reference the score from the AI model that you optionally selected, the decision item’s priority (a value manually assigned when creating a decision item), any attribute that might live on the profile (such as any externally derived propensity score), a static value assigned in a free format, or any combination of these. If the first criterion is true for a given decision item, it takes precedence over the next ones; if not true, the decisioning engine moves on to the second criterion, and so on. In the last field, an expression is assigned to all decision items that do not meet the criteria.
- AI model (Select AI model): optional; sets the model used as a reference to build the ranking formula; every time you refer to a model score when defining the formula, the AI model that you selected is used.
- Dataset lookup (product-specific): section in which you can use data from Adobe Experience Platform to dynamically adjust the ranking logic to reflect real-world conditions; it is especially useful for attributes that frequently change, such as product availability or real-time pricing.
- Simulate formula: opens the simulation screen, where, before applying a ranking formula to a selection strategy, you can test it with sample or generated data to validate the ranking results and ensure it delivers the expected behavior. The screen has three sections: Test Variants (where you generate or create manual test variants), Ranking expression (displays the formula expression for reference), and Simulation result (shows ranked offers with their scores when a variant is selected). For each selected variant, the top-ranked offers are those with the highest computed scores for that variant, and lower-ranked offers remain eligible but are ordered after higher-scoring offers.
- Test variants: a manual sample (Create sample, using the offer items you select for testing) or variants generated with AI (Generate); each variant includes attributes used in your expression, and you can edit the field values directly to simulate different scenarios. Once created or generated, a variant can be populated with attributes from an existing Adobe Experience Platform test profile (Select AEP profile, then Select profile).
- AI-powered formula optimization (product-specific): Journey Optimizer can automatically analyze ranking formulas and suggest simplifications that preserve the original logic; when a simplification is found, a red indicator appears next to the formula name in the list. The Optimize window displays the original PQL expression alongside the AI-suggested version; Download Optimisation Analysis (TSV) downloads a file showing how simulated profiles are evaluated against each version, to validate that both expressions produce identical ranking results; Apply replaces the original expression with the optimized one.
Guardrails:
- The AI formula builder does not support personalized optimization models that use continuous metrics.
- When an AI model is used in a ranking formula, data are not reflected in the Conversion rate for Holdout and Model Driven traffic report.
- The nesting depth in a ranking formula is limited to 30 levels (hard limit), measured by counting
)in the PQL string. - A ranking formula string can be up to 8KB (hard limit) for UTF-8 encoded characters (8,000 ASCII characters or 2,000-4,000 non-ASCII characters).
- Lookback periods are not supported in ranking formulas (for example, experience events from the last month); attempts to save such formulas trigger an error.
- AI-powered formula optimization applies only to ranking formulas whose code-based PQL expression is larger than 2 KB in UTF-8 encoded size; smaller formulas are not analyzed.
- A decision item attribute that has no value on an item resolves to null in the formula. A null in an arithmetic expression makes the whole result null, and the item gets a score of zero. Populate the attribute on every item, or handle missing values in the formula, for example with
isNotNull()as in the propensity example. - Switch to code editor: this action will prevent you from reverting back to the default builder view for this formula.
- Select AEP profile, Recents area: recent profiles are stored in the browser per organization and sandbox, are ordered with the newest first, and are limited to 10 entries (hard limit).
Prerequisites and permissions:
- AI-powered formula optimization: users must be granted the Generate Content permission on the AI Assistant resource; it relies on the same generative AI capabilities as Generate Content and uses the same access controls.
- AI-based test variant generation (the Generate button of the simulation): available to organizations with access to Adobe AI capabilities.
Terminology:
- Canonical name: Ranking formulas — variants: ranking formula, formula (as in the Create formula and Simulate formula buttons)
- Canonical name: Adobe Experience Platform — Acronym: AEP
- Canonical name: Adobe Journey Optimizer — Acronym: AJO — variants: Journey Optimizer
- Do not confuse: “ranking formula” ≠ “static offer priority” — the page says that instead of relying only on a static offer priority, you can define custom ranking formulas; offer priorities are one of the elements that a ranking formula can combine.
FAQ:
- Can I combine the formula builder and PQL in the same ranking formula? Yes. Switch to code editor adds an expression that uses PQL syntax alongside the formula builder and complements the user interface fields, so you can combine both approaches in the same ranking formula; it does not remove the other user interface fields. This action will prevent you from reverting back to the default builder view for this formula.
- What are the nesting depth and size limits of a ranking formula? The nesting depth is limited to 30 levels (hard limit), measured by counting
)in the PQL string, and a ranking formula string can be up to 8KB (hard limit) for UTF-8 encoded characters (8,000 ASCII characters or 2,000-4,000 non-ASCII characters). - Are lookback periods supported in ranking formulas? No. Lookback periods are not supported in ranking formulas (for example, experience events from the last month), and attempts to save such formulas trigger an error.
- Does the AI formula builder support personalized optimization models? The AI formula builder does not support personalized optimization models that use continuous metrics.
- Which ranking formulas does AI-powered formula optimization analyze? It applies only to ranking formulas whose code-based PQL expression is larger than 2 KB in UTF-8 encoded size; smaller formulas are not analyzed. Users must be granted the Generate Content permission on the AI Assistant resource.
- Why does a decision item get a score of zero in my ranking formula? If the formula references a decision item attribute that has no value on that item, the reference resolves to null. A null in an arithmetic expression makes the whole result null, so the item gets a score of zero. Populate the attribute on every item, or handle missing values in the formula, for example with
isNotNull()as in the propensity example. - How can I test a ranking formula before applying it to a selection strategy? Use Simulate formula to test it with sample or generated data: add test variants with Create sample (manual sample) or Generate (AI-based test variant generation, available to organizations with access to Adobe AI capabilities), then select a variant to see the ranked offers with their scores in the Simulation result area.
Examples:
-
Formula builder, additional condition: Criterion 1 is the Weather custom attribute Equals the warm condition; you can add another condition such as: if the first condition is met and the temperature exceeds 75 degrees at the time of the request, then Criterion 1 is true.
-
Formula builder, ranking formula example: if the decision item’s region (custom attribute) equals the profile’s geographical label (profile attribute), the ranking score expressed in the example (a combination of the decision item priority, the AI model score and a static value) is applied to all decision items meeting that condition.
-
Code editor, boost offers with a certain offer attribute based on a profile attribute: if the profile lives in the city corresponding to the offer, then double the priority for all offers in that city:
if( offer.characteristics.get("city") = homeAddress.city, offer.rank.priority * 2, offer.rank.priority) -
Code editor, boost offers where the end date is less than 24 hours from now:
if( offer.selectionConstraint.endDate occurs <= 24 hours after now, offer.rank.priority * 3, offer.rank.priority) -
Code editor, boost offers based on the customer’s propensity to purchase the product being offered: the instance tenant is
_salesvelocityand the profile schema contains a range of scores stored in an array.- Sample profile: the
_salesvelocity.individualScoringarray holdscore.category/core.propensityScorepairs:insurance/96.9,personalLoan/45.3,creditCard/78.1. - The decision items contain a custom attribute,
propensityType, that matches the category from the scores; the ranking formula can then set the score of each decision item to equal the customer’spropensityScorefor thatpropensityType; if no score is found, use the static priority set on the decision item. - Formula:
let score = (select _Individual_Scoring1 from _salesvelocity.individualScoring where _Individual_Scoring1.core.category.equals(offer.characteristics.get("propensityType"), false)).head().core.propensityScore in if(score.isNotNull(), score, offer.rank.priority)
- Sample profile: the
-
Code editor, boost offers based on a profile’s ZIP code and annual income: the system always tries to show a ZIP-matching offer first, and falls back to a general offer if no match is found, avoiding showing offers meant for other ZIP codes:
if( offer._luma.offerDetails.zipCode = _luma.zipCode,luma.annualIncome / 1000 + 10000, if( not offer.luma.offerDetails.zipCode,_luma.annualIncome / 1000, -9999) )- If the offer has the same ZIP code as the user, give it a very high score so it gets picked first.
- If the offer does not have a ZIP code at all (it is a general offer), give it a normal score based on the user’s income.
- If the offer has a different ZIP code than the user, give it a very low score so it is not selected.
-
Code editor, boost offers based on context data: if
contextData.weather=hotis passed in the call, the priority of all offers withattribute=hotmust be boosted. With the Decisioning API, the context data is added to the profile element in the request body, inxdm:contextDataof anxdm:profileselement, for example"@type":"_xdm.context.additionalParameters;version=1"with"xdm:data":{"xdm:weather":"hot"}.
Related pages:
- To create, explain, simulate, and optimize ranking formulas conversationally using the Decisioning Rule Workflow skill: Coworker for Decisioning
- For the selection strategy to which a ranking formula can be assigned once it has been created: selection strategy
- For personalized optimization models, which the AI formula builder does not support when they use continuous metrics: personalized optimization models
- For the report in which data are not reflected when an AI model is used in a ranking formula: Conversion rate for Holdout and Model Driven traffic
- To learn how to use Adobe Experience Platform data for decisioning, as in the Dataset lookup section: Learn how to use Adobe Experience Platform data for decisioning
- For decision item attributes, which you select in Criterion 1 and can leverage in the code editor: decision item attribute
- For detailed information on how to pass context data: Leverage context data in Decisioning
- To populate a created or generated test variant with attributes from an existing Adobe Experience Platform test profile: Adobe Experience Platform test profile
- For details on the Generate Content permission on the AI Assistant resource, needed for AI-powered formula optimization: Access Generate Content
Personas:
- marketer: Can create a ranking formula from the Ranking formulas tab of the Strategy setup menu, then assign it to a selection strategy. Can define the criteria that determine the ranking score with the formula builder and/or the code editor (PQL). Can reference the score of the optionally selected AI model, the decision item priority, any profile attribute, a static value, or any combination. Can test a formula with Simulate formula before applying it to a selection strategy, using test variants added with Create sample or Generate. Can use AI-powered formula optimization to compare the original PQL expression with the AI-suggested version, then select Apply to replace the original expression. The page states that switching to the code editor prevents you from reverting back to the default builder view for this formula. The page states that lookback periods are not supported in ranking formulas and that attempts to save such formulas trigger an error. The page states that AI-powered formula optimization applies only to formulas whose PQL expression is larger than 2 KB in UTF-8 encoded size. The page states that users must be granted the Generate Content permission on the AI Assistant resource for AI-powered formula optimization. The page states that AI-based test variant generation is available to organizations with access to Adobe AI capabilities. Where: “Create ranking formulas”.
Onboarding:
- Level: Intermediate
- First minimal step: Access the Strategy setup menu, then select the Ranking formulas tab.
- Success check: After you select Create, you can access the ranking formula from the list to view its details, and edit or delete it. It is ready to be used in a selection strategy to rank eligible decision items.
- Next: Once a ranking formula has been created, it can be assigned to a selection strategy: selection strategy