{
  "elementsLearnedData": [],
  "elementsTestData": [],
  "flow": {
    "id": "0E2710D7-D6CA-4E93-9CEE-8674E0CFDCC8",
    "name": "Dropbox: scanned paperwork filed on the load"
  },
  "flowVersion": {
    "clientMetadata": {
      "viewport": {
        "x": -56.73366834170855,
        "y": 4.824120603015075,
        "zoom": 0.88
      },
      "autoSave": false,
      "descriptions": {
        "flow": "When a scan or a driver's photo lands in the Dropbox scan folder, reads it, finds the load in McLeod LoadMaster, files it on the load in McLeod Imaging and moves it into the load's Dropbox folder named by load number. Anything that can't be matched goes to a Needs review folder and to ops in Slack.",
        "initialData": "",
        "initialDataFields": {}
      }
    },
    "description": "When a scan or a driver's photo lands in the Dropbox scan folder, reads it, finds the load in McLeod LoadMaster, files it on the load in McLeod Imaging and moves it into the load's Dropbox folder named by load number. Anything that can't be matched goes to a Needs review folder and to ops in Slack.",
    "elements": [
      {
        "clientMetadata": {
          "notes": "Finds a load by its order number, PRO number, bill of lading, consignee reference or a stop reference number (McLeod order tracking search) and returns the first match in full, as Get Load does, with every match listed. Returns found: false instead of failing when nothing matches.",
          "elementId": "EXTENSION:::SHARED:::default:::mcleod-loadmaster:::findLoadByNumber",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Find the load in McLeod Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::mcleod-loadmaster:::findLoadByNumber",
          "legacyElementId": null,
          "methodName": "findLoadByNumber",
          "position": {
            "x": 1099,
            "y": 340
          }
        },
        "flowElementId": "A55F9BE7-366A-49FE-93D6-C034462B404A",
        "groupId": null,
        "id": "A179B2E0-87F4-4B2E-9D04-16BC7C1BDD3C",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "loadNumber",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Paperwork",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "lookup",
                        "optional": false
                      },
                      {
                        "key": "orderNumber",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "41F9632F-A5A8-494F-B979-442744D4FBF9"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "proNumber",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Paperwork",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "lookup",
                        "optional": false
                      },
                      {
                        "key": "proNumber",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "41F9632F-A5A8-494F-B979-442744D4FBF9"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "billOfLading",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Paperwork",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "lookup",
                        "optional": false
                      },
                      {
                        "key": "billOfLading",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "41F9632F-A5A8-494F-B979-442744D4FBF9"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "consigneeReference",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "referenceNumber",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "findLoadByNumber",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "McLeod match",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "mcleod-loadmaster",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Find the load in McLeod",
        "nextElementIds": [
          "600800CB-BDD7-49B9-AF07-1749C4765066"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Downloads a file from Dropbox and stores it in the FlowRunner file storage. Returns the public FlowRunner URL of the saved copy, which can be passed to downstream actions or AI agent tools that operate on file URLs.",
          "elementId": "EXTENSION:::SHARED:::default:::dropbox-service:::downloadFile",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Download the scan Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::dropbox-service:::downloadFile",
          "legacyElementId": "JS###v1###DropboxService###downloadFile",
          "methodName": "downloadFile",
          "position": {
            "x": 1111,
            "y": 40
          }
        },
        "flowElementId": "B4F1D94C-962A-4B30-8359-C5D1DE035087",
        "groupId": null,
        "id": "50241BEF-DD4D-437F-BDA1-FBF64BB9F950",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "path",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Scan",
                    "subPathSegments": [
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "7CB3BC35-C7A8-4EFD-8A70-A4921FC1B166"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "targetFileName",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": "Block: 'Download the scan', Error: OAuth Connection is required",
            "valid": false
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "downloadFile",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Scan file",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "dropbox-service",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Download the scan",
        "nextElementIds": [
          "41F9632F-A5A8-494F-B979-442744D4FBF9"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Check the file type Result"
          },
          "position": {
            "x": 442,
            "y": 49
          }
        },
        "flowElementId": "2DA2F7B1-8673-4D83-9150-C40EFAC0B286",
        "groupId": null,
        "id": "5C0CE105-5951-4F7A-BA78-A473BD50A61A",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "name",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Scan",
                    "subPathSegments": [
                      {
                        "key": "name",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "7CB3BC35-C7A8-4EFD-8A70-A4921FC1B166"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "path",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Scan",
                    "subPathSegments": [
                      {
                        "key": "path_display",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "7CB3BC35-C7A8-4EFD-8A70-A4921FC1B166"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const n = String(name || '');\nconst p = String(path || '');\nconst ext = ((n.match(/\\.([A-Za-z0-9]+)$/) || [])[1] || '').toLowerCase();\nconst types = { pdf: 'application/pdf', jpg: 'image/jpeg', jpeg: 'image/jpeg', png: 'image/png', gif: 'image/gif', webp: 'image/webp' };\nconst mimeType = types[ext] || '';\nconst folder = p.slice(0, p.lastIndexOf('/'));\nconst reviewFolder = `${folder}/Needs review`;\nconst reviewLink = 'https://www.dropbox.com/home' + reviewFolder.split('/').map(encodeURIComponent).join('/');\nreturn {\n  mimeType,\n  ext: ext ? `.${ext}` : '',\n  readable: Boolean(mimeType),\n  reviewFolder,\n  reviewPath: `${reviewFolder}/${n}`,\n  reviewLink,\n};\n"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "File type",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Check the file type",
        "nextElementIds": [
          "02488F81-2FB8-4798-991B-B4D786BA974D"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "ai-agent",
          "isFirstElement": false,
          "blockDefinitionId": "ai-agent",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Read the paperwork Result"
          },
          "tools": {},
          "position": {
            "x": 1422,
            "y": 49
          }
        },
        "flowElementId": "B44AE937-00D5-4610-9141-6D4CF89FFB8C",
        "groupId": null,
        "id": "41F9632F-A5A8-494F-B979-442744D4FBF9",
        "metaInfo": {
          "aiApiKey": null,
          "aiModel": "claude-sonnet-5",
          "aiProvider": "ANTHROPIC",
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "dynamicAiApiKey": {
            "expression": [
              {
                "id": "PLACEHOLDER_DATA",
                "label": "Anthropic key",
                "subPathSegments": null,
                "type": "EXECUTION_CONTEXT_STATIC_DATA",
                "value": "Anthropic key"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "files": [
            {
              "mimeType": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "File type",
                    "subPathSegments": [
                      {
                        "key": "mimeType",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "5C0CE105-5951-4F7A-BA78-A473BD50A61A"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": "STRING"
              },
              "url": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Scan file",
                    "subPathSegments": [
                      {
                        "key": "url",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "50241BEF-DD4D-437F-BDA1-FBF64BB9F950"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": "STRING"
              }
            }
          ],
          "forceParsedOutput": true,
          "langSmithSettings": {
            "enabled": false,
            "apiKey": null,
            "projectName": null,
            "label": "FlowRunner AI-Agent",
            "accountCluster": "US"
          },
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "messagesHistoryEnabled": false,
          "messagesHistoryLimit": 15,
          "onFailElemId": null,
          "resultAlias": "Paperwork",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "systemPrompt": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "You read load paperwork that drivers, carriers and the office scan or photograph into a Dropbox folder at a freight broker or trucking company. Look at the attached file and reply with JSON only, with these fields:\ndocumentType: exactly one of \"Rate con\", \"BOL\", \"POD\", \"Carrier invoice\", \"Lumper receipt\", \"Other\", \"Not paperwork\". A BOL signed by the consignee at delivery is a POD. When the scan holds several documents for one load, name the one on the first page. Use \"Other\" for any other load paperwork, such as a scale ticket, detention or layover backup, a TONU notice or an OS&D report. Use \"Not paperwork\" for anything that is not about a shipment.\nloadNumber: the broker's load or order number printed on the document (often labeled Load #, Load ID, Order # or Broker Ref), or empty text if there is none. Never put a PRO, BOL or PO number here.\nproNumber: the PRO number, or empty text\nbolNumber: the bill of lading number, or empty text\ncarrier: the carrier's name, or empty text\nlookup: an object with three fields, orderNumber, proNumber and billOfLading. Fill only the first of these that the document has, in this order: load number, then PRO number, then bill of lading number. Leave the other two as empty text."
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "tools": [],
          "type": "AI_AGENT",
          "userPrompt": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "File name: "
              },
              {
                "id": "RESULT",
                "label": "Scan",
                "subPathSegments": [
                  {
                    "key": "name",
                    "optional": false
                  }
                ],
                "type": "TRIGGER_DATA",
                "value": "7CB3BC35-C7A8-4EFD-8A70-A4921FC1B166"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "\nSaved in Dropbox at: "
              },
              {
                "id": "RESULT",
                "label": "Scan",
                "subPathSegments": [
                  {
                    "key": "path_display",
                    "optional": false
                  }
                ],
                "type": "TRIGGER_DATA",
                "value": "7CB3BC35-C7A8-4EFD-8A70-A4921FC1B166"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          }
        },
        "name": "Read the paperwork",
        "nextElementIds": [
          "EE87E9B2-4A46-481A-AD21-F2FAD44D797A"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 1422,
            "y": 349
          }
        },
        "flowElementId": "644383EC-939E-4DA7-B2A8-65F2BDBC9DD4",
        "groupId": null,
        "id": "EE87E9B2-4A46-481A-AD21-F2FAD44D797A",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "e1f3491f-e779-45fa-84c2-5b79cdaaf8b1",
                "nestedOperation": null,
                "operation": "notEqual",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Paperwork",
                      "subPathSegments": [
                        {
                          "key": "output",
                          "optional": false
                        },
                        {
                          "key": "documentType",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "41F9632F-A5A8-494F-B979-442744D4FBF9"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "STRING",
                "values": [
                  {
                    "expression": [
                      {
                        "id": "TEXT",
                        "label": null,
                        "type": "INPUT",
                        "value": "Not paperwork"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                ]
              },
              {
                "id": "81f341ad-1f5b-42d6-9236-00069bbd3ad7",
                "nestedOperation": null,
                "operation": "isNotEmpty",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Paperwork",
                      "subPathSegments": [
                        {
                          "key": "output",
                          "optional": false
                        },
                        {
                          "key": "lookup",
                          "optional": false
                        },
                        {
                          "key": "orderNumber",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "41F9632F-A5A8-494F-B979-442744D4FBF9"
                    },
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Paperwork",
                      "subPathSegments": [
                        {
                          "key": "output",
                          "optional": false
                        },
                        {
                          "key": "lookup",
                          "optional": false
                        },
                        {
                          "key": "proNumber",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "41F9632F-A5A8-494F-B979-442744D4FBF9"
                    },
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Paperwork",
                      "subPathSegments": [
                        {
                          "key": "output",
                          "optional": false
                        },
                        {
                          "key": "lookup",
                          "optional": false
                        },
                        {
                          "key": "billOfLading",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "41F9632F-A5A8-494F-B979-442744D4FBF9"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "STRING",
                "values": []
              }
            ],
            "grouping": [
              "e1f3491f-e779-45fa-84c2-5b79cdaaf8b1",
              "AND",
              "81f341ad-1f5b-42d6-9236-00069bbd3ad7"
            ]
          },
          "elseComponent": {
            "componentId": "1C868E35-E7C1-47D7-99A5-51A05347D1B5",
            "componentType": "ELEMENT"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Load number on it",
          "storeResult": false,
          "thenComponent": {
            "componentId": "A179B2E0-87F4-4B2E-9D04-16BC7C1BDD3C",
            "componentType": "ELEMENT"
          }
        },
        "name": "Load number on it?",
        "nextElementIds": [
          "A179B2E0-87F4-4B2E-9D04-16BC7C1BDD3C",
          "1C868E35-E7C1-47D7-99A5-51A05347D1B5"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 783,
            "y": 349
          }
        },
        "flowElementId": "A10A4BA6-5466-48DF-8B55-020F0AC50999",
        "groupId": null,
        "id": "600800CB-BDD7-49B9-AF07-1749C4765066",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "af9391b2-d621-474c-b23a-e2cef34d2dc5",
                "nestedOperation": null,
                "operation": "isTrue",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "McLeod match",
                      "subPathSegments": [
                        {
                          "key": "found",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "A179B2E0-87F4-4B2E-9D04-16BC7C1BDD3C"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "BOOLEAN",
                "values": []
              }
            ],
            "grouping": [
              "af9391b2-d621-474c-b23a-e2cef34d2dc5"
            ]
          },
          "elseComponent": {
            "componentId": "1C868E35-E7C1-47D7-99A5-51A05347D1B5",
            "componentType": "ELEMENT"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Load found",
          "storeResult": false,
          "thenComponent": {
            "componentId": "C0A99037-FC6A-4F77-91E0-C3F63721E8B0",
            "componentType": "ELEMENT"
          }
        },
        "name": "Load found?",
        "nextElementIds": [
          "C0A99037-FC6A-4F77-91E0-C3F63721E8B0",
          "1C868E35-E7C1-47D7-99A5-51A05347D1B5"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "notes": "Sends messages to Slack channels with optional Block Kit rich layouts. Supports plain text with Slack formatting, or advanced Block Kit JSON for buttons, menus, and interactive elements. Returns the message timestamp and channel ID for later updates or tracking.",
          "elementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Tell ops Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 783,
            "y": 640
          }
        },
        "flowElementId": "D3AC2064-7EAE-4606-A721-63BA0396C9B1",
        "groupId": null,
        "id": "ED0E135C-7B6F-4C2D-A33C-2C30F7D3B770",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "channelId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ""
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "messageText",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Ops note",
                    "subPathSegments": [
                      {
                        "key": "text",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "FA74F002-67EA-412D-A6DF-D4CF207A8D6A"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "threadId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sendAsBot",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botName",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botIcon",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "replyBroadcast",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "imageURL",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "blocks",
              "type": "COMPLEX_LIST",
              "value": []
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "sendMessageToChannel",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Ops message",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Tell ops",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Adds a document (rate confirmation, BOL, POD, invoice) to a load in McLeod Imaging, from a file URL such as a FlowRunner stored file or an email attachment. PDF, TIFF, PNG, JPEG, GIF and BMP are accepted. Some imaging setups stage uploads for a batch job, so the document may appear in McLeod later.",
          "elementId": "EXTENSION:::SHARED:::default:::mcleod-loadmaster:::uploadDocument",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "File it on the load in McLeod Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::mcleod-loadmaster:::uploadDocument",
          "legacyElementId": null,
          "methodName": "uploadDocument",
          "position": {
            "x": 416,
            "y": 510
          }
        },
        "flowElementId": "1163945B-062E-440E-AEDA-C793F3CFA597",
        "groupId": null,
        "id": "78EC6489-3E89-4531-91D8-D80D10FFA561",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "orderId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Filing",
                    "subPathSegments": [
                      {
                        "key": "orderId",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "C0A99037-FC6A-4F77-91E0-C3F63721E8B0"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "attachTo",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "O"
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "movementId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "documentTypeId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Filing",
                    "subPathSegments": [
                      {
                        "key": "documentTypeId",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "C0A99037-FC6A-4F77-91E0-C3F63721E8B0"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "fileUrl",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Scan file",
                    "subPathSegments": [
                      {
                        "key": "url",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "50241BEF-DD4D-437F-BDA1-FBF64BB9F950"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "fileType",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "uploadDocument",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Filed in McLeod",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "mcleod-loadmaster",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "File it on the load in McLeod",
        "nextElementIds": [
          "5386E226-81F6-4622-91C9-6EF6BF1418EF"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 783,
            "y": 49
          }
        },
        "flowElementId": "093AA54F-8A7E-46A4-85B4-E8B9910BB09D",
        "groupId": null,
        "id": "02488F81-2FB8-4798-991B-B4D786BA974D",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "525f8edd-4bd0-4578-b092-59ccfb5ac6d4",
                "nestedOperation": null,
                "operation": "isTrue",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "File type",
                      "subPathSegments": [
                        {
                          "key": "readable",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "5C0CE105-5951-4F7A-BA78-A473BD50A61A"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "BOOLEAN",
                "values": []
              }
            ],
            "grouping": [
              "525f8edd-4bd0-4578-b092-59ccfb5ac6d4"
            ]
          },
          "elseComponent": {
            "componentId": "1C868E35-E7C1-47D7-99A5-51A05347D1B5",
            "componentType": "ELEMENT"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "PDF or image",
          "storeResult": false,
          "thenComponent": {
            "componentId": "50241BEF-DD4D-437F-BDA1-FBF64BB9F950",
            "componentType": "ELEMENT"
          }
        },
        "name": "PDF or image?",
        "nextElementIds": [
          "50241BEF-DD4D-437F-BDA1-FBF64BB9F950",
          "1C868E35-E7C1-47D7-99A5-51A05347D1B5"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Name the file Result"
          },
          "position": {
            "x": 442,
            "y": 349
          }
        },
        "flowElementId": "7E29CD06-40C8-4608-AC14-CF787CFC57A6",
        "groupId": null,
        "id": "C0A99037-FC6A-4F77-91E0-C3F63721E8B0",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "match",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "McLeod match",
                    "subPathSegments": null,
                    "type": "ELEMENT_LINK",
                    "value": "A179B2E0-87F4-4B2E-9D04-16BC7C1BDD3C"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "paperwork",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Paperwork",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "41F9632F-A5A8-494F-B979-442744D4FBF9"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "types",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "McLeod document types",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "McLeod document types"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "loadsFolder",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Loads folder",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Loads folder"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "ext",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "File type",
                    "subPathSegments": [
                      {
                        "key": "ext",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "5C0CE105-5951-4F7A-BA78-A473BD50A61A"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const load = match && match.load ? match.load : {};\nconst orderId = String(load.orderId || '').trim();\nconst reading = paperwork && typeof paperwork === 'object' ? paperwork : {};\nconst type = String(reading.documentType || 'Other');\nlet codes = types;\nif (typeof codes === 'string') { try { codes = JSON.parse(codes); } catch (e) { codes = {}; } }\nif (!codes || typeof codes !== 'object') codes = {};\nconst safe = (s) => String(s).replace(/[\\\\/:*?\"<>|]/g, '-');\nconst root = String(loadsFolder || '').trim().replace(/\\/+$/, '');\nconst base = !root || root.startsWith('/') ? root : `/${root}`;\nconst fileName = safe(`${orderId} ${type}${ext || '.pdf'}`);\nconst loadFolder = `${base}/${safe(orderId)}`;\nreturn {\n  orderId,\n  documentType: type,\n  documentTypeId: codes[type] || codes.Other || '',\n  fileName,\n  loadFolder,\n  toPath: `${loadFolder}/${fileName}`,\n};\n"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Filing",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Name the file",
        "nextElementIds": [
          "78EC6489-3E89-4531-91D8-D80D10FFA561"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Write the note for ops Result"
          },
          "position": {
            "x": 437,
            "y": 649
          }
        },
        "flowElementId": "0A6CDD4C-D0BC-40F9-A03E-437C2D875FED",
        "groupId": null,
        "id": "FA74F002-67EA-412D-A6DF-D4CF207A8D6A",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "reading",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Paperwork",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "41F9632F-A5A8-494F-B979-442744D4FBF9"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "readable",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "File type",
                    "subPathSegments": [
                      {
                        "key": "readable",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "5C0CE105-5951-4F7A-BA78-A473BD50A61A"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "fileName",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Scan",
                    "subPathSegments": [
                      {
                        "key": "name",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "7CB3BC35-C7A8-4EFD-8A70-A4921FC1B166"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "reviewLink",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "File type",
                    "subPathSegments": [
                      {
                        "key": "reviewLink",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "5C0CE105-5951-4F7A-BA78-A473BD50A61A"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "reviewFolder",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "File type",
                    "subPathSegments": [
                      {
                        "key": "reviewFolder",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "5C0CE105-5951-4F7A-BA78-A473BD50A61A"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const r = reading && typeof reading === 'object' ? reading : {};\nconst type = r.documentType || 'paperwork';\nconst numbers = [\n  r.loadNumber ? `load ${r.loadNumber}` : '',\n  r.proNumber ? `PRO ${r.proNumber}` : '',\n  r.bolNumber ? `BOL ${r.bolNumber}` : '',\n].filter(Boolean).join(', ');\nlet why;\nif (readable !== true) why = 'It is not a PDF or an image, so it was not read.';\nelse if (r.documentType === 'Not paperwork') why = 'It does not look like load paperwork.';\nelse if (!numbers) why = `It reads as ${type} but has no load, PRO or BOL number on it.`;\nelse why = `It reads as ${type} with ${numbers}, and McLeod has no load that matches.`;\nconst carrier = r.carrier ? ` Carrier: ${r.carrier}.` : '';\nreturn {\n  text: `*${fileName} needs filing by hand*\\n${why}${carrier}\\nIt is in <${reviewLink}|${reviewFolder}> in Dropbox.`,\n};\n"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Ops note",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Write the note for ops",
        "nextElementIds": [
          "ED0E135C-7B6F-4C2D-A33C-2C30F7D3B770"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Moves or renames a file or folder in Dropbox by changing its path. Use this for reorganizing folder structures, renaming items, or relocating processed files to archive locations. The source and destination must be on the same Dropbox account.",
          "elementId": "EXTENSION:::SHARED:::default:::dropbox-service:::moveFile",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Move it to Needs review Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::dropbox-service:::moveFile",
          "legacyElementId": "JS###v1###DropboxService###moveFile",
          "methodName": "moveFile",
          "position": {
            "x": 429,
            "y": 210
          }
        },
        "flowElementId": "43C83D97-258C-4964-AD99-589372BD80E0",
        "groupId": null,
        "id": "1C868E35-E7C1-47D7-99A5-51A05347D1B5",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "fromPath",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Scan",
                    "subPathSegments": [
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "7CB3BC35-C7A8-4EFD-8A70-A4921FC1B166"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "toPath",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "File type",
                    "subPathSegments": [
                      {
                        "key": "reviewPath",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "5C0CE105-5951-4F7A-BA78-A473BD50A61A"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "autorename",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_TRUE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": true
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "allowOwnershipTransfer",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": "Block: 'Move it to Needs review', Error: OAuth Connection is required",
            "valid": false
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "moveFile",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Moved for review",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "dropbox-service",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Move it to Needs review",
        "nextElementIds": [
          "FA74F002-67EA-412D-A6DF-D4CF207A8D6A"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Triggers a workflow whenever a new file appears in the watched Dropbox folder. Useful for automating ingestion of client uploads, AI-generated content, or third-party deliveries. Polling interval can be customized (minimum 30 seconds).",
          "elementId": "EXTENSION:::SHARED:::default:::dropbox-service:::onNewFile",
          "isFirstElement": true,
          "blockDefinitionId": "EXTENSION:::SHARED:::default:::dropbox-service:::onNewFile",
          "newElementId": "EXTENSION:::SHARED:::default:::dropbox-service:::onNewFile",
          "legacyElementId": "JS###v1###DropboxService###onNewFile",
          "methodName": "onNewFile",
          "position": {
            "x": 110,
            "y": 40
          }
        },
        "flowElementId": "6AFAC0A6-8236-4D80-A769-5B756A4B3D18",
        "groupId": null,
        "id": "7CB3BC35-C7A8-4EFD-8A70-A4921FC1B166",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": "Block: 'New scan in Dropbox', Error: OAuth Connection is required",
            "valid": false
          },
          "condition": null,
          "connectionId": null,
          "dynamicData": [],
          "eventName": "onNewFile",
          "frequency": {
            "repeat": {
              "every": 300
            },
            "schedule": "custom"
          },
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": null
          },
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Scan",
          "serviceId": "dropbox-service",
          "slaConditions": [],
          "staticData": {
            "folderPath": "/Scans",
            "recursive": false
          },
          "storeResult": true,
          "subtype": "POLLING",
          "type": "CUSTOM"
        },
        "name": "New scan in Dropbox",
        "nextElementIds": [
          "5C0CE105-5951-4F7A-BA78-A473BD50A61A"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "TRIGGER"
      },
      {
        "clientMetadata": {
          "notes": "Moves or renames a file or folder in Dropbox by changing its path. Use this for reorganizing folder structures, renaming items, or relocating processed files to archive locations. The source and destination must be on the same Dropbox account.",
          "elementId": "EXTENSION:::SHARED:::default:::dropbox-service:::moveFile",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Move it to the load folder Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::dropbox-service:::moveFile",
          "legacyElementId": "JS###v1###DropboxService###moveFile",
          "methodName": "moveFile",
          "position": {
            "x": 767,
            "y": 510
          }
        },
        "flowElementId": "2D76B742-B658-489F-88CD-195D90C7E9EB",
        "groupId": null,
        "id": "5386E226-81F6-4622-91C9-6EF6BF1418EF",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "fromPath",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Scan",
                    "subPathSegments": [
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "7CB3BC35-C7A8-4EFD-8A70-A4921FC1B166"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "toPath",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Filing",
                    "subPathSegments": [
                      {
                        "key": "toPath",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "C0A99037-FC6A-4F77-91E0-C3F63721E8B0"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "autorename",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_TRUE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": true
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "allowOwnershipTransfer",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": "Block: 'Move it to the load folder', Error: OAuth Connection is required",
            "valid": false
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "moveFile",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Filed in Dropbox",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "dropbox-service",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Move it to the load folder",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      }
    ],
    "firstElementId": "7CB3BC35-C7A8-4EFD-8A70-A4921FC1B166",
    "groups": [],
    "id": "16E55D81-51B7-431C-B3B6-E1B605449D4F",
    "metaInfo": {
      "clientValidationState": {
        "errorMessage": "Please fix problems before start. Blocks with issues have red badge in the top-right corner of a block, hover it to see what needs to be done.",
        "valid": false
      },
      "errorMessage": "Please fix problems before start. Blocks with issues have red badge in the top-right corner of a block, hover it to see what needs to be done.",
      "executionStaticData": [
        {
          "description": "Anthropic API key the AI step uses to read each scan.",
          "error": null,
          "name": "Anthropic key",
          "type": "API_KEY",
          "value": null
        },
        {
          "description": "Dropbox folder that holds one folder per load, named by load number.",
          "error": null,
          "name": "Loads folder",
          "type": "STRING",
          "value": ""
        },
        {
          "description": "The McLeod Imaging document type ID to file each kind of paperwork under. Change the values to your own types.",
          "error": null,
          "name": "McLeod document types",
          "type": "OBJECT",
          "value": ""
        }
      ],
      "initialData": null,
      "initialDataDefaultValues": {},
      "ownerFlowVersionId": null,
      "schedule": null,
      "sharedMemory": {
        "anchor": {
          "missingAnchorPolicy": null,
          "path": null,
          "type": "FLOW_MEMORY"
        },
        "expirationInSec": null
      },
      "wasLive": false
    }
  },
  "slaCalendars": [],
  "slaGoals": [],
  "subFlows": [],
  "exportDate": "2026-11-26T09:40:00.835Z"
}
