{
  "workflow_name": "Remove backgrounds from new WooCommerce product photos with PhotoRoom",
  "workflow_steps": {
    "steps": [
      {
        "id": "1",
        "position": {
          "x": 0,
          "y": 0
        },
        "data": {
          "label": "New Product Created",
          "app": {
            "key": "woocommerce",
            "fm_app": "woocommerce"
          },
          "eventSlug": "new_product",
          "eventTitle": "New Product Created",
          "layoutDirection": "horizontal",
          "stepNumber": 1
        },
        "targetPosition": "bottom",
        "type": "trigger",
        "stepNumber": 1,
        "expanded": true,
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "application": "woocommerce",
        "stepID": "1",
        "action": "new_product",
        "nodeType": "step",
        "actionAppArgs": [],
        "captureResponse": {
          "id": "4127",
          "name": "Ceramic Pour-Over Coffee Set",
          "status": "publish",
          "regular_price": "64.00",
          "permalink": "https://example.com/product/ceramic-pour-over-set",
          "images": "[{\"id\":4128,\"src\":\"https://example.com/wp-content/uploads/2026/10/pour-over-set.jpg\",\"name\":\"pour-over-set\",\"alt\":\"\"}]"
        },
        "responses": [
          {
            "letter": "A",
            "time": "01/07/2026, 10:00:00",
            "response": {
              "id": "4127",
              "name": "Ceramic Pour-Over Coffee Set",
              "status": "publish",
              "regular_price": "64.00",
              "permalink": "https://example.com/product/ceramic-pour-over-set",
              "images": "[{\"id\":4128,\"src\":\"https://example.com/wp-content/uploads/2026/10/pour-over-set.jpg\",\"name\":\"pour-over-set\",\"alt\":\"\"}]"
            }
          }
        ],
        "activeResponseIndex": 0
      },
      {
        "id": "2",
        "position": {
          "x": 175,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Get the main product image URL",
          "layoutDirection": "horizontal",
          "stepNumber": 2,
          "app": {
            "key": "json_parser",
            "fm_app": "json_parser"
          },
          "eventSlug": "get_json_value",
          "eventTitle": "Get JSON Value by Path"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "json_data": "{woocommerce1.images}",
          "json_path": "0/src"
        },
        "application": "json_parser",
        "action": "get_json_value",
        "nodeType": "step",
        "stepID": "2"
      },
      {
        "id": "3",
        "position": {
          "x": 350,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Remove the background with PhotoRoom",
          "layoutDirection": "horizontal",
          "stepNumber": 3,
          "app": {
            "key": "photoroom",
            "fm_app": "photoroom"
          },
          "eventSlug": "remove_background",
          "eventTitle": "Remove Background"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "image_url": "{json_parser2.value}",
          "format": "png"
        },
        "application": "photoroom",
        "action": "remove_background",
        "nodeType": "step",
        "stepID": "3"
      },
      {
        "id": "4",
        "position": {
          "x": 525,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Set the clean image as featured",
          "layoutDirection": "horizontal",
          "stepNumber": 4,
          "app": {
            "key": "woocommerce",
            "fm_app": "woocommerce"
          },
          "eventSlug": "update_product",
          "eventTitle": "Update Product"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "product_id": "{woocommerce1.id}",
          "product_featured_image": "{photoroom3.media_url}"
        },
        "application": "woocommerce",
        "action": "update_product",
        "nodeType": "step",
        "stepID": "4"
      },
      {
        "id": "main_end_placeholder",
        "position": {
          "x": 700,
          "y": 0
        },
        "type": "placeholder",
        "data": {
          "label": "+",
          "layoutDirection": "horizontal",
          "stepNumber": null,
          "app": []
        },
        "measured": {
          "width": 40,
          "height": 82
        },
        "stepID": "main_end_placeholder",
        "nodeType": "placeholder",
        "actionAppArgs": []
      }
    ],
    "edges": [
      {
        "id": "e-1-2",
        "source": "1",
        "target": "2",
        "type": "step",
        "data": []
      },
      {
        "id": "e-2-3",
        "source": "2",
        "target": "3",
        "type": "step",
        "data": []
      },
      {
        "id": "e-3-4",
        "source": "3",
        "target": "4",
        "type": "step",
        "data": []
      },
      {
        "id": "e-4-main_end_placeholder",
        "source": "4",
        "target": "main_end_placeholder",
        "type": "placeholder",
        "data": []
      }
    ]
  },
  "workflow_settings": {
    "name": "Remove backgrounds from new WooCommerce product photos with PhotoRoom",
    "folder": "all",
    "description": "When you publish a new WooCommerce product, FlowMattic sends its main image to PhotoRoom, removes the background and sets the clean version as the product's featured image. Your catalogue gets consistent, studio-style photos without manual editing. After import, connect PhotoRoom and choose the output format and background colour you want.",
    "status": "off",
    "user_email": "",
    "webhook_queue": "disabled",
    "workflow_auth_key": "",
    "builder_version": "v2",
    "time": "",
    "ai_generated": "yes"
  }
}