{
  "nodes": [
    {
      "id": "1",
      "type": "input",
      "data": {
        "selected": false
      },
      "position": {
        "x": 0,
        "y": 0
      },
      "className": "node"
    },
    {
      "id": "node_1",
      "type": "action",
      "position": {
        "x": 0,
        "y": 144
      },
      "data": {
        "label": "New action",
        "config": {},
        "type": "action",
        "selected": false,
        "actionType": "set-groups",
        "groups": [
          {
            "id": "g_giftline",
            "name": "FREE GIFT LINE",
            "conditionMatching": 1,
            "conditions": [
              {
                "type": "and",
                "variable": {
                  "path": "cart.lines[0].attribute.value",
                  "variableName": "_free_gift",
                  "variableType": "String"
                },
                "operator": "Eq",
                "value": "true",
                "isArray": false,
                "attrKey": "_free_gift",
                "valueType": "0"
              }
            ]
          },
          {
            "id": "g_paid",
            "name": "PAID BRACELETS",
            "conditionMatching": 1,
            "conditions": [
              {
                "type": "and",
                "variable": {
                  "path": "cart.lines[0].merchandise.product.inCollections",
                  "variableName": "Product Collections",
                  "variableType": "Int![]"
                },
                "operator": "IsOneOf",
                "value": [
                  {
                    "id": "gid://shopify/Collection/1004",
                    "title": "Bracelets"
                  }
                ],
                "isArray": false
              }
            ],
            "excludeGroupId": "g_giftline"
          }
        ]
      },
      "className": "node"
    },
    {
      "id": "node_2",
      "type": "action",
      "position": {
        "x": 0,
        "y": 516
      },
      "data": {
        "label": "New action",
        "config": {},
        "type": "action",
        "selected": false,
        "actionType": "apply-discount",
        "discountType": "percentage",
        "value": 50,
        "message": "Buy 2 bracelets, 50% off the 2nd",
        "strategy": "ALL",
        "target_groups": [
          "g_paid"
        ],
        "applies_to_each_item": false,
        "qty_enabled": false,
        "qty": ""
      },
      "className": "node"
    }
  ],
  "edges": [
    {
      "id": "1-hThen-node_1",
      "source": "1",
      "sourceHandle": "hThen",
      "target": "node_1",
      "animated": false
    },
    {
      "id": "node_1-hThen-node_2",
      "source": "node_1",
      "sourceHandle": "hThen",
      "target": "node_2",
      "animated": false
    }
  ]
}