{
  "workflow_name": "Alert your team in Gmail when a SimplyBook.me booking is cancelled",
  "workflow_steps": {
    "steps": [
      {
        "id": "1",
        "position": {
          "x": 0,
          "y": 0
        },
        "data": {
          "label": "Booking Cancelled",
          "app": {
            "key": "simplybook_me",
            "fm_app": "simplybook_me"
          },
          "eventSlug": "booking_cancelled",
          "eventTitle": "Booking Cancelled",
          "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": "simplybook_me",
        "stepID": "1",
        "action": "booking_cancelled",
        "nodeType": "step",
        "actionAppArgs": [],
        "captureResponse": {
          "booking_id": "1843",
          "booking_hash": "a1b2c3d4e5f6a7b8",
          "company": "brightsmilestudio",
          "notification_type": "cancel",
          "webhook_timestamp": "1792656000"
        },
        "responses": [
          {
            "letter": "A",
            "time": "01/07/2026, 10:00:00",
            "response": {
              "booking_id": "1843",
              "booking_hash": "a1b2c3d4e5f6a7b8",
              "company": "brightsmilestudio",
              "notification_type": "cancel",
              "webhook_timestamp": "1792656000"
            }
          }
        ],
        "activeResponseIndex": 0
      },
      {
        "id": "2",
        "position": {
          "x": 175,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Email the front desk",
          "layoutDirection": "horizontal",
          "stepNumber": 2,
          "app": {
            "key": "gmail",
            "fm_app": "gmail"
          },
          "eventSlug": "send_email",
          "eventTitle": "Send Email"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "email_to": "frontdesk@example.com",
          "subject": "Booking #{simplybook_me1.booking_id} was cancelled",
          "message": "Booking #{simplybook_me1.booking_id} for {simplybook_me1.company} was just cancelled in SimplyBook.me.\n\nOpen the booking in your SimplyBook.me admin to free the slot and offer it to someone on the waitlist."
        },
        "application": "gmail",
        "action": "send_email",
        "nodeType": "step",
        "stepID": "2"
      },
      {
        "id": "main_end_placeholder",
        "position": {
          "x": 350,
          "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-main_end_placeholder",
        "source": "2",
        "target": "main_end_placeholder",
        "type": "placeholder",
        "data": []
      }
    ]
  },
  "workflow_settings": {
    "name": "Alert your team in Gmail when a SimplyBook.me booking is cancelled",
    "folder": "all",
    "description": "When a client cancels a SimplyBook.me booking, your front desk gets an email from your Gmail account with the booking number, so the free slot can be offered to someone on the waitlist. Clinics, salons and studios fill gaps faster. After import, add the trigger URL as the SimplyBook.me callback URL and set the team address.",
    "status": "off",
    "user_email": "",
    "webhook_queue": "disabled",
    "workflow_auth_key": "",
    "builder_version": "v2",
    "time": "",
    "ai_generated": "yes"
  }
}