{
  "workflow_name": "When new booking is received in Probooking, get WordPress user by email and update data for the user ID in custom table",
  "workflow_steps": {
    "steps": [
      {
        "id": "1",
        "position": {
          "x": 0,
          "y": 0
        },
        "data": {
          "label": "New Booking Created",
          "app": {
            "key": "probooking",
            "fm_app": "probooking"
          },
          "eventSlug": "new_booking",
          "eventTitle": "New Booking 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": "probooking",
        "stepID": "1",
        "action": "new_booking",
        "nodeType": "step",
        "actionAppArgs": []
      },
      {
        "id": "2",
        "position": {
          "x": 175,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Get User by Email",
          "layoutDirection": "horizontal",
          "stepNumber": 2,
          "app": {
            "key": "wordpress",
            "fm_app": "wordpress"
          },
          "eventSlug": "get_user_by_email",
          "eventTitle": "Get User by Email"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": [],
        "application": "wordpress",
        "action": "get_user_by_email",
        "nodeType": "step",
        "stepID": "2"
      },
      {
        "id": "3",
        "position": {
          "x": 350,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Update Data in Table",
          "layoutDirection": "horizontal",
          "stepNumber": 3,
          "app": {
            "key": "metabox_custom_table",
            "fm_app": "metabox_custom_table"
          },
          "eventSlug": "update",
          "eventTitle": "Update Data in Table"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": [],
        "application": "metabox_custom_table",
        "action": "update",
        "nodeType": "step",
        "stepID": "3"
      },
      {
        "id": "main_end_placeholder",
        "position": {
          "x": 525,
          "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-main_end_placeholder",
        "source": "3",
        "target": "main_end_placeholder",
        "type": "placeholder",
        "data": []
      }
    ]
  },
  "workflow_settings": {
    "name": "When new booking is received in Probooking, get WordPress user by email and update data for the user ID in custom table",
    "folder": "all",
    "description": "When a Probooking booking comes in, FlowMattic looks up the WordPress user by email and updates their row in your Metabox custom table, so booking data always lands on the right account.",
    "status": "off",
    "user_email": "",
    "webhook_queue": "disabled",
    "workflow_auth_key": "",
    "builder_version": "v2",
    "time": "",
    "ai_generated": "yes"
  }
}