{
  "name": "FlowPantry - appointment-reminders-no-show",
  "flow": [
    {
      "id": 1,
      "module": "http:ActionSendData",
      "version": 3,
      "parameters": {},
      "mapper": {
        "url": "APPOINTMENTS_URL",
        "method": "get",
        "headers": [],
        "qs": [],
        "serializeUrl": false,
        "parseResponse": true,
        "shareCookies": false,
        "rejectUnauthorized": true,
        "followRedirect": true,
        "useQuerystring": false,
        "gzip": true,
        "useMtls": false,
        "timeout": ""
      },
      "metadata": {
        "designer": {
          "x": 0,
          "y": 0
        }
      }
    },
    {
      "id": 2,
      "module": "builtin:BasicFeeder",
      "version": 1,
      "parameters": {},
      "mapper": {
        "array": "{{1.data}}"
      },
      "metadata": {
        "designer": {
          "x": 300,
          "y": 0
        }
      }
    },
    {
      "id": 3,
      "module": "builtin:BasicRouter",
      "version": 1,
      "parameters": {},
      "metadata": {
        "designer": {
          "x": 600,
          "y": 0
        }
      },
      "routes": [
        {
          "flow": [
            {
              "id": 4,
              "module": "http:ActionSendData",
              "version": 3,
              "parameters": {},
              "mapper": {
                "url": "https://api.twilio.com/2010-04-01/Accounts/YOUR_TWILIO_SID/Messages.json",
                "method": "post",
                "headers": [],
                "qs": [],
                "serializeUrl": false,
                "parseResponse": true,
                "shareCookies": false,
                "rejectUnauthorized": true,
                "followRedirect": true,
                "useQuerystring": false,
                "gzip": true,
                "useMtls": false,
                "timeout": "",
                "username": "YOUR_TWILIO_SID",
                "password": "YOUR_TWILIO_AUTH_TOKEN",
                "bodyType": "x_www_form_urlencoded",
                "data": "",
                "formFields": [
                  {
                    "key": "To",
                    "value": "{{2.phone}}"
                  },
                  {
                    "key": "From",
                    "value": "YOUR_TWILIO_NUMBER"
                  },
                  {
                    "key": "Body",
                    "value": "Hi {{2.name}}, reminder: your appointment at YOUR BUSINESS is {{2.start}}. Reply C to confirm or call to reschedule."
                  }
                ]
              },
              "metadata": {
                "designer": {
                  "x": 900,
                  "y": 0
                }
              },
              "filter": {
                "name": "Starts in 23-24 hours",
                "conditions": [
                  [
                    {
                      "a": "{{2.start}}",
                      "o": "date:greater",
                      "b": "now + 23h and now + 24h"
                    }
                  ]
                ]
              }
            }
          ]
        },
        {
          "flow": [
            {
              "id": 5,
              "module": "http:ActionSendData",
              "version": 3,
              "parameters": {},
              "mapper": {
                "url": "https://api.twilio.com/2010-04-01/Accounts/YOUR_TWILIO_SID/Messages.json",
                "method": "post",
                "headers": [],
                "qs": [],
                "serializeUrl": false,
                "parseResponse": true,
                "shareCookies": false,
                "rejectUnauthorized": true,
                "followRedirect": true,
                "useQuerystring": false,
                "gzip": true,
                "useMtls": false,
                "timeout": "",
                "username": "YOUR_TWILIO_SID",
                "password": "YOUR_TWILIO_AUTH_TOKEN",
                "bodyType": "x_www_form_urlencoded",
                "data": "",
                "formFields": [
                  {
                    "key": "To",
                    "value": "{{2.phone}}"
                  },
                  {
                    "key": "From",
                    "value": "YOUR_TWILIO_NUMBER"
                  },
                  {
                    "key": "Body",
                    "value": "See you soon, {{2.name}}! Your appointment at YOUR BUSINESS starts at {{2.start}}."
                  }
                ]
              },
              "metadata": {
                "designer": {
                  "x": 900,
                  "y": 0
                }
              },
              "filter": {
                "name": "Starts in 1-2 hours",
                "conditions": [
                  [
                    {
                      "a": "{{2.start}}",
                      "o": "date:greater",
                      "b": "now + 1h and now + 2h"
                    }
                  ]
                ]
              }
            }
          ]
        }
      ]
    }
  ],
  "metadata": {
    "instant": false,
    "version": 1,
    "scenario": {
      "roundtrips": 1,
      "maxErrors": 3,
      "autoCommit": true,
      "autoCommitTriggerLast": true,
      "sequential": false,
      "slots": null,
      "confidential": false,
      "dataloss": false,
      "dlq": false,
      "freshVariables": false
    },
    "designer": {
      "orphans": []
    },
    "zone": "us1.make.com"
  }
}