{
  "workflow_name": "Text back a Calendly booking link when a Twilio SMS asks to book",
  "workflow_steps": {
    "steps": [
      {
        "id": "1",
        "position": {
          "x": 0,
          "y": 0
        },
        "data": {
          "label": "Incoming SMS",
          "app": {
            "key": "twilio",
            "fm_app": "twilio"
          },
          "eventSlug": "twilio_incoming_sms",
          "eventTitle": "Incoming SMS",
          "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": "twilio",
        "stepID": "1",
        "action": "twilio_incoming_sms",
        "nodeType": "step",
        "actionAppArgs": [],
        "captureResponse": {
          "MessageSid": "SM3f9a1c2b7d8e4f5a6b7c8d9e0f1a2b3c",
          "From": "+15550123456",
          "To": "+15550987654",
          "Body": "Hi, can I book a consultation?",
          "FromCity": "Austin",
          "FromCountry": "US"
        },
        "responses": [
          {
            "letter": "A",
            "time": "01/07/2026, 10:00:00",
            "response": {
              "MessageSid": "SM3f9a1c2b7d8e4f5a6b7c8d9e0f1a2b3c",
              "From": "+15550123456",
              "To": "+15550987654",
              "Body": "Hi, can I book a consultation?",
              "FromCity": "Austin",
              "FromCountry": "US"
            }
          }
        ],
        "activeResponseIndex": 0
      },
      {
        "id": "2",
        "position": {
          "x": 175,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Filter Conditions",
          "layoutDirection": "horizontal",
          "stepNumber": 2,
          "app": {
            "key": "filter",
            "fm_app": "filter"
          },
          "eventSlug": "continue_if",
          "eventTitle": "Continue If Condition Meet",
          "customLabel": "Continue if the text asks to book"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "filterConditions": {
            "1": [
              {
                "key": "{twilio1.Body}",
                "condition": "contain_text",
                "value": "book"
              }
            ]
          }
        },
        "application": "filter",
        "action": "continue_if",
        "nodeType": "step",
        "stepID": "2",
        "filterConditions": {
          "filterConditions": {
            "1": [
              {
                "key": "{twilio1.Body}",
                "condition": "contain_text",
                "value": "book"
              }
            ]
          }
        }
      },
      {
        "id": "3",
        "position": {
          "x": 350,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Get tomorrow's date",
          "layoutDirection": "horizontal",
          "stepNumber": 3,
          "app": {
            "key": "date_time_formatter",
            "fm_app": "date_time_formatter"
          },
          "eventSlug": "modify_current_date",
          "eventTitle": "Modify Current Date"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "to_format": "Y-m-d",
          "operation": "add",
          "time_unit": "days",
          "time_unit_value": "1"
        },
        "application": "date_time_formatter",
        "action": "modify_current_date",
        "nodeType": "step",
        "stepID": "3"
      },
      {
        "id": "4",
        "position": {
          "x": 525,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Get the date in two weeks",
          "layoutDirection": "horizontal",
          "stepNumber": 4,
          "app": {
            "key": "date_time_formatter",
            "fm_app": "date_time_formatter"
          },
          "eventSlug": "modify_current_date",
          "eventTitle": "Modify Current Date"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "to_format": "Y-m-d",
          "operation": "add",
          "time_unit": "days",
          "time_unit_value": "14"
        },
        "application": "date_time_formatter",
        "action": "modify_current_date",
        "nodeType": "step",
        "stepID": "4"
      },
      {
        "id": "5",
        "position": {
          "x": 700,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Create Calendly one-off meeting",
          "layoutDirection": "horizontal",
          "stepNumber": 5,
          "app": {
            "key": "calendly",
            "fm_app": "calendly"
          },
          "eventSlug": "create_one_off_meeting",
          "eventTitle": "Create One-Off Meeting"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "name": "Consultation with {twilio1.From}",
          "duration": "30",
          "timezone": "UTC",
          "start_date": "{date_time_formatter3.output}",
          "end_date": "{date_time_formatter4.output}",
          "location_kind": "google_conference"
        },
        "application": "calendly",
        "action": "create_one_off_meeting",
        "nodeType": "step",
        "stepID": "5"
      },
      {
        "id": "6",
        "position": {
          "x": 875,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Text the booking link back",
          "layoutDirection": "horizontal",
          "stepNumber": 6,
          "app": {
            "key": "twilio",
            "fm_app": "twilio"
          },
          "eventSlug": "send_sms",
          "eventTitle": "Send SMS"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "to": "{twilio1.From}",
          "message": "Thanks for your message! Pick a time that suits you here: {calendly5.scheduling_url}",
          "from": "{twilio1.To}"
        },
        "application": "twilio",
        "action": "send_sms",
        "nodeType": "step",
        "stepID": "6"
      },
      {
        "id": "main_end_placeholder",
        "position": {
          "x": 1050,
          "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-5",
        "source": "4",
        "target": "5",
        "type": "step",
        "data": []
      },
      {
        "id": "e-5-6",
        "source": "5",
        "target": "6",
        "type": "step",
        "data": []
      },
      {
        "id": "e-6-main_end_placeholder",
        "source": "6",
        "target": "main_end_placeholder",
        "type": "placeholder",
        "data": []
      }
    ]
  },
  "workflow_settings": {
    "name": "Text back a Calendly booking link when a Twilio SMS asks to book",
    "folder": "all",
    "description": "When someone texts your Twilio number with the word \"book\", FlowMattic creates a single-use Calendly meeting that can be booked over the next two weeks and texts the link straight back. Good for clinics, salons and service businesses whose customers prefer SMS. After import, set the meeting name, length and time zone in the Calendly step and change the keyword if you like.",
    "status": "off",
    "user_email": "",
    "webhook_queue": "disabled",
    "workflow_auth_key": "",
    "builder_version": "v2",
    "time": "",
    "ai_generated": "yes"
  }
}