Tools
Segment conditions take at most two levels: groups of conditions joined by a top-level
AND or OR. The tool refuses a deeper condition tree with an explanation instead of flattening it, because flattening can widen the audience. Ask your AI assistant to rewrite the tree in two levels.Condition types
segment_create and segment_update accept every condition type of the segment builder. The existing conditions, such as geolocation, device type, browser, and custom data, stay available. The following groups are also available:
- Visitor code (
VISITOR_CODE), cookie (COOKIE), JS code (JS_CODE), and ad blocker (AD_BLOCKER). - SDK language and app version (
SDK_LANGUAGE,APPLICATION_VERSION). - Conversions (
CONVERSIONS). - AI Targeting (
HEAT_SLICE). - Targeted experiment, personalization, or feature flag (
TARGET_EXPERIMENT,TARGET_PERSONALIZATION,TARGET_FEATURE_FLAG). - Exclusive experiment (
EXCLUSIVE_EXPERIMENT). - Segment in segment (
SEGMENT). - Tealium audiences and badges (
TEALIUM_AUDIENCE,TEALIUM_BADGE).
include=false instead of switching to include. Deleting a segment that another segment uses requires force, and changing its conditions needs confirmation with confirm. The tools refuse references to the goals, experiments, feature flags, or segments of another site.
Parameters
Use the exact parameter names thattools/list returns.