inAudience 函式 inAudience
inAudience函式是Adobe Experience Platform函式,可讓您檢查歷程中的個人是否屬於特定對象。 這項強大的功能可讓您根據對象成員資格建立個人化的歷程路徑,在您的客戶體驗中啟用複雜的細分和目標定位。
當您需要以下動作時,請使用inAudience函式:
- 根據對象成員資格的分支歷程路徑。 了解更多
- 套用取決於設定檔是否屬於特定區段的條件式邏輯
- 使用個人化體驗鎖定特定的客戶群組
- 評估歷程條件中的即時受眾參與率
- 結合多個對象檢查以建立複雜的目標規則
函式會即時評估對象成員資格並傳回布林值,使其非常適合用於決策節點和條件運算式。 對象是在Adobe Experience Platform中定義和管理的(深入瞭解在Journey Optimizer中使用對象),運算式編輯器會提供自動完成建議,協助您正確參考對象。
對象狀態:
對象可以有兩種參與狀態:
- 已實現:該個人符合對象定義的資格且是作用中成員
- 已退出:個人已離開對象,不再符合資格
只有狀態為 已實現 的個人才會被視為作用中對象成員。 函式傳回true時,會確認個人已實現狀態;傳回false時,會表示已結束狀態。 如需對象評估的詳細資訊,請參閱Segmentation Service檔案。
inAudience(<parameter>)| table 0-row-3 1-row-3 | ||
|---|---|---|
| 參數 | 說明 | 類型 |
| 客群 | 對象名稱 | <string> |
重要限制:
- 對象名稱必須是字串常數
- 不能是欄位參考或運算式
- 您可在單一歷程中擷取最多100個對象
inAudience(<string>)
傳回布林值:
-
true:個人是對象的成員(已實現狀態) -
false:個人不是對象的成員(退出狀態)
inAudience("men over 50")
如果歷程執行個體中的個人屬於名為「50歲以上的男性」的Adobe Experience Platform對象,則傳回true,否則傳回false。
實際使用案例:
| code language-none |
|---|
|
護欄與限制 guardrails
在您的歷程中使用inAudience函式時,請注意下列護欄和限制:
對象擷取限制:
- 您可在單一歷程中擷取最多100個對象
- 運算式編輯器提供自動完成的可用對象清單,可幫助您正確參考這些對象
引數條件約束:
- 對象名稱必須是字串常數
- 欄位參考和運算式不支援做為引數
對象名稱變更:
- 變更Adobe Experience Platform中現有對象的名稱時,不會自動更新歷程運算式中對該對象的任何參照
- 如果您的條件節點使用
inAudience('oldAudienceName'),您必須手動編輯運算式以使用新名稱 - 若未更新對象名稱,將會導致歷程條件中斷,並可能導致錯誤的歷程行為
合併原則考量事項:
- 透過
inAudience函式使用多個對象時,合併原則不一致會導致錯誤或警示 - 如需合併原則行為的詳細資訊,請參閱歷程屬性
傳播時間:
在條件節點中使用inAudience()時,區段會籍評估時間會依條件在歷程中出現的位置而有所不同:
- 在讀取對象歷程中,在等待活動之前: Journey Optimizer會從設定檔的批次投影中讀取。 此投影中的資料在內嵌後 2小時 內已重新整理。 依賴日型或時間型條件的對象可能會遇到額外的延遲。 在歷程開始時新增短的等待活動,或允許緩衝時間,以確保反映最新的區段會籍。
- 在單一事件歷程中或等待活動後:從串流(單一)投影讀取區段會籍。 資料通常可在 15分鐘 內取得。 如需詳細資訊,請參閱Adobe Experience Platform串流擷取檔案。
相關主題
進一步瞭解如何在Adobe Journey Optimizer中使用對象:
- 關於對象 — 瞭解對象如何在Adobe Experience Platform和Journey Optimizer中運作,包括如何建立和管理它們
- 讀取對象活動 — 使用對象來觸發歷程專案,並讓所有對象成員進入歷程
- 對象資格事件 — 從對象中聽取設定檔入口和出口,以即時觸發歷程動作
- 在條件中使用對象 — 使用「最佳化」活動,根據對象成員資格建立條件式歷程路徑
- 歷程屬性 — 合併原則 — 瞭解在inAudience函式中使用多個對象時,合併原則如何運作
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: This page documents the
inAudiencefunction, which checks in real-time whether a journey profile belongs to a named Adobe Experience Platform audience and returns a boolean used in journey conditions.
Intents:
- Branch a journey path based on whether a profile is a member of a specific audience using
inAudience - Combine multiple
inAudiencechecks with AND/OR logic to create complex targeting conditions - Verify that a profile has not entered a specific audience using a negation check (
inAudience("...") == false) - Understand the propagation timing differences between Read Audience journeys and unitary event journeys
- Identify and fix broken audience references caused by audience renames in Adobe Experience Platform
Glossary:
- Realized: Audience participation status indicating the individual currently qualifies for the audience definition and is an active member (product-specific)
- Exited: Audience participation status indicating the individual has left the audience and no longer qualifies (product-specific)
- Merge policy: A rule in Adobe Experience Platform that determines how profile data from multiple datasets is combined when evaluating audience membership (product-specific)
- Batch projection: The profile data store refreshed on a schedule (within 2 hours after ingestion) used by Read Audience journeys (product-specific)
- Streaming projection: The real-time profile data store (typically available within 15 minutes) used in unitary event journeys and after Wait activities (product-specific)
Guardrails:
- A single journey can retrieve up to 100 audiences
- The audience name parameter must be a string constant; field references and dynamic expressions are not supported
- Renaming an audience in Adobe Experience Platform does not automatically update
inAudiencereferences in journey expressions — manual updates are required - Inconsistent merge policies across multiple audiences used in the same journey can cause errors or alerts
Terminology:
- Canonical name: inAudience — Acronym: none — variants: inSegment (legacy name)
- Synonyms: “inAudience” = “audience membership check function”
- Do not confuse: “Realized” (active member) ≠ “Exited” (no longer a member)
- Do not confuse: “inAudience” (current function) ≠ “inSegment” (deprecated legacy function)
FAQ:
- Q: What does
inAudiencereturn when a profile has exited the audience? — It returnsfalse; only profiles with “Realized” status are considered active members and returntrue. - Q: How many audiences can I check in a single journey? — Up to 100 audiences can be retrieved within a single journey.
- Q: What happens if I rename an audience in Adobe Experience Platform after using it in a journey? — The journey expression is not updated automatically; you must manually edit the
inAudiencecall to use the new audience name, otherwise the condition will break. - Q: How quickly is audience membership available after a profile update in a Read Audience journey? — In a Read Audience journey before a Wait activity, data is read from the batch projection refreshed within 2 hours after ingestion.
- Q: Can I pass a profile attribute as the audience name parameter? — No, the audience name must be a string constant; field references and expressions are not supported.