{
  "campaign_key": "demo-northfold-bfcm-2026",
  "note": "$metric:<Name> is resolved to the account metric id at push time.",
  "segments": [
    {
      "id": "engaged-30",
      "name": "GBC | demo-northfold-bfcm-2026 | Engaged 30d",
      "human": "Opened or clicked an email, or placed an order, in the last 30 days.",
      "note": "Smallest, warmest audience. Used for final-hours sends.",
      "definition": {
        "condition_groups": [
          {
            "conditions": [
              {
                "type": "profile-metric",
                "metric_id": "$metric:Opened Email",
                "measurement": "count",
                "measurement_filter": {
                  "type": "numeric",
                  "operator": "greater-than-or-equal",
                  "value": 1
                },
                "timeframe_filter": {
                  "type": "date",
                  "operator": "in-the-last",
                  "unit": "day",
                  "quantity": 30
                }
              },
              {
                "type": "profile-metric",
                "metric_id": "$metric:Clicked Email",
                "measurement": "count",
                "measurement_filter": {
                  "type": "numeric",
                  "operator": "greater-than-or-equal",
                  "value": 1
                },
                "timeframe_filter": {
                  "type": "date",
                  "operator": "in-the-last",
                  "unit": "day",
                  "quantity": 30
                }
              },
              {
                "type": "profile-metric",
                "metric_id": "$metric:Placed Order",
                "measurement": "count",
                "measurement_filter": {
                  "type": "numeric",
                  "operator": "greater-than-or-equal",
                  "value": 1
                },
                "timeframe_filter": {
                  "type": "date",
                  "operator": "in-the-last",
                  "unit": "day",
                  "quantity": 30
                }
              }
            ]
          }
        ]
      }
    },
    {
      "id": "engaged-60",
      "name": "GBC | demo-northfold-bfcm-2026 | Engaged 60d",
      "human": "Opened or clicked an email, or placed an order, in the last 60 days.",
      "note": "Apple Mail Privacy Protection inflates opens; clicks and orders keep this honest.",
      "definition": {
        "condition_groups": [
          {
            "conditions": [
              {
                "type": "profile-metric",
                "metric_id": "$metric:Opened Email",
                "measurement": "count",
                "measurement_filter": {
                  "type": "numeric",
                  "operator": "greater-than-or-equal",
                  "value": 1
                },
                "timeframe_filter": {
                  "type": "date",
                  "operator": "in-the-last",
                  "unit": "day",
                  "quantity": 60
                }
              },
              {
                "type": "profile-metric",
                "metric_id": "$metric:Clicked Email",
                "measurement": "count",
                "measurement_filter": {
                  "type": "numeric",
                  "operator": "greater-than-or-equal",
                  "value": 1
                },
                "timeframe_filter": {
                  "type": "date",
                  "operator": "in-the-last",
                  "unit": "day",
                  "quantity": 60
                }
              },
              {
                "type": "profile-metric",
                "metric_id": "$metric:Placed Order",
                "measurement": "count",
                "measurement_filter": {
                  "type": "numeric",
                  "operator": "greater-than-or-equal",
                  "value": 1
                },
                "timeframe_filter": {
                  "type": "date",
                  "operator": "in-the-last",
                  "unit": "day",
                  "quantity": 60
                }
              }
            ]
          }
        ]
      }
    },
    {
      "id": "engaged-90",
      "name": "GBC | demo-northfold-bfcm-2026 | Engaged 90d",
      "human": "Opened or clicked an email, or placed an order, in the last 90 days.",
      "note": "Apple Mail Privacy Protection inflates opens; clicks and orders keep this honest.",
      "definition": {
        "condition_groups": [
          {
            "conditions": [
              {
                "type": "profile-metric",
                "metric_id": "$metric:Opened Email",
                "measurement": "count",
                "measurement_filter": {
                  "type": "numeric",
                  "operator": "greater-than-or-equal",
                  "value": 1
                },
                "timeframe_filter": {
                  "type": "date",
                  "operator": "in-the-last",
                  "unit": "day",
                  "quantity": 90
                }
              },
              {
                "type": "profile-metric",
                "metric_id": "$metric:Clicked Email",
                "measurement": "count",
                "measurement_filter": {
                  "type": "numeric",
                  "operator": "greater-than-or-equal",
                  "value": 1
                },
                "timeframe_filter": {
                  "type": "date",
                  "operator": "in-the-last",
                  "unit": "day",
                  "quantity": 90
                }
              },
              {
                "type": "profile-metric",
                "metric_id": "$metric:Placed Order",
                "measurement": "count",
                "measurement_filter": {
                  "type": "numeric",
                  "operator": "greater-than-or-equal",
                  "value": 1
                },
                "timeframe_filter": {
                  "type": "date",
                  "operator": "in-the-last",
                  "unit": "day",
                  "quantity": 90
                }
              }
            ]
          }
        ]
      }
    },
    {
      "id": "past-buyers",
      "name": "GBC | demo-northfold-bfcm-2026 | Past buyers",
      "human": "Placed at least one order, ever.",
      "note": "Included even if they have not opened recently.",
      "definition": {
        "condition_groups": [
          {
            "conditions": [
              {
                "type": "profile-metric",
                "metric_id": "$metric:Placed Order",
                "measurement": "count",
                "measurement_filter": {
                  "type": "numeric",
                  "operator": "greater-than-or-equal",
                  "value": 1
                },
                "timeframe_filter": {
                  "type": "date",
                  "operator": "alltime"
                }
              }
            ]
          }
        ]
      }
    },
    {
      "id": "vip",
      "name": "GBC | demo-northfold-bfcm-2026 | VIP (3+ orders)",
      "human": "Placed 3 or more orders, ever.",
      "note": "Default threshold; change it if the client defines VIP differently.",
      "definition": {
        "condition_groups": [
          {
            "conditions": [
              {
                "type": "profile-metric",
                "metric_id": "$metric:Placed Order",
                "measurement": "count",
                "measurement_filter": {
                  "type": "numeric",
                  "operator": "greater-than-or-equal",
                  "value": 3
                },
                "timeframe_filter": {
                  "type": "date",
                  "operator": "alltime"
                }
              }
            ]
          }
        ]
      }
    },
    {
      "id": "never-purchased",
      "name": "GBC | demo-northfold-bfcm-2026 | Never purchased (engaged 90d)",
      "human": "Has never placed an order, and opened or clicked in the last 90 days.",
      "note": "For first-order messaging; not used as a send audience by default.",
      "definition": {
        "condition_groups": [
          {
            "conditions": [
              {
                "type": "profile-metric",
                "metric_id": "$metric:Placed Order",
                "measurement": "count",
                "measurement_filter": {
                  "type": "numeric",
                  "operator": "equals",
                  "value": 0
                },
                "timeframe_filter": {
                  "type": "date",
                  "operator": "alltime"
                }
              }
            ]
          },
          {
            "conditions": [
              {
                "type": "profile-metric",
                "metric_id": "$metric:Opened Email",
                "measurement": "count",
                "measurement_filter": {
                  "type": "numeric",
                  "operator": "greater-than-or-equal",
                  "value": 1
                },
                "timeframe_filter": {
                  "type": "date",
                  "operator": "in-the-last",
                  "unit": "day",
                  "quantity": 90
                }
              },
              {
                "type": "profile-metric",
                "metric_id": "$metric:Clicked Email",
                "measurement": "count",
                "measurement_filter": {
                  "type": "numeric",
                  "operator": "greater-than-or-equal",
                  "value": 1
                },
                "timeframe_filter": {
                  "type": "date",
                  "operator": "in-the-last",
                  "unit": "day",
                  "quantity": 90
                }
              }
            ]
          }
        ]
      }
    },
    {
      "id": "suppress-unengaged",
      "name": "GBC | demo-northfold-bfcm-2026 | Suppress: unengaged 120d",
      "human": "Received 5+ emails in the last 120 days with no open, no click and no order in that time.",
      "note": "Excluded from every send to protect sender reputation during peak volume.",
      "definition": {
        "condition_groups": [
          {
            "conditions": [
              {
                "type": "profile-metric",
                "metric_id": "$metric:Received Email",
                "measurement": "count",
                "measurement_filter": {
                  "type": "numeric",
                  "operator": "greater-than-or-equal",
                  "value": 5
                },
                "timeframe_filter": {
                  "type": "date",
                  "operator": "in-the-last",
                  "unit": "day",
                  "quantity": 120
                }
              }
            ]
          },
          {
            "conditions": [
              {
                "type": "profile-metric",
                "metric_id": "$metric:Opened Email",
                "measurement": "count",
                "measurement_filter": {
                  "type": "numeric",
                  "operator": "equals",
                  "value": 0
                },
                "timeframe_filter": {
                  "type": "date",
                  "operator": "in-the-last",
                  "unit": "day",
                  "quantity": 120
                }
              }
            ]
          },
          {
            "conditions": [
              {
                "type": "profile-metric",
                "metric_id": "$metric:Clicked Email",
                "measurement": "count",
                "measurement_filter": {
                  "type": "numeric",
                  "operator": "equals",
                  "value": 0
                },
                "timeframe_filter": {
                  "type": "date",
                  "operator": "in-the-last",
                  "unit": "day",
                  "quantity": 120
                }
              }
            ]
          },
          {
            "conditions": [
              {
                "type": "profile-metric",
                "metric_id": "$metric:Placed Order",
                "measurement": "count",
                "measurement_filter": {
                  "type": "numeric",
                  "operator": "equals",
                  "value": 0
                },
                "timeframe_filter": {
                  "type": "date",
                  "operator": "in-the-last",
                  "unit": "day",
                  "quantity": 120
                }
              }
            ]
          }
        ]
      }
    }
  ],
  "sends": [
    {
      "email": 1,
      "included": [
        "GBC | demo-northfold-bfcm-2026 | Engaged 90d",
        "GBC | demo-northfold-bfcm-2026 | Past buyers"
      ],
      "excluded": [
        "GBC | demo-northfold-bfcm-2026 | Suppress: unengaged 120d"
      ]
    },
    {
      "email": 2,
      "included": [
        "GBC | demo-northfold-bfcm-2026 | Engaged 90d",
        "GBC | demo-northfold-bfcm-2026 | Past buyers"
      ],
      "excluded": [
        "GBC | demo-northfold-bfcm-2026 | Suppress: unengaged 120d"
      ]
    },
    {
      "email": 3,
      "included": [
        "GBC | demo-northfold-bfcm-2026 | Engaged 60d",
        "GBC | demo-northfold-bfcm-2026 | Past buyers"
      ],
      "excluded": [
        "GBC | demo-northfold-bfcm-2026 | Suppress: unengaged 120d"
      ]
    },
    {
      "email": 4,
      "included": [
        "GBC | demo-northfold-bfcm-2026 | Engaged 90d",
        "GBC | demo-northfold-bfcm-2026 | Past buyers"
      ],
      "excluded": [
        "GBC | demo-northfold-bfcm-2026 | Suppress: unengaged 120d"
      ]
    },
    {
      "email": 5,
      "included": [
        "GBC | demo-northfold-bfcm-2026 | Engaged 30d",
        "GBC | demo-northfold-bfcm-2026 | VIP (3+ orders)"
      ],
      "excluded": [
        "GBC | demo-northfold-bfcm-2026 | Suppress: unengaged 120d"
      ]
    }
  ]
}
