{
  "workflow_name": "When order is paid in WooCommerce, update field value in user profile, and send custom in-app notification to the user",
  "workflow_steps": {
    "steps": [
      {
        "id": "1",
        "position": {
          "x": 0,
          "y": 0
        },
        "data": {
          "label": "Order Paid",
          "app": {
            "key": "woocommerce",
            "fm_app": "woocommerce"
          },
          "eventSlug": "order_paid",
          "eventTitle": "Order Paid",
          "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": "order_paid",
        "nodeType": "step",
        "actionAppArgs": []
      },
      {
        "id": "2",
        "position": {
          "x": 175,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Find the Voxel member",
          "layoutDirection": "horizontal",
          "stepNumber": 2,
          "app": {
            "key": "voxel",
            "fm_app": "voxel"
          },
          "eventSlug": "get_member_by_email",
          "eventTitle": "Get member by email"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "email": "{woocommerce1.billing_email}"
        },
        "application": "voxel",
        "action": "get_member_by_email",
        "nodeType": "step",
        "stepID": "2"
      },
      {
        "id": "3",
        "position": {
          "x": 350,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Update profile field",
          "layoutDirection": "horizontal",
          "stepNumber": 3,
          "app": {
            "key": "voxel",
            "fm_app": "voxel"
          },
          "eventSlug": "update_post_field",
          "eventTitle": "Update Post Field"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": [],
        "application": "voxel",
        "action": "update_post_field",
        "nodeType": "step",
        "stepID": "3"
      },
      {
        "id": "4",
        "position": {
          "x": 525,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Send in-app notification",
          "layoutDirection": "horizontal",
          "stepNumber": 4,
          "app": {
            "key": "voxel",
            "fm_app": "voxel"
          },
          "eventSlug": "send_custom_inapp_notification",
          "eventTitle": "Send Custom In-App Notification ( Beta )"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": [],
        "application": "voxel",
        "action": "send_custom_inapp_notification",
        "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": "When order is paid in WooCommerce, update field value in user profile, and send custom in-app notification to the user",
    "folder": "all",
    "description": "When a WooCommerce order is paid, FlowMattic finds the buyer's Voxel member by email, updates a field on their profile, and sends them a custom in-app notification.",
    "status": "off",
    "user_email": "",
    "webhook_queue": "disabled",
    "workflow_auth_key": "",
    "builder_version": "v2",
    "time": "",
    "ai_generated": "yes"
  }
}