{
  "elementsLearnedData": [],
  "elementsTestData": [],
  "flow": {
    "id": "46A0C9E4-D217-47E4-AA4D-48549C16BB0A",
    "name": "SharePoint: PODs filed on the McLeod load"
  },
  "flowVersion": {
    "clientMetadata": {
      "viewport": {
        "x": -70,
        "y": 0,
        "zoom": 1
      },
      "autoSave": false,
      "descriptions": {
        "flow": "When a POD lands in a SharePoint folder, an AI agent reads it, the load is found in McLeod LoadMaster and the POD is filed on it in McLeod Imaging, and the file is renamed with the load number. A POD with no matching load, or one that is unsigned or notes a shortage, damage or refusal, goes to billing in Slack.",
        "initialData": "",
        "initialDataFields": {}
      }
    },
    "description": "When a POD lands in a SharePoint folder, an AI agent reads it, the load is found in McLeod LoadMaster and the POD is filed on it in McLeod Imaging, and the file is renamed with the load number. A POD with no matching load, or one that is unsigned or notes a shortage, damage or refusal, goes to billing in Slack.",
    "elements": [
      {
        "clientMetadata": {
          "notes": "Triggers when a new file is added to a folder in a SharePoint document library. Polling interval can be customized (minimum 30 seconds). Subfolders are not monitored.",
          "elementId": "EXTENSION:::SHARED:::default:::sharepoint:::onNewFile",
          "isFirstElement": true,
          "blockDefinitionId": "EXTENSION:::SHARED:::default:::sharepoint:::onNewFile",
          "newElementId": "EXTENSION:::SHARED:::default:::sharepoint:::onNewFile",
          "legacyElementId": "JS###v1###SharePointService###onNewFile",
          "methodName": "onNewFile",
          "position": {
            "x": 113,
            "y": 40
          }
        },
        "flowElementId": "EB6F8698-D404-4F7A-B09E-C0048FCEB22B",
        "groupId": null,
        "id": "5FCC2C49-579E-4E0D-989D-EE0E886A28C3",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": "Block: 'New POD in SharePoint', Error: Site is required",
            "valid": false
          },
          "condition": null,
          "connectionId": null,
          "dynamicData": [],
          "eventName": "onNewFile",
          "frequency": {
            "repeat": {
              "every": 120
            },
            "schedule": "custom"
          },
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": null
          },
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "POD file",
          "serviceId": "sharepoint",
          "slaConditions": [],
          "staticData": {},
          "storeResult": true,
          "subtype": "POLLING",
          "type": "CUSTOM"
        },
        "name": "New POD in SharePoint",
        "nextElementIds": [
          "B3BC3514-6CB4-427B-B975-0207B98DB7D5"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "TRIGGER"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Check the file type Result"
          },
          "position": {
            "x": 473,
            "y": 49
          }
        },
        "flowElementId": "6C682A15-912B-4D95-B17A-881CEAFDA9F7",
        "groupId": null,
        "id": "B3BC3514-6CB4-427B-B975-0207B98DB7D5",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "name",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "POD file",
                    "subPathSegments": [
                      {
                        "key": "name",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "5FCC2C49-579E-4E0D-989D-EE0E886A28C3"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "mime",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "POD file",
                    "subPathSegments": [
                      {
                        "key": "file",
                        "optional": false
                      },
                      {
                        "key": "mimeType",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "5FCC2C49-579E-4E0D-989D-EE0E886A28C3"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const n = String(name || '');\nconst m = String(mime || '').toLowerCase();\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 allowed = ['application/pdf', 'image/jpeg', 'image/png', 'image/gif', 'image/webp'];\nlet mimeType = types[ext] || '';\nif (!mimeType && allowed.includes(m)) mimeType = m;\nreturn { mimeType, readable: Boolean(mimeType) };\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": [
          "65C5B227-D69D-4147-AC62-BCA184A8695B"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Returns a short-lived download URL for a file. Use the URL to fetch file content directly. The URL is pre-authenticated and expires within minutes.",
          "elementId": "EXTENSION:::SHARED:::default:::sharepoint:::downloadFile",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Get a download link Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::sharepoint:::downloadFile",
          "legacyElementId": "JS###v1###SharePointService###downloadFile",
          "methodName": "downloadFile",
          "position": {
            "x": 1157,
            "y": 40
          }
        },
        "flowElementId": "7EAF424D-9A32-46E2-84F9-5C25AC94F1A0",
        "groupId": null,
        "id": "88C55E08-FEB1-4835-8629-0609F2B0056C",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "siteId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "POD file",
                    "subPathSegments": [
                      {
                        "key": "parentReference",
                        "optional": false
                      },
                      {
                        "key": "siteId",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "5FCC2C49-579E-4E0D-989D-EE0E886A28C3"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "driveId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "POD file",
                    "subPathSegments": [
                      {
                        "key": "parentReference",
                        "optional": false
                      },
                      {
                        "key": "driveId",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "5FCC2C49-579E-4E0D-989D-EE0E886A28C3"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "itemId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "POD file",
                    "subPathSegments": [
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "5FCC2C49-579E-4E0D-989D-EE0E886A28C3"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": "Block: 'Get a download link', 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": "POD link",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "sharepoint",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Get a download link",
        "nextElementIds": [
          "CA99DBE7-0E4D-4EBC-803C-1AF328CC6A05"
        ],
        "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 billing Result"
          },
          "position": {
            "x": 1144,
            "y": 389
          }
        },
        "flowElementId": "9942CABB-7AB1-4F9D-89E7-03EBFB4B55F0",
        "groupId": null,
        "id": "8794ED00-4E49-4230-B86E-518B4DC5A39D",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "fileType",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "File type",
                    "subPathSegments": null,
                    "type": "ELEMENT_LINK",
                    "value": "B3BC3514-6CB4-427B-B975-0207B98DB7D5"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "read",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "POD",
                    "subPathSegments": null,
                    "type": "ELEMENT_LINK",
                    "value": "CA99DBE7-0E4D-4EBC-803C-1AF328CC6A05"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "match",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "McLeod match",
                    "subPathSegments": null,
                    "type": "ELEMENT_LINK",
                    "value": "935F8BE3-061F-4498-98CD-D074EA51CF50"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "renamed",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Renamed POD",
                    "subPathSegments": null,
                    "type": "ELEMENT_LINK",
                    "value": "9D17DE74-97B1-46C4-B9B4-B11D945ACB23"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "name",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "POD file",
                    "subPathSegments": [
                      {
                        "key": "name",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "5FCC2C49-579E-4E0D-989D-EE0E886A28C3"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "url",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "POD file",
                    "subPathSegments": [
                      {
                        "key": "webUrl",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "5FCC2C49-579E-4E0D-989D-EE0E886A28C3"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const pod = read && read.output && typeof read.output === 'object' ? read.output : {};\nconst found = Boolean(match && match.found === true);\nconst load = found && match.load ? match.load : {};\nconst fileName = String(name || 'A file');\nconst u = String((renamed && renamed.webUrl) || url || '');\nconst shownName = renamed && renamed.name ? renamed.name : fileName;\nconst link = u ? `<${u}|${shownName}>` : shownName;\nconst lines = [];\nif (!fileType || fileType.readable !== true) {\n  lines.push(`${link} in the POD folder isn't a PDF or an image, so it wasn't read or filed.`);\n} else if (pod.isPod !== true) {\n  lines.push(`${link} doesn't read as a POD, so it wasn't filed.`);\n} else if (pod.hasNumber !== true) {\n  lines.push(`${link} has no load number, PRO or BOL that could be read. File it in McLeod by hand.`);\n} else if (!found) {\n  const nums = [pod.loadNumber && `load ${pod.loadNumber}`, pod.proNumber && `PRO ${pod.proNumber}`, pod.bolNumber && `BOL ${pod.bolNumber}`].filter(Boolean).join(', ');\n  lines.push(`${link} matches no load in McLeod${nums ? ` (${nums})` : ''}. File it by hand.`);\n} else {\n  lines.push(`The POD for load ${load.orderId} is filed in McLeod. Check it before the load is billed.`);\n  const facts = [load.customer && load.customer.name, pod.carrier && `carrier ${pod.carrier}`, pod.consignee && `delivered to ${pod.consignee}`, pod.deliveredAt && `on ${pod.deliveredAt}`].filter(Boolean).join(', ');\n  if (facts) lines.push(facts);\n  if (pod.signed !== true) lines.push('It is not signed.');\n  if (pod.exceptions === true) lines.push(`Noted on the POD: ${pod.exceptionNotes || 'an exception, see the file'}`);\n  lines.push(`File: ${link}`);\n}\nreturn { text: lines.join('\\n') };\n"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Billing note",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Write the note for billing",
        "nextElementIds": [
          "3786ECD2-5520-46C7-9A74-6943F69079D5"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Renames a file or folder in place, keeping it in its current folder. To move an item to a different folder, use Move Drive Item instead.",
          "elementId": "EXTENSION:::SHARED:::default:::sharepoint:::renameDriveItem",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Rename it with the load number Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::sharepoint:::renameDriveItem",
          "legacyElementId": "JS###v1###SharePointService###renameDriveItem",
          "methodName": "renameDriveItem",
          "position": {
            "x": 435,
            "y": 380
          }
        },
        "flowElementId": "54753F56-76E5-4922-9C6C-65BC1D57A2C4",
        "groupId": null,
        "id": "9D17DE74-97B1-46C4-B9B4-B11D945ACB23",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "siteId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "POD file",
                    "subPathSegments": [
                      {
                        "key": "parentReference",
                        "optional": false
                      },
                      {
                        "key": "siteId",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "5FCC2C49-579E-4E0D-989D-EE0E886A28C3"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "driveId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "POD file",
                    "subPathSegments": [
                      {
                        "key": "parentReference",
                        "optional": false
                      },
                      {
                        "key": "driveId",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "5FCC2C49-579E-4E0D-989D-EE0E886A28C3"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "itemId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "POD file",
                    "subPathSegments": [
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "5FCC2C49-579E-4E0D-989D-EE0E886A28C3"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "newName",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "McLeod match",
                    "subPathSegments": [
                      {
                        "key": "load",
                        "optional": false
                      },
                      {
                        "key": "orderId",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "935F8BE3-061F-4498-98CD-D074EA51CF50"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " POD - "
                  },
                  {
                    "id": "RESULT",
                    "label": "POD file",
                    "subPathSegments": [
                      {
                        "key": "name",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "5FCC2C49-579E-4E0D-989D-EE0E886A28C3"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": "Block: 'Rename it with the load number', 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": "renameDriveItem",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Renamed POD",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "sharepoint",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Rename it with the load number",
        "nextElementIds": [
          "01BA486E-C80F-4AA5-9383-0DE8B59FDD3B"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "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": 462,
            "y": 210
          }
        },
        "flowElementId": "AEFA1E69-FD4C-4F6F-A641-E2B4689898CA",
        "groupId": null,
        "id": "935F8BE3-061F-4498-98CD-D074EA51CF50",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "loadNumber",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "POD",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "lookup",
                        "optional": false
                      },
                      {
                        "key": "orderNumber",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "CA99DBE7-0E4D-4EBC-803C-1AF328CC6A05"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "proNumber",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "POD",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "lookup",
                        "optional": false
                      },
                      {
                        "key": "proNumber",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "CA99DBE7-0E4D-4EBC-803C-1AF328CC6A05"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "billOfLading",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "POD",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "lookup",
                        "optional": false
                      },
                      {
                        "key": "billOfLading",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "CA99DBE7-0E4D-4EBC-803C-1AF328CC6A05"
                  }
                ],
                "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
              }
            },
            {
              "name": "includeCustomerContacts",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "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": [
          "47CFBA7A-3DA1-4484-8414-ADED970BAEE7"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "ai-agent",
          "isFirstElement": false,
          "blockDefinitionId": "ai-agent",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Read the POD Result"
          },
          "tools": {},
          "position": {
            "x": 1157,
            "y": 219
          }
        },
        "flowElementId": "9B4710AC-2C23-4CE1-8CD2-C5F05C2C856B",
        "groupId": null,
        "id": "CA99DBE7-0E4D-4EBC-803C-1AF328CC6A05",
        "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": "B3BC3514-6CB4-427B-B975-0207B98DB7D5"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": "STRING"
              },
              "url": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "POD link",
                    "subPathSegments": [
                      {
                        "key": "downloadUrl",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "88C55E08-FEB1-4835-8629-0609F2B0056C"
                  }
                ],
                "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": "POD",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "systemPrompt": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "You read proofs of delivery (PODs) that a freight broker's or carrier's team saves to a SharePoint folder: delivery receipts and bills of lading signed or stamped by the receiver, scanned or photographed. Look at the attached file and reply with JSON only, with these fields:\nisPod: true if the file is a proof of delivery (a delivery receipt, or a BOL signed or stamped at delivery), otherwise false.\nloadNumber: the broker's load or order number printed or written on it (often labeled Load #, Load ID, Order # or Broker Ref), or empty text. 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.\nlookup: an object with three fields, orderNumber, proNumber and billOfLading. Fill only the first of these the document has, in this order: load number, then PRO number, then bill of lading number. Leave the other two as empty text.\nhasNumber: true when one of the lookup fields has a value, otherwise false.\ncarrier: the carrier's name, or empty text.\nconsignee: the receiver's name, or empty text.\nsigned: true only when a receiver's signature or receiving stamp is on the document.\nsignedBy: the printed name of the person who signed, or empty text.\ndeliveredAt: the delivery date and time as written, or empty text.\nexceptions: true when anything is noted as short, over, damaged, refused, rejected, missing or otherwise wrong with the freight. A plain \"subject to count\" or \"STC\" with nothing else written is not an exception.\nexceptionNotes: what is written about the exception, word for word with any piece counts, or 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": "POD file",
                "subPathSegments": [
                  {
                    "key": "name",
                    "optional": false
                  }
                ],
                "type": "TRIGGER_DATA",
                "value": "5FCC2C49-579E-4E0D-989D-EE0E886A28C3"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "\nSaved in SharePoint at: "
              },
              {
                "id": "RESULT",
                "label": "POD file",
                "subPathSegments": [
                  {
                    "key": "webUrl",
                    "optional": false
                  }
                ],
                "type": "TRIGGER_DATA",
                "value": "5FCC2C49-579E-4E0D-989D-EE0E886A28C3"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          }
        },
        "name": "Read the POD",
        "nextElementIds": [
          "A183E3C2-AB96-4ABB-895C-DE0D1778A867"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 123,
            "y": 219
          }
        },
        "flowElementId": "ED0A123A-7945-45FA-94D9-14A416701B13",
        "groupId": null,
        "id": "47CFBA7A-3DA1-4484-8414-ADED970BAEE7",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "3f245fe3-8847-4623-8e01-021a6fb36c85",
                "nestedOperation": null,
                "operation": "isTrue",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "McLeod match",
                      "subPathSegments": [
                        {
                          "key": "found",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "935F8BE3-061F-4498-98CD-D074EA51CF50"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "BOOLEAN",
                "values": []
              }
            ],
            "grouping": [
              "3f245fe3-8847-4623-8e01-021a6fb36c85"
            ]
          },
          "elseComponent": {
            "componentId": "8794ED00-4E49-4230-B86E-518B4DC5A39D",
            "componentType": "ELEMENT"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Load found",
          "storeResult": false,
          "thenComponent": {
            "componentId": "62D9012F-E771-4CA1-8F99-EC5E132BF340",
            "componentType": "ELEMENT"
          }
        },
        "name": "Load found?",
        "nextElementIds": [
          "8794ED00-4E49-4230-B86E-518B4DC5A39D",
          "62D9012F-E771-4CA1-8F99-EC5E132BF340"
        ],
        "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 billing Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 1157,
            "y": 550
          }
        },
        "flowElementId": "BE31DE8F-6A3F-4669-84ED-B293B9F0A138",
        "groupId": null,
        "id": "3786ECD2-5520-46C7-9A74-6943F69079D5",
        "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": "Billing note",
                    "subPathSegments": [
                      {
                        "key": "text",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "8794ED00-4E49-4230-B86E-518B4DC5A39D"
                  }
                ],
                "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": "BASIC",
                "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": "BASIC",
                "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": "Billing message",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Tell billing",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 828,
            "y": 389
          }
        },
        "flowElementId": "AAD54D62-914A-433A-8458-14F59E68D7A1",
        "groupId": null,
        "id": "01BA486E-C80F-4AA5-9383-0DE8B59FDD3B",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "f0fe4e9a-6b21-4d42-bf35-ca8b4e20b2d6",
                "nestedOperation": null,
                "operation": "isTrue",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "POD",
                      "subPathSegments": [
                        {
                          "key": "output",
                          "optional": false
                        },
                        {
                          "key": "signed",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "CA99DBE7-0E4D-4EBC-803C-1AF328CC6A05"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "BOOLEAN",
                "values": []
              },
              {
                "id": "cc11a3c0-1305-4741-9aa2-88663338d524",
                "nestedOperation": null,
                "operation": "isNotTrue",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "POD",
                      "subPathSegments": [
                        {
                          "key": "output",
                          "optional": false
                        },
                        {
                          "key": "exceptions",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "CA99DBE7-0E4D-4EBC-803C-1AF328CC6A05"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "BOOLEAN",
                "values": []
              }
            ],
            "grouping": [
              "f0fe4e9a-6b21-4d42-bf35-ca8b4e20b2d6",
              "AND",
              "cc11a3c0-1305-4741-9aa2-88663338d524"
            ]
          },
          "elseComponent": {
            "componentId": "8794ED00-4E49-4230-B86E-518B4DC5A39D",
            "componentType": "ELEMENT"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Signed and clean",
          "storeResult": false,
          "thenComponent": null
        },
        "name": "Signed and clean?",
        "nextElementIds": [
          "8794ED00-4E49-4230-B86E-518B4DC5A39D"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 811,
            "y": 219
          }
        },
        "flowElementId": "5499E630-C990-4FB5-B724-D3AF71C4206C",
        "groupId": null,
        "id": "A183E3C2-AB96-4ABB-895C-DE0D1778A867",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "c4537017-af8b-48ec-aee1-f27c6f29a837",
                "nestedOperation": null,
                "operation": "isTrue",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "POD",
                      "subPathSegments": [
                        {
                          "key": "output",
                          "optional": false
                        },
                        {
                          "key": "isPod",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "CA99DBE7-0E4D-4EBC-803C-1AF328CC6A05"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "BOOLEAN",
                "values": []
              },
              {
                "id": "3c397b22-dd1e-4d95-8b92-27ad453d42f4",
                "nestedOperation": null,
                "operation": "isTrue",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "POD",
                      "subPathSegments": [
                        {
                          "key": "output",
                          "optional": false
                        },
                        {
                          "key": "hasNumber",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "CA99DBE7-0E4D-4EBC-803C-1AF328CC6A05"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "BOOLEAN",
                "values": []
              }
            ],
            "grouping": [
              "c4537017-af8b-48ec-aee1-f27c6f29a837",
              "AND",
              "3c397b22-dd1e-4d95-8b92-27ad453d42f4"
            ]
          },
          "elseComponent": {
            "componentId": "8794ED00-4E49-4230-B86E-518B4DC5A39D",
            "componentType": "ELEMENT"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "POD with a number",
          "storeResult": false,
          "thenComponent": {
            "componentId": "935F8BE3-061F-4498-98CD-D074EA51CF50",
            "componentType": "ELEMENT"
          }
        },
        "name": "POD with a load number?",
        "nextElementIds": [
          "935F8BE3-061F-4498-98CD-D074EA51CF50",
          "8794ED00-4E49-4230-B86E-518B4DC5A39D"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "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 the POD on the load Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::mcleod-loadmaster:::uploadDocument",
          "legacyElementId": null,
          "methodName": "uploadDocument",
          "position": {
            "x": 110,
            "y": 380
          }
        },
        "flowElementId": "0931DB73-D70B-440C-BB91-3451FB2D3F59",
        "groupId": null,
        "id": "62D9012F-E771-4CA1-8F99-EC5E132BF340",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "orderId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "McLeod match",
                    "subPathSegments": [
                      {
                        "key": "load",
                        "optional": false
                      },
                      {
                        "key": "orderId",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "935F8BE3-061F-4498-98CD-D074EA51CF50"
                  }
                ],
                "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": "PLACEHOLDER_DATA",
                    "label": "POD document type",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "POD document type"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "fileUrl",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "POD link",
                    "subPathSegments": [
                      {
                        "key": "downloadUrl",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "88C55E08-FEB1-4835-8629-0609F2B0056C"
                  }
                ],
                "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 POD",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "mcleod-loadmaster",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "File the POD on the load",
        "nextElementIds": [
          "9D17DE74-97B1-46C4-B9B4-B11D945ACB23"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 828,
            "y": 49
          }
        },
        "flowElementId": "03B5A698-82DF-4993-8FE8-5D35EC865CDB",
        "groupId": null,
        "id": "65C5B227-D69D-4147-AC62-BCA184A8695B",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "2634f28b-173c-4cb1-b2c2-921aaa465f0a",
                "nestedOperation": null,
                "operation": "isTrue",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "File type",
                      "subPathSegments": [
                        {
                          "key": "readable",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "B3BC3514-6CB4-427B-B975-0207B98DB7D5"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "BOOLEAN",
                "values": []
              }
            ],
            "grouping": [
              "2634f28b-173c-4cb1-b2c2-921aaa465f0a"
            ]
          },
          "elseComponent": {
            "componentId": "8794ED00-4E49-4230-B86E-518B4DC5A39D",
            "componentType": "ELEMENT"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "PDF or image",
          "storeResult": false,
          "thenComponent": {
            "componentId": "88C55E08-FEB1-4835-8629-0609F2B0056C",
            "componentType": "ELEMENT"
          }
        },
        "name": "PDF or image?",
        "nextElementIds": [
          "88C55E08-FEB1-4835-8629-0609F2B0056C",
          "8794ED00-4E49-4230-B86E-518B4DC5A39D"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      }
    ],
    "firstElementId": "5FCC2C49-579E-4E0D-989D-EE0E886A28C3",
    "groups": [],
    "id": "A7E4F6DD-85C2-4CF8-AFEF-C79CEC464C63",
    "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": "The Anthropic key the AI agent reads PODs with.",
          "error": null,
          "name": "Anthropic key",
          "type": "API_KEY",
          "value": null
        },
        {
          "description": "The McLeod Imaging document type code your team files PODs under.",
          "error": null,
          "name": "POD document type",
          "type": "STRING",
          "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-29T02:51:29.990Z"
}
