{
  "elementsLearnedData": [],
  "elementsTestData": [],
  "flow": {
    "id": "E9AB1DD7-C76A-4DAD-AA46-9418C2C9DE3D",
    "name": "Parseur: BOL filed on the Turvo load"
  },
  "flowVersion": {
    "clientMetadata": {
      "viewport": {
        "x": -69.84308131241085,
        "y": 0.05706134094151594,
        "zoom": 1
      },
      "autoSave": false,
      "descriptions": {
        "flow": "When Parseur reads a BOL, finds the Turvo load by BOL number or PO, attaches the BOL to the load with its piece count and weight, and tells ops in Slack when the shipper or consignee on the BOL does not match the load's stops.",
        "initialData": "",
        "initialDataFields": {}
      }
    },
    "description": "When Parseur reads a BOL, finds the Turvo load by BOL number or PO, attaches the BOL to the load with its piece count and weight, and tells ops in Slack when the shipper or consignee on the BOL does not match the load's stops.",
    "elements": [
      {
        "clientMetadata": {
          "notes": "Finds a load by its load number or a reference on it (PO, BOL, PRO, container, route, truck or \"Other\" number) and returns the first match in full. Turvo searches only active loads created in the last 180 days. Returns found: false instead of failing when nothing matches.",
          "elementId": "EXTENSION:::SHARED:::default:::turvo:::findLoadByNumber",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Find the load by PO number Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::turvo:::findLoadByNumber",
          "legacyElementId": null,
          "methodName": "findLoadByNumber",
          "position": {
            "x": 1182,
            "y": 470
          }
        },
        "flowElementId": "0A10D738-B2B4-482D-9A8A-7E434543BF71",
        "groupId": null,
        "id": "12459A49-0AC9-45FC-8539-7D946C9D5C09",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "loadNumber",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "poNumber",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "BOL",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "firstPo",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "DD9B14B7-8983-44D6-8EDB-0589E5C6D7F2"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "bolNumber",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "proNumber",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "containerNumber",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "routeNumber",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "truckNumber",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "otherReference",
              "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": "BD86B5CA-8704-45BC-A7B0-619535E6FC06",
          "packageId": "default",
          "resultAlias": "Load by PO",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "turvo",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Find the load by PO number",
        "nextElementIds": [
          "05E75071-A70F-4245-8309-540C72C08C0B"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Attaches a file to a load as a POD, BOL, rate confirmation, carrier invoice or other document. Turvo downloads the file from the URL you give, so it must be reachable from the internet. A FlowRunner file link works.",
          "elementId": "EXTENSION:::SHARED:::default:::turvo:::uploadDocument",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Attach the BOL to the load Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::turvo:::uploadDocument",
          "legacyElementId": null,
          "methodName": "uploadDocument",
          "position": {
            "x": 110,
            "y": 470
          }
        },
        "flowElementId": "5C131AF3-AE62-4E9E-9950-48783370E1C8",
        "groupId": null,
        "id": "ED74A800-0430-4E77-8050-14E85D3A5B61",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "loadId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "BOL check",
                    "subPathSegments": [
                      {
                        "key": "loadId",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "CBDE9840-2B57-4B6A-832D-0B96377A583F"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "fileUrl",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Parsed BOL",
                    "subPathSegments": [
                      {
                        "key": "parsedData",
                        "optional": false
                      },
                      {
                        "key": "OriginalDocument",
                        "optional": false
                      },
                      {
                        "key": "url",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "F7E47082-0692-4AD2-BD1D-12E6E402847E"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "documentType",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "3005"
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "name",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "BOL "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "BOL",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "bolNumber",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "DD9B14B7-8983-44D6-8EDB-0589E5C6D7F2"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "description",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "BOL check",
                    "subPathSegments": [
                      {
                        "key": "summary",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "CBDE9840-2B57-4B6A-832D-0B96377A583F"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "notes",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "documentStatus",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "carrierOrderId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "invoiceNumber",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "invoiceAmount",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "invoiceDate",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "dueDate",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "standalone",
              "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": "uploadDocument",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Attached BOL",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "turvo",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Attach the BOL to the load",
        "nextElementIds": [
          "07E99153-522C-4103-ACAD-0869BA032A32"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 121,
            "y": 649
          }
        },
        "flowElementId": "E728A10B-CD4E-4114-B79C-B100B0A0B887",
        "groupId": null,
        "id": "07E99153-522C-4103-ACAD-0869BA032A32",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "5e16a055-e7c7-4726-828e-b4cad8de37eb",
                "nestedOperation": null,
                "operation": "isTrue",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "BOL check",
                      "subPathSegments": [
                        {
                          "key": "matches",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "CBDE9840-2B57-4B6A-832D-0B96377A583F"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "BOOLEAN",
                "values": []
              }
            ],
            "grouping": [
              "5e16a055-e7c7-4726-828e-b4cad8de37eb"
            ]
          },
          "elseComponent": {
            "componentId": "6E905952-67AE-4D33-8E75-5E5C78F0A0B0",
            "componentType": "ELEMENT"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "BOL matches",
          "storeResult": false,
          "thenComponent": null
        },
        "name": "BOL matches the load?",
        "nextElementIds": [
          "6E905952-67AE-4D33-8E75-5E5C78F0A0B0"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 847,
            "y": 479
          }
        },
        "flowElementId": "3D79BDCC-E2DA-4C74-80F4-2442046516CF",
        "groupId": null,
        "id": "05E75071-A70F-4245-8309-540C72C08C0B",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "2af07c77-d0ef-4d77-ac53-5110fd85149e",
                "nestedOperation": null,
                "operation": "isTrue",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Load by PO",
                      "subPathSegments": [
                        {
                          "key": "found",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "12459A49-0AC9-45FC-8539-7D946C9D5C09"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "BOOLEAN",
                "values": []
              }
            ],
            "grouping": [
              "2af07c77-d0ef-4d77-ac53-5110fd85149e"
            ]
          },
          "elseComponent": {
            "componentId": "83889485-E065-4033-87E5-F42250D869A6",
            "componentType": "ELEMENT"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Found by PO",
          "storeResult": false,
          "thenComponent": {
            "componentId": "CBDE9840-2B57-4B6A-832D-0B96377A583F",
            "componentType": "ELEMENT"
          }
        },
        "name": "Found by PO number?",
        "nextElementIds": [
          "83889485-E065-4033-87E5-F42250D869A6",
          "CBDE9840-2B57-4B6A-832D-0B96377A583F"
        ],
        "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": "Flag the BOL to ops Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 488,
            "y": 640
          }
        },
        "flowElementId": "5E11B35A-E3B5-48E3-AF16-7227D9E5EFCA",
        "groupId": null,
        "id": "6E905952-67AE-4D33-8E75-5E5C78F0A0B0",
        "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": "BOL check",
                    "subPathSegments": [
                      {
                        "key": "text",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "CBDE9840-2B57-4B6A-832D-0B96377A583F"
                  }
                ],
                "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": "BOL flag",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Flag the BOL to ops",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Triggered when a document is processed in Parseur (realtime webhook)",
          "elementId": "EXTENSION:::SHARED:::default:::parseur:::onDocumentProcessedRealtime",
          "isFirstElement": true,
          "blockDefinitionId": "api-service-trigger",
          "newElementId": "EXTENSION:::SHARED:::default:::parseur:::onDocumentProcessedRealtime",
          "legacyElementId": "JS###v1###ParseurService###onDocumentProcessedRealtime",
          "methodName": "onDocumentProcessedRealtime",
          "position": {
            "x": 124,
            "y": 40
          }
        },
        "flowElementId": "053CF59A-49D8-432B-A688-A51B8F32D8F3",
        "groupId": null,
        "id": "F7E47082-0692-4AD2-BD1D-12E6E402847E",
        "metaInfo": {
          "callbackUrl": null,
          "clientValidationState": {
            "errorMessage": "Block: 'BOL parsed in Parseur', Error: Mailbox is required",
            "valid": false
          },
          "condition": null,
          "connectionId": null,
          "eventName": "onDocumentProcessedRealtime",
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": null
          },
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Parsed BOL",
          "scope": "SINGLE_APP",
          "serviceId": "parseur",
          "slaConditions": [],
          "staticData": {},
          "storeResult": true,
          "subtype": "REALTIME",
          "type": "CUSTOM"
        },
        "name": "BOL parsed in Parseur",
        "nextElementIds": [
          "DD9B14B7-8983-44D6-8EDB-0589E5C6D7F2"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "TRIGGER"
      },
      {
        "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": "Send unmatched BOL to ops Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 460,
            "y": 340
          }
        },
        "flowElementId": "95D6807E-26F5-447F-99A8-D47C332B4C0D",
        "groupId": null,
        "id": "83889485-E065-4033-87E5-F42250D869A6",
        "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": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "BOL "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "BOL",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "bolNumber",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "DD9B14B7-8983-44D6-8EDB-0589E5C6D7F2"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " from "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "BOL",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "shipperName",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "DD9B14B7-8983-44D6-8EDB-0589E5C6D7F2"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " to "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "BOL",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "consigneeName",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "DD9B14B7-8983-44D6-8EDB-0589E5C6D7F2"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " came in, but no Turvo load has that BOL number or PO ("
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "BOL",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "poNumbers",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "DD9B14B7-8983-44D6-8EDB-0589E5C6D7F2"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "). <"
                  },
                  {
                    "id": "RESULT",
                    "label": "Parsed BOL",
                    "subPathSegments": [
                      {
                        "key": "parsedData",
                        "optional": false
                      },
                      {
                        "key": "OriginalDocument",
                        "optional": false
                      },
                      {
                        "key": "url",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "F7E47082-0692-4AD2-BD1D-12E6E402847E"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "|Open the BOL> and file it by hand."
                  }
                ],
                "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": "Unmatched BOL note",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Send unmatched BOL to ops",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "ai-agent",
          "isFirstElement": false,
          "blockDefinitionId": "ai-agent",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Read the parsed BOL Result"
          },
          "tools": {},
          "position": {
            "x": 485,
            "y": 49
          }
        },
        "flowElementId": "90B31CD5-D2CD-464A-87E6-F838CD8B5F66",
        "groupId": null,
        "id": "DD9B14B7-8983-44D6-8EDB-0589E5C6D7F2",
        "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": [],
          "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": "BOL",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "systemPrompt": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "You read bills of lading (BOLs) that Parseur has already parsed. The field names depend on how the Parseur mailbox is set up, so read them by meaning. Reply with JSON only, with these fields:\nbolNumber: the BOL number\nproNumber: the PRO number, or empty text\npoNumbers: every PO number on the BOL, as one line of text separated by commas\nfirstPo: the first PO number on the BOL, or empty text\nshipperName, shipperCity, shipperState: the shipper's name, city and two-letter state\nconsigneeName, consigneeCity, consigneeState: the consignee's name, city and two-letter state\npieces: the total piece or handling unit count as a number\nweight: the total weight in pounds as a number\nnotes: any exception written on the BOL (shortage, damage, a changed seal number) in one sentence, or empty text if there is none\nWrite numbers without units or commas. Use empty text for anything you cannot find. Never guess a BOL or PO number."
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "tools": [],
          "type": "AI_AGENT",
          "userPrompt": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "BOL parsed by Parseur, document "
              },
              {
                "id": "RESULT",
                "label": "Parsed BOL",
                "subPathSegments": [
                  {
                    "key": "documentId",
                    "optional": false
                  }
                ],
                "type": "TRIGGER_DATA",
                "value": "F7E47082-0692-4AD2-BD1D-12E6E402847E"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": ":\n"
              },
              {
                "id": "RESULT",
                "label": "Parsed BOL",
                "subPathSegments": [
                  {
                    "key": "parsedData",
                    "optional": false
                  }
                ],
                "type": "TRIGGER_DATA",
                "value": "F7E47082-0692-4AD2-BD1D-12E6E402847E"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          }
        },
        "name": "Read the parsed BOL",
        "nextElementIds": [
          "4EFFFA18-D3DD-45B5-BE76-4A8DA218D9DB"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Finds a load by its load number or a reference on it (PO, BOL, PRO, container, route, truck or \"Other\" number) and returns the first match in full. Turvo searches only active loads created in the last 180 days. Returns found: false instead of failing when nothing matches.",
          "elementId": "EXTENSION:::SHARED:::default:::turvo:::findLoadByNumber",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Find the load by BOL number Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::turvo:::findLoadByNumber",
          "legacyElementId": null,
          "methodName": "findLoadByNumber",
          "position": {
            "x": 824,
            "y": 40
          }
        },
        "flowElementId": "CF306243-ED8E-4EE9-8E32-96221BE7839C",
        "groupId": null,
        "id": "4EFFFA18-D3DD-45B5-BE76-4A8DA218D9DB",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "loadNumber",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "poNumber",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "bolNumber",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "BOL",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "bolNumber",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "DD9B14B7-8983-44D6-8EDB-0589E5C6D7F2"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "proNumber",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "containerNumber",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "routeNumber",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "truckNumber",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "otherReference",
              "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": "BD86B5CA-8704-45BC-A7B0-619535E6FC06",
          "packageId": "default",
          "resultAlias": "Load by BOL",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "turvo",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Find the load by BOL number",
        "nextElementIds": [
          "E07A6A82-1EC0-4C7B-8DFF-7E45D5AA76A8"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 1197,
            "y": 49
          }
        },
        "flowElementId": "17D81795-6420-44FA-A4B4-7A3AD3F679C6",
        "groupId": null,
        "id": "E07A6A82-1EC0-4C7B-8DFF-7E45D5AA76A8",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "468240d8-f4be-4dbf-9db8-97f50458002a",
                "nestedOperation": null,
                "operation": "isTrue",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Load by BOL",
                      "subPathSegments": [
                        {
                          "key": "found",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "4EFFFA18-D3DD-45B5-BE76-4A8DA218D9DB"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "BOOLEAN",
                "values": []
              }
            ],
            "grouping": [
              "468240d8-f4be-4dbf-9db8-97f50458002a"
            ]
          },
          "elseComponent": {
            "componentId": "12459A49-0AC9-45FC-8539-7D946C9D5C09",
            "componentType": "ELEMENT"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Found by BOL",
          "storeResult": false,
          "thenComponent": {
            "componentId": "CBDE9840-2B57-4B6A-832D-0B96377A583F",
            "componentType": "ELEMENT"
          }
        },
        "name": "Found by BOL number?",
        "nextElementIds": [
          "12459A49-0AC9-45FC-8539-7D946C9D5C09",
          "CBDE9840-2B57-4B6A-832D-0B96377A583F"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Compare the BOL with the load Result"
          },
          "position": {
            "x": 451,
            "y": 479
          }
        },
        "flowElementId": "F9E07F90-C924-4A8B-9CCD-77A41E175626",
        "groupId": null,
        "id": "CBDE9840-2B57-4B6A-832D-0B96377A583F",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "bol",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "BOL",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "DD9B14B7-8983-44D6-8EDB-0589E5C6D7F2"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "byBol",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Load by BOL",
                    "subPathSegments": null,
                    "type": "ELEMENT_LINK",
                    "value": "4EFFFA18-D3DD-45B5-BE76-4A8DA218D9DB"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "byPo",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Load by PO",
                    "subPathSegments": null,
                    "type": "ELEMENT_LINK",
                    "value": "12459A49-0AC9-45FC-8539-7D946C9D5C09"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "docUrl",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Parsed BOL",
                    "subPathSegments": [
                      {
                        "key": "parsedData",
                        "optional": false
                      },
                      {
                        "key": "OriginalDocument",
                        "optional": false
                      },
                      {
                        "key": "url",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "F7E47082-0692-4AD2-BD1D-12E6E402847E"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const load = byBol && byBol.found ? byBol.load : (byPo && byPo.found ? byPo.load : null);\nif (!load) throw new Error('No matched load to compare the BOL with');\nconst b = bol || {};\nconst stops = Array.isArray(load.stops) ? load.stops : [];\nconst pickup = stops.find((s) => s.type === 'Pickup') || stops[0] || {};\nconst delivery = [...stops].reverse().find((s) => s.type === 'Delivery') || stops[stops.length - 1] || {};\nconst norm = (s) => String(s || '').toLowerCase().replace(/[^a-z]/g, '');\nconst place = (city, state) => [city, state].filter(Boolean).join(', ');\nconst differs = (city, state, stop) =>\n  city && stop.city && (norm(city) !== norm(stop.city) || (state && stop.state && norm(state) !== norm(stop.state)));\nconst problems = [];\nif (differs(b.shipperCity, b.shipperState, pickup)) {\n  problems.push(`Shipper: the BOL says ${b.shipperName || 'the shipper'} in ${place(b.shipperCity, b.shipperState)}; the Turvo pickup is ${pickup.name || 'a stop'} in ${place(pickup.city, pickup.state)}`);\n}\nif (differs(b.consigneeCity, b.consigneeState, delivery)) {\n  problems.push(`Consignee: the BOL says ${b.consigneeName || 'the consignee'} in ${place(b.consigneeCity, b.consigneeState)}; the Turvo delivery is ${delivery.name || 'a stop'} in ${place(delivery.city, delivery.state)}`);\n}\nif (b.notes) problems.push(`Noted on the BOL: ${b.notes}`);\nconst loadNumber = load.customId || load.loadNumber;\nconst summary = [\n  `BOL ${b.bolNumber || ''}`.trim(),\n  b.pieces !== '' && b.pieces != null ? `${b.pieces} pieces` : null,\n  b.weight !== '' && b.weight != null ? `${b.weight} lb` : null,\n  b.poNumbers ? `PO ${b.poNumbers}` : null,\n].filter(Boolean).join(', ');\nconst lines = [\n  `BOL ${b.bolNumber || ''} is attached to load ${loadNumber} in Turvo, but it needs a look:`,\n  ...problems.map((p) => `- ${p}`),\n  `On the BOL: ${summary}`,\n  docUrl ? `<${docUrl}|Open the BOL>` : null,\n].filter(Boolean);\nreturn {\n  loadId: load.id,\n  loadNumber,\n  matches: problems.length === 0,\n  problems: problems.join('; '),\n  summary,\n  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": "BOL check",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Compare the BOL with the load",
        "nextElementIds": [
          "ED74A800-0430-4E77-8050-14E85D3A5B61"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "error-handler",
          "isFirstElement": false,
          "blockDefinitionId": "error-handler",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Lookup failed Result"
          },
          "position": {
            "x": 853,
            "y": 219
          }
        },
        "flowElementId": "73FC4E28-4316-4259-AEEE-D7BB8CCEC8CA",
        "groupId": null,
        "id": "BD86B5CA-8704-45BC-A7B0-619535E6FC06",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Lookup error",
          "saveToVariable": null,
          "storeResult": true
        },
        "name": "Lookup failed",
        "nextElementIds": [
          "83889485-E065-4033-87E5-F42250D869A6"
        ],
        "nextGroupIds": [],
        "type": "ERROR_HANDLER"
      }
    ],
    "firstElementId": "F7E47082-0692-4AD2-BD1D-12E6E402847E",
    "groups": [],
    "id": "25B244C6-A9F1-4592-9AD3-09C4B50FBD4D",
    "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": "Your Anthropic API key for the step that reads the BOL.",
          "error": null,
          "name": "Anthropic key",
          "type": "API_KEY",
          "value": null
        }
      ],
      "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-19T06:34:23.118Z"
}
