{
  "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_elig",
            "name": "ELIGIBLE ITEMS",
            "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/1005",
                    "title": "Running"
                  },
                  {
                    "id": "gid://shopify/Collection/1006",
                    "title": "Training"
                  }
                ],
                "isArray": false
              },
              {
                "type": "and",
                "variable": {
                  "path": "cart.lines[0].merchandise.metafield",
                  "variableName": "Variant Metafield",
                  "variableType": "String"
                },
                "operator": "Ne",
                "value": "1",
                "isArray": false,
                "mfType": "3",
                "mfNamespace": "custom",
                "mfKey": "final_sale",
                "mfName": "Final sale"
              }
            ]
          }
        ]
      },
      "className": "node"
    },
    {
      "id": "node_2",
      "type": "action",
      "position": {
        "x": 0,
        "y": 481
      },
      "data": {
        "label": "New action",
        "config": {},
        "type": "action",
        "selected": false,
        "actionType": "apply-discount",
        "discountType": "percentage",
        "value": 30,
        "message": "VIP30 - 30% off",
        "strategy": "ALL",
        "target_groups": [
          "g_elig"
        ],
        "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
    }
  ]
}