{
  "elementsLearnedData": [],
  "elementsTestData": [],
  "flow": {
    "id": "7D13B377-E007-47A6-9F3F-247A47CADE7F",
    "name": "Dropbox: POD sent to the customer by link"
  },
  "flowVersion": {
    "clientMetadata": {
      "viewport": {
        "x": -66.72210672210672,
        "y": 1.191961191961191,
        "zoom": 0.97
      },
      "autoSave": false,
      "descriptions": {
        "flow": "When a POD lands in a load folder in Dropbox, finds the load in McLeod LoadMaster, reads the POD, and emails the customer an expiring Dropbox link to it. An unsigned POD or one with a shortage, damage or refusal noted goes to the billing lead in Slack first.",
        "initialData": "",
        "initialDataFields": {}
      }
    },
    "description": "When a POD lands in a load folder in Dropbox, finds the load in McLeod LoadMaster, reads the POD, and emails the customer an expiring Dropbox link to it. An unsigned POD or one with a shortage, damage or refusal noted goes to the billing lead in Slack first.",
    "elements": [
      {
        "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 there's no contact Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 496,
            "y": 680
          }
        },
        "flowElementId": "C23C8777-6367-43A5-A566-9E2473A70DC8",
        "groupId": null,
        "id": "ABEA5A84-DD37-4D7F-A819-E633B8093739",
        "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": "POD email",
                    "subPathSegments": [
                      {
                        "key": "noContactText",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "2113CD4B-E38E-4FBC-BA43-65E4584DFD3B"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "threadId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sendAsBot",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botName",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botIcon",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "replyBroadcast",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "imageURL",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "blocks",
              "type": "COMPLEX_LIST",
              "value": []
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "sendMessageToChannel",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "No contact message",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Tell billing there's no contact",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 870,
            "y": 49
          }
        },
        "flowElementId": "B1BF21D7-4F4E-4296-BDED-030DFF3FE57A",
        "groupId": null,
        "id": "822F6E5C-598A-449F-9733-4967B5972FB7",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "5581245b-24c8-4071-878d-eff7f8cb7605",
                "nestedOperation": null,
                "operation": "isTrue",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "File check",
                      "subPathSegments": [
                        {
                          "key": "isPod",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "34847960-AF88-4156-8066-144D80C213FD"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "BOOLEAN",
                "values": []
              }
            ],
            "grouping": [
              "5581245b-24c8-4071-878d-eff7f8cb7605"
            ]
          },
          "elseComponent": null,
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "POD in a load folder",
          "storeResult": false,
          "thenComponent": {
            "componentId": "0A41FDE7-D91A-4B0A-BCCD-F373DF42B887",
            "componentType": "ELEMENT"
          }
        },
        "name": "POD in a load folder?",
        "nextElementIds": [
          "0A41FDE7-D91A-4B0A-BCCD-F373DF42B887"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 1232,
            "y": 219
          }
        },
        "flowElementId": "384D1527-37B5-462B-A553-4DE3513E150D",
        "groupId": null,
        "id": "3ED90EF1-8FA4-4D89-8D1A-1223AAB1ABE3",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "e39edaf9-9201-48b6-afaf-5b74b2f086bf",
                "nestedOperation": null,
                "operation": "isTrue",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "McLeod match",
                      "subPathSegments": [
                        {
                          "key": "found",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "0A41FDE7-D91A-4B0A-BCCD-F373DF42B887"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "BOOLEAN",
                "values": []
              }
            ],
            "grouping": [
              "e39edaf9-9201-48b6-afaf-5b74b2f086bf"
            ]
          },
          "elseComponent": null,
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Load found",
          "storeResult": false,
          "thenComponent": {
            "componentId": "F37E1E46-D92F-43C3-AB65-EEF57A25C5A6",
            "componentType": "ELEMENT"
          }
        },
        "name": "Load found?",
        "nextElementIds": [
          "F37E1E46-D92F-43C3-AB65-EEF57A25C5A6"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "notes": "Downloads a file from Dropbox and stores it in the FlowRunner file storage. Returns the public FlowRunner URL of the saved copy, which can be passed to downstream actions or AI agent tools that operate on file URLs.",
          "elementId": "EXTENSION:::SHARED:::default:::dropbox-service:::downloadFile",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Download the POD Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::dropbox-service:::downloadFile",
          "legacyElementId": "JS###v1###DropboxService###downloadFile",
          "methodName": "downloadFile",
          "position": {
            "x": 872,
            "y": 210
          }
        },
        "flowElementId": "36BA9650-2633-489B-B4EE-687BFD0E8BB2",
        "groupId": null,
        "id": "F37E1E46-D92F-43C3-AB65-EEF57A25C5A6",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "path",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "New file",
                    "subPathSegments": [
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "FCF7C295-1AC9-462A-B7E2-308C51010C4C"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "targetFileName",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": "Block: 'Download the POD', 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 file",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "dropbox-service",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Download the POD",
        "nextElementIds": [
          "B44B09F0-289D-4D98-A271-140A36A8C469"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "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": "Ask the billing lead Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 872,
            "y": 380
          }
        },
        "flowElementId": "EFFB45A7-4082-4E2B-AD5C-BDDBF4EBC48D",
        "groupId": null,
        "id": "60056FA9-7B6C-4790-A237-329577127AED",
        "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": "POD email",
                    "subPathSegments": [
                      {
                        "key": "askText",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "2113CD4B-E38E-4FBC-BA43-65E4584DFD3B"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "threadId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sendAsBot",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botName",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botIcon",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "replyBroadcast",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "imageURL",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "blocks",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "POD email",
                    "subPathSegments": [
                      {
                        "key": "askBlocks",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "2113CD4B-E38E-4FBC-BA43-65E4584DFD3B"
                  }
                ],
                "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": "sendMessageToChannel",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Question to billing lead",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Ask the billing lead",
        "nextElementIds": [
          "79C7B775-0635-49C2-B648-26E7257336E6"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 1232,
            "y": 559
          }
        },
        "flowElementId": "18D7BFB7-79C0-4D74-880C-37C38A65DD42",
        "groupId": null,
        "id": "CE6F73BB-1B8C-443C-8AF3-4FFCB90222FA",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "84ad0f5f-5458-4269-953c-21eb4edc2dd1",
                "nestedOperation": null,
                "operation": "equal",
                "property": {
                  "expression": [
                    {
                      "id": "RESULT",
                      "label": "Billing decision",
                      "subPathSegments": [
                        {
                          "key": "decision",
                          "optional": false
                        }
                      ],
                      "type": "TRIGGER_DATA",
                      "value": "79C7B775-0635-49C2-B648-26E7257336E6"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "STRING",
                "values": [
                  {
                    "expression": [
                      {
                        "id": "TEXT",
                        "label": null,
                        "type": "INPUT",
                        "value": "send"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                ]
              }
            ],
            "grouping": [
              "84ad0f5f-5458-4269-953c-21eb4edc2dd1"
            ]
          },
          "elseComponent": null,
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Send it",
          "storeResult": false,
          "thenComponent": {
            "componentId": "04612EF2-91D6-4610-A885-73A7EC18DF1F",
            "componentType": "ELEMENT"
          }
        },
        "name": "Send it?",
        "nextElementIds": [
          "04612EF2-91D6-4610-A885-73A7EC18DF1F"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "elementId": "external-callback",
          "isFirstElement": false,
          "blockDefinitionId": "external-callback",
          "position": {
            "x": 1190,
            "y": 389
          }
        },
        "flowElementId": "00A31A66-3D95-4C49-82E4-250E06F66A30",
        "groupId": null,
        "id": "79C7B775-0635-49C2-B648-26E7257336E6",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": null,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": null
          },
          "onFailElemId": null,
          "resultAlias": "Billing decision",
          "slaConditions": [],
          "storeResult": true,
          "type": "CALLBACK"
        },
        "name": "Wait for the billing lead's answer",
        "nextElementIds": [
          "CE6F73BB-1B8C-443C-8AF3-4FFCB90222FA"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "TRIGGER"
      },
      {
        "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": 1220,
            "y": 40
          }
        },
        "flowElementId": "A8C22629-949B-469E-A607-3A753C70D9C4",
        "groupId": null,
        "id": "0A41FDE7-D91A-4B0A-BCCD-F373DF42B887",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "loadNumber",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "File check",
                    "subPathSegments": [
                      {
                        "key": "loadNumber",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "34847960-AF88-4156-8066-144D80C213FD"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "proNumber",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "billOfLading",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "consigneeReference",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "referenceNumber",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "findLoadByNumber",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "McLeod match",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "mcleod-loadmaster",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Find the load in McLeod",
        "nextElementIds": [
          "3ED90EF1-8FA4-4D89-8D1A-1223AAB1ABE3"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 516,
            "y": 389
          }
        },
        "flowElementId": "93E4865F-BECD-406B-AAED-52FF6F57931E",
        "groupId": null,
        "id": "FBAE2736-BD8A-4A02-AEC7-D74B93A26640",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "f0f1cf3f-0e6b-4d2a-8e9c-724b8da207cc",
                "nestedOperation": null,
                "operation": "isTrue",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "POD email",
                      "subPathSegments": [
                        {
                          "key": "clean",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "2113CD4B-E38E-4FBC-BA43-65E4584DFD3B"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "BOOLEAN",
                "values": []
              }
            ],
            "grouping": [
              "f0f1cf3f-0e6b-4d2a-8e9c-724b8da207cc"
            ]
          },
          "elseComponent": {
            "componentId": "60056FA9-7B6C-4790-A237-329577127AED",
            "componentType": "ELEMENT"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "POD clean",
          "storeResult": false,
          "thenComponent": {
            "componentId": "04612EF2-91D6-4610-A885-73A7EC18DF1F",
            "componentType": "ELEMENT"
          }
        },
        "name": "POD signed and clean?",
        "nextElementIds": [
          "60056FA9-7B6C-4790-A237-329577127AED",
          "04612EF2-91D6-4610-A885-73A7EC18DF1F"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Prepare the email Result"
          },
          "position": {
            "x": 153,
            "y": 389
          }
        },
        "flowElementId": "4EBACC38-5D7C-4272-8BD1-95D8E9257262",
        "groupId": null,
        "id": "2113CD4B-E38E-4FBC-BA43-65E4584DFD3B",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": "Block: 'Prepare the email', Error: The placeholder \"Email signature\" has no value",
            "valid": false
          },
          "codeArguments": [
            {
              "name": "match",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "McLeod match",
                    "subPathSegments": null,
                    "type": "ELEMENT_LINK",
                    "value": "0A41FDE7-D91A-4B0A-BCCD-F373DF42B887"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "pod",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "POD reading",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "B44B09F0-289D-4D98-A271-140A36A8C469"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "rows",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Customer contact",
                    "subPathSegments": null,
                    "type": "ELEMENT_LINK",
                    "value": "8F690DE8-BBBB-4EBC-94A4-AB22420D8CEC"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "linkDays",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Link days",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Link days"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "signature",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Email signature",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Email signature"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "answerLink",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Billing answer link",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Billing answer link"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "executionId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "EXECUTION_ID",
                    "label": null,
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_PATH",
                    "value": "executionContext.executionId",
                    "valueSegments": [
                      {
                        "key": "executionContext",
                        "optional": false
                      },
                      {
                        "key": "executionId",
                        "optional": false
                      }
                    ]
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "fileName",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "New file",
                    "subPathSegments": [
                      {
                        "key": "name",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "FCF7C295-1AC9-462A-B7E2-308C51010C4C"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "filePath",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "New file",
                    "subPathSegments": [
                      {
                        "key": "path_display",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "FCF7C295-1AC9-462A-B7E2-308C51010C4C"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const load = match && match.load ? match.load : {};\nconst reading = pod && typeof pod === 'object' ? pod : {};\nconst list = Array.isArray(rows) ? rows : [];\nconst row = list.length ? (list[0].rowData || list[0]) : {};\nconst email = String(row['POD email'] || row['Email'] || '').trim();\nconst orderId = String(load.orderId || '');\nconst customerId = String((load.customer && load.customer.id) || '');\nconst customer = String((load.customer && load.customer.name) || customerId || 'the customer');\nconst refs = [\n  load.poNumber ? `PO ${load.poNumber}` : '',\n  load.billOfLading ? `BOL ${load.billOfLading}` : '',\n  load.consigneeReference ? `ref ${load.consigneeReference}` : '',\n].filter(Boolean).join(', ');\nconst stops = Array.isArray(load.stops) ? load.stops : [];\nconst last = stops[stops.length - 1] || {};\nconst place = [last.locationName, [last.city, last.state].filter(Boolean).join(', ')].filter(Boolean).join(', ');\nconst exceptions = String(reading.exceptions || '').trim();\nconst clean = reading.isPod !== false && reading.signed === true && !exceptions;\nconst days = Number(linkDays) || 0;\nconst expires = days > 0 ? new Date(Date.now() + days * 86400000) : null;\nconst expiresAt = expires ? expires.toISOString().replace(/\\.\\d{3}Z$/, 'Z') : '';\nconst expiresText = expires ? expires.toLocaleDateString('en-US', { month: 'long', day: 'numeric', year: 'numeric', timeZone: 'UTC' }) : '';\nconst esc = (s) => String(s).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;');\nconst subject = `POD for load ${orderId}${load.poNumber ? `, PO ${load.poNumber}` : ''}`;\nconst bodyStart = `<p>Hello,</p><p>The signed proof of delivery for load ${esc(orderId)}${refs ? ` (${esc(refs)})` : ''}${place ? `, delivered to ${esc(place)}` : ''}, is ready for you.</p>`;\nconst bodyEnd = `${expiresText ? `<p>The link works until ${esc(expiresText)}.</p>` : ''}<p>${esc(signature || '').replace(/\\n/g, '<br>')}</p>`;\nconst folderParts = String(filePath || '').split('/').slice(0, -1);\nconst fileLink = 'https://www.dropbox.com/home' + folderParts.map(encodeURIComponent).join('/') + '?preview=' + encodeURIComponent(fileName || '');\nconst link = (decision) => `${answerLink}?execution=${encodeURIComponent(executionId)}&decision=${decision}`;\nconst button = (text, url, primary) => Object.assign({ type: 'button', text: { type: 'plain_text', text }, url }, primary ? { style: 'primary' } : {});\nconst askText = `POD for load ${orderId} needs a look before it goes to ${customer}`;\nconst lines = [\n  `*${askText}*`,\n  reading.isPod === false ? 'This file may not be a POD.' : '',\n  reading.signed === true ? `Signed: yes${reading.signedAt ? `, ${reading.signedAt}` : ''}` : 'Signed: *no signature on the POD*',\n  exceptions ? `Noted on the POD: ${exceptions}` : '',\n  email ? `It goes to ${email} if you send it.` : `${customer} has no POD email in the contacts sheet yet.`,\n  `<${fileLink}|Open the POD in Dropbox>`,\n].filter(Boolean);\nconst askBlocks = [\n  { type: 'section', text: { type: 'mrkdwn', text: lines.join('\\n') } },\n  { type: 'actions', elements: [button('Send it to the customer', link('send'), true), button('Hold it', link('hold'))] },\n];\nconst noContactText = `POD for load ${orderId} is in Dropbox, but ${customer} (customer ID ${customerId}) has no POD email in the contacts sheet, so it was not sent. <${fileLink}|Open the POD in Dropbox>`;\nreturn { email, hasEmail: Boolean(email), orderId, clean, subject, bodyStart, bodyEnd, expiresAt, askText, askBlocks, noContactText };\n"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "POD email",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Prepare the email",
        "nextElementIds": [
          "FBAE2736-BD8A-4A02-AEC7-D74B93A26640"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Check the file name Result"
          },
          "position": {
            "x": 525,
            "y": 49
          }
        },
        "flowElementId": "7CC60C12-15C4-4E73-832E-B90A9855F69C",
        "groupId": null,
        "id": "34847960-AF88-4156-8066-144D80C213FD",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "name",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "New file",
                    "subPathSegments": [
                      {
                        "key": "name",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "FCF7C295-1AC9-462A-B7E2-308C51010C4C"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "path",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "New file",
                    "subPathSegments": [
                      {
                        "key": "path_display",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "FCF7C295-1AC9-462A-B7E2-308C51010C4C"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const n = String(name || '');\nconst parts = String(path || '').split('/').filter(Boolean);\nconst loadNumber = parts.length >= 2 ? parts[parts.length - 2] : '';\nconst ext = ((n.match(/\\.([A-Za-z0-9]+)$/) || [])[1] || '').toLowerCase();\nconst types = { pdf: 'application/pdf', jpg: 'image/jpeg', jpeg: 'image/jpeg', png: 'image/png' };\nconst mimeType = types[ext] || '';\nconst pod = /(^|[^A-Za-z])POD([^A-Za-z]|$)/i.test(n) || /proof of delivery/i.test(n);\nreturn { isPod: Boolean(pod && mimeType && loadNumber), loadNumber, 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 check",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Check the file name",
        "nextElementIds": [
          "822F6E5C-598A-449F-9733-4967B5972FB7"
        ],
        "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": 525,
            "y": 219
          }
        },
        "flowElementId": "4684AB61-7EF4-48A3-83D0-84594966FA5B",
        "groupId": null,
        "id": "B44B09F0-289D-4D98-A271-140A36A8C469",
        "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 check",
                    "subPathSegments": [
                      {
                        "key": "mimeType",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "34847960-AF88-4156-8066-144D80C213FD"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": "STRING"
              },
              "url": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "POD file",
                    "subPathSegments": [
                      {
                        "key": "url",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "F37E1E46-D92F-43C3-AB65-EEF57A25C5A6"
                  }
                ],
                "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 reading",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "systemPrompt": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "You check proofs of delivery (PODs) before a freight broker sends them to its customer. Look at the attached file and reply with JSON only, with these fields:\nisPod: true if the file is a proof of delivery or a BOL signed by the consignee at delivery, false if it is something else\nsigned: true if the consignee signed it, false if the signature line is blank\nsignedAt: the date and time the consignee signed or the freight was delivered, as written, in the form YYYY-MM-DD HH:MM, or empty text if none is written\nexceptions: any shortage, overage, damage, refusal or other note the consignee wrote on it, in one sentence; empty text if the POD is clean"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "tools": [],
          "type": "AI_AGENT",
          "userPrompt": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "Load "
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "File check",
                "subPathSegments": [
                  {
                    "key": "loadNumber",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "34847960-AF88-4156-8066-144D80C213FD"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": " for "
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "McLeod match",
                "subPathSegments": [
                  {
                    "key": "load",
                    "optional": false
                  },
                  {
                    "key": "customer",
                    "optional": false
                  },
                  {
                    "key": "name",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "0A41FDE7-D91A-4B0A-BCCD-F373DF42B887"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "\nFile: "
              },
              {
                "id": "RESULT",
                "label": "New file",
                "subPathSegments": [
                  {
                    "key": "name",
                    "optional": false
                  }
                ],
                "type": "TRIGGER_DATA",
                "value": "FCF7C295-1AC9-462A-B7E2-308C51010C4C"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          }
        },
        "name": "Read the POD",
        "nextElementIds": [
          "8F690DE8-BBBB-4EBC-94A4-AB22420D8CEC"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Finds a specific row in a specified sheet within a spreadsheet based on a column and value.",
          "elementId": "EXTENSION:::SHARED:::default:::google-sheets:::findSheetRows",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Find the customer's POD contact Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::google-sheets:::findSheetRows",
          "legacyElementId": "JS###v1###GoogleSheets###findSheetRows",
          "methodName": "findSheetRows",
          "position": {
            "x": 110,
            "y": 210
          }
        },
        "flowElementId": "A37C47BC-558E-47BE-98EB-761A236156A2",
        "groupId": null,
        "id": "8F690DE8-BBBB-4EBC-94A4-AB22420D8CEC",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "documentId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Customer contacts sheet",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Customer contacts sheet"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sheetId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "NUMBER",
                    "label": null,
                    "type": "INPUT",
                    "value": 0
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "column",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "Customer ID"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "value",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "McLeod match",
                    "subPathSegments": [
                      {
                        "key": "load",
                        "optional": false
                      },
                      {
                        "key": "customer",
                        "optional": false
                      },
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "0A41FDE7-D91A-4B0A-BCCD-F373DF42B887"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "withRowNumbers",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": "Block: 'Find the customer's POD contact', Error: The placeholder \"Customer contacts sheet\" has no value",
            "valid": false
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "findSheetRows",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Customer contact",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "google-sheets",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Find the customer's POD contact",
        "nextElementIds": [
          "2113CD4B-E38E-4FBC-BA43-65E4584DFD3B"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 854,
            "y": 559
          }
        },
        "flowElementId": "B6B4F1EC-03BE-4079-A4F9-791E437C6007",
        "groupId": null,
        "id": "04612EF2-91D6-4610-A885-73A7EC18DF1F",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "8f260a8d-5341-4965-ad9c-9c79d2b306f7",
                "nestedOperation": null,
                "operation": "isTrue",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "POD email",
                      "subPathSegments": [
                        {
                          "key": "hasEmail",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "2113CD4B-E38E-4FBC-BA43-65E4584DFD3B"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "BOOLEAN",
                "values": []
              }
            ],
            "grouping": [
              "8f260a8d-5341-4965-ad9c-9c79d2b306f7"
            ]
          },
          "elseComponent": {
            "componentId": "ABEA5A84-DD37-4D7F-A819-E633B8093739",
            "componentType": "ELEMENT"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Contact on file",
          "storeResult": false,
          "thenComponent": {
            "componentId": "F16B4028-421E-4333-840D-5A72CB9664E5",
            "componentType": "ELEMENT"
          }
        },
        "name": "Customer contact on file?",
        "nextElementIds": [
          "ABEA5A84-DD37-4D7F-A819-E633B8093739",
          "F16B4028-421E-4333-840D-5A72CB9664E5"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "notes": "Creates a shareable link for a Dropbox file or folder. Optionally restricts access to logged-in members, sets an expiration timestamp, configures a password, and controls whether the recipient can download the content.",
          "elementId": "EXTENSION:::SHARED:::default:::dropbox-service:::createSharedLink",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Share the POD Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::dropbox-service:::createSharedLink",
          "legacyElementId": "JS###v1###DropboxService###createSharedLink",
          "methodName": "createSharedLink",
          "position": {
            "x": 525,
            "y": 550
          }
        },
        "flowElementId": "DCD8DE95-1657-458B-8BB3-27A87E65988D",
        "groupId": null,
        "id": "F16B4028-421E-4333-840D-5A72CB9664E5",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "path",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "New file",
                    "subPathSegments": [
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "FCF7C295-1AC9-462A-B7E2-308C51010C4C"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "requireLogin",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "allowDownload",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_TRUE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": true
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "expiresAt",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "POD email",
                    "subPathSegments": [
                      {
                        "key": "expiresAt",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "2113CD4B-E38E-4FBC-BA43-65E4584DFD3B"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "linkPassword",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": "Block: 'Share the POD', 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": "createSharedLink",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "POD link",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "dropbox-service",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Share the POD",
        "nextElementIds": [
          "19789ECA-21D5-4B5A-9C0E-5AB0F7ECE431"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Triggers a workflow whenever a new file appears in the watched Dropbox folder. Useful for automating ingestion of client uploads, AI-generated content, or third-party deliveries. Polling interval can be customized (minimum 30 seconds).",
          "elementId": "EXTENSION:::SHARED:::default:::dropbox-service:::onNewFile",
          "isFirstElement": true,
          "blockDefinitionId": "EXTENSION:::SHARED:::default:::dropbox-service:::onNewFile",
          "newElementId": "EXTENSION:::SHARED:::default:::dropbox-service:::onNewFile",
          "legacyElementId": "JS###v1###DropboxService###onNewFile",
          "methodName": "onNewFile",
          "position": {
            "x": 143,
            "y": 40
          }
        },
        "flowElementId": "E69BDDED-DE55-4F2D-B02E-80826262AB3F",
        "groupId": null,
        "id": "FCF7C295-1AC9-462A-B7E2-308C51010C4C",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": "Block: 'New file in a load folder', Error: OAuth Connection is required",
            "valid": false
          },
          "condition": null,
          "connectionId": null,
          "dynamicData": [],
          "eventName": "onNewFile",
          "frequency": {
            "repeat": {
              "every": 300
            },
            "schedule": "custom"
          },
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": null
          },
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "New file",
          "serviceId": "dropbox-service",
          "slaConditions": [],
          "staticData": {
            "folderPath": "/Loads",
            "recursive": true
          },
          "storeResult": true,
          "subtype": "POLLING",
          "type": "CUSTOM"
        },
        "name": "New file in a load folder",
        "nextElementIds": [
          "34847960-AF88-4156-8066-144D80C213FD"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "TRIGGER"
      },
      {
        "clientMetadata": {
          "notes": "Sends emails through Gmail for AI agents to automate customer communication.",
          "elementId": "EXTENSION:::SHARED:::default:::gmail-service:::sendMessage",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Email the POD to the customer Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::gmail-service:::sendMessage",
          "legacyElementId": "JS###v1###GmailService###sendMessage",
          "methodName": "sendMessage",
          "position": {
            "x": 118,
            "y": 550
          }
        },
        "flowElementId": "1D30F7A9-A956-4187-9677-688A1EA7B295",
        "groupId": null,
        "id": "19789ECA-21D5-4B5A-9C0E-5AB0F7ECE431",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "to",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "POD email",
                    "subPathSegments": [
                      {
                        "key": "email",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "2113CD4B-E38E-4FBC-BA43-65E4584DFD3B"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "subject",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "POD email",
                    "subPathSegments": [
                      {
                        "key": "subject",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "2113CD4B-E38E-4FBC-BA43-65E4584DFD3B"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "bodyType",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "html"
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "bodyContent",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "POD email",
                    "subPathSegments": [
                      {
                        "key": "bodyStart",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "2113CD4B-E38E-4FBC-BA43-65E4584DFD3B"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "<p><a href=\""
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "POD link",
                    "subPathSegments": [
                      {
                        "key": "url",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "F16B4028-421E-4333-840D-5A72CB9664E5"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "\">Open the POD</a></p>"
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "POD email",
                    "subPathSegments": [
                      {
                        "key": "bodyEnd",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "2113CD4B-E38E-4FBC-BA43-65E4584DFD3B"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "from",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "cc",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "bcc",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "threadId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "attachments",
              "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": "sendMessage",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Customer email",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "gmail-service",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Email the POD to the customer",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      }
    ],
    "firstElementId": "FCF7C295-1AC9-462A-B7E2-308C51010C4C",
    "groups": [],
    "id": "45BC2E1F-17C9-41E8-8471-F544FE67A6C3",
    "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": "Block 'Prepare the email' has an invalid configuration. Code Argument 'signature' has invalid value. Placeholder Data 'Email signature': value is required",
      "executionStaticData": [
        {
          "description": "Anthropic API key the AI step uses to read each POD.",
          "error": null,
          "name": "Anthropic key",
          "type": "API_KEY",
          "value": null
        },
        {
          "description": "The URL of the block Wait for the billing lead's answer. The Slack buttons open it.",
          "error": null,
          "name": "Billing answer link",
          "type": "STRING",
          "value": ""
        },
        {
          "description": "Link to the Google Sheet with the columns Customer ID (the McLeod customer ID) and POD email.",
          "error": null,
          "name": "Customer contacts sheet",
          "type": "STRING",
          "value": ""
        },
        {
          "description": "How many days the Dropbox link to the POD works. 0 makes a link that does not expire.",
          "error": null,
          "name": "Link days",
          "type": "INT",
          "value": ""
        },
        {
          "description": "The sign-off at the end of the email to the customer, such as your name, team and phone.",
          "error": "Placeholder Data 'Email signature': value is required",
          "name": "Email signature",
          "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-26T09:39:54.980Z"
}
