{
  "elementsLearnedData": [],
  "elementsTestData": [],
  "flow": {
    "id": "DA5C801A-96C5-4153-BCAA-D70A7FBC8315",
    "name": "Ramp: driver lumper reimbursement billed back"
  },
  "flowVersion": {
    "clientMetadata": {
      "viewport": {
        "x": -48.96591565569035,
        "y": 7.648757943385327,
        "zoom": 0.81
      },
      "autoSave": false,
      "descriptions": {
        "flow": "When a driver submits a lumper or scale ticket reimbursement in Ramp, finds the load in McLeod and asks the AP lead in Slack whether to approve it and bill the charge to the customer on the load.",
        "initialData": "",
        "initialDataFields": {}
      }
    },
    "description": "When a driver submits a lumper or scale ticket reimbursement in Ramp, finds the load in McLeod and asks the AP lead in Slack whether to approve it and bill the charge to the customer on the load.",
    "elements": [
      {
        "clientMetadata": {
          "notes": "Retrieves a single reimbursement by ID, including the submitting user, amount, merchant, status, memo, and any receipts or attachments.",
          "elementId": "EXTENSION:::SHARED:::default:::ramp-service:::getReimbursement",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Get the reimbursement Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::ramp-service:::getReimbursement",
          "legacyElementId": "JS###v1###RampService###getReimbursement",
          "methodName": "getReimbursement",
          "position": {
            "x": 507,
            "y": 40
          }
        },
        "flowElementId": "CFA0D553-3AEE-43B9-B7CB-0BABEE7074FE",
        "groupId": null,
        "id": "AEF176FB-EF6A-4429-A44C-DF48F6FC0310",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "reimbursementId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "New reimbursement",
                    "subPathSegments": [
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "5A2082A8-294C-43F9-AFE4-C3D7C72F017D"
                  }
                ],
                "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": "getReimbursement",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Reimbursement",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "ramp-service",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Get the reimbursement",
        "nextElementIds": [
          "3D9E0BB4-B326-4797-ADFD-35070344D768"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "ai-agent",
          "isFirstElement": false,
          "blockDefinitionId": "ai-agent",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Read the claim Result"
          },
          "tools": {},
          "position": {
            "x": 1235,
            "y": 49
          }
        },
        "flowElementId": "0D0DC239-43F9-4ACA-9E91-3286B6DD9DD8",
        "groupId": null,
        "id": "87BB5EFD-8121-481B-AA1F-18B84B629A3B",
        "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": "Claim reading",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "systemPrompt": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "You read expense reimbursements that truck drivers submit in Ramp. Decide whether the claim is a lumper fee (paid to have a trailer unloaded at a receiver or warehouse, often to a lumper service), a scale ticket (a CAT scale or other truck scale weigh ticket), or something else. Reply with JSON only, with these fields:\nkind: lumper, scale or other\nloadNumber: the load or order number the driver wrote, or empty text\nproNumber: the PRO number, or empty text\nbolNumber: the bill of lading number, or empty text\nfacility: the warehouse, receiver or scale location, or empty text\nnote: anything the person approving it should know, such as a missing load number, two load numbers, or an amount that looks high for the work, in one sentence; empty text if nothing stands out"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "tools": [],
          "type": "AI_AGENT",
          "userPrompt": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "Driver: "
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Driver",
                "subPathSegments": [
                  {
                    "key": "first_name",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "3D9E0BB4-B326-4797-ADFD-35070344D768"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": " "
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Driver",
                "subPathSegments": [
                  {
                    "key": "last_name",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "3D9E0BB4-B326-4797-ADFD-35070344D768"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "\nPaid to: "
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Reimbursement",
                "subPathSegments": [
                  {
                    "key": "merchant",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "AEF176FB-EF6A-4429-A44C-DF48F6FC0310"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "\nAmount: "
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Reimbursement",
                "subPathSegments": [
                  {
                    "key": "amount",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "AEF176FB-EF6A-4429-A44C-DF48F6FC0310"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "\nMemo: "
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Reimbursement",
                "subPathSegments": [
                  {
                    "key": "memo",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "AEF176FB-EF6A-4429-A44C-DF48F6FC0310"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "\n\nFull reimbursement record:\n"
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Reimbursement",
                "subPathSegments": null,
                "type": "ELEMENT_LINK",
                "value": "AEF176FB-EF6A-4429-A44C-DF48F6FC0310"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          }
        },
        "name": "Read the claim",
        "nextElementIds": [
          "0C083737-0EEE-4E7F-8371-1DBDC85448C4"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "error-handler",
          "isFirstElement": false,
          "blockDefinitionId": "error-handler",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "No load to look up Result"
          },
          "position": {
            "x": 517,
            "y": 349
          }
        },
        "flowElementId": "A7168961-8C03-4E97-9591-7372DC5918C5",
        "groupId": null,
        "id": "E624C46F-642C-4182-A101-EB8BD8220AB0",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Lookup error",
          "saveToVariable": null,
          "storeResult": true
        },
        "name": "Load lookup failed",
        "nextElementIds": [
          "0C5DB4BD-3BD6-4E70-85D9-1A7E0D975011"
        ],
        "nextGroupIds": [],
        "type": "ERROR_HANDLER"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 1225,
            "y": 219
          }
        },
        "flowElementId": "7988B417-195F-4B50-B6E5-96E14107DEC3",
        "groupId": null,
        "id": "0C083737-0EEE-4E7F-8371-1DBDC85448C4",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "443bdca5-de94-4bf9-bfb7-a319d985f828",
                "nestedOperation": null,
                "operation": "notEqual",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Claim reading",
                      "subPathSegments": [
                        {
                          "key": "output",
                          "optional": false
                        },
                        {
                          "key": "kind",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "87BB5EFD-8121-481B-AA1F-18B84B629A3B"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "STRING",
                "values": [
                  {
                    "expression": [
                      {
                        "id": "TEXT",
                        "label": null,
                        "type": "INPUT",
                        "value": "other"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                ]
              }
            ],
            "grouping": [
              "443bdca5-de94-4bf9-bfb7-a319d985f828"
            ]
          },
          "elseComponent": null,
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Lumper or scale",
          "storeResult": false,
          "thenComponent": {
            "componentId": "0FD72927-1FF1-47DD-96D7-201220AFA614",
            "componentType": "ELEMENT"
          }
        },
        "name": "Lumper or scale ticket?",
        "nextElementIds": [
          "0FD72927-1FF1-47DD-96D7-201220AFA614"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "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": 877,
            "y": 210
          }
        },
        "flowElementId": "9D895B8A-AE45-4216-94A6-0A0900ACF800",
        "groupId": null,
        "id": "0FD72927-1FF1-47DD-96D7-201220AFA614",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "loadNumber",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Claim reading",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "loadNumber",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "87BB5EFD-8121-481B-AA1F-18B84B629A3B"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "proNumber",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Claim reading",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "proNumber",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "87BB5EFD-8121-481B-AA1F-18B84B629A3B"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "billOfLading",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Claim reading",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "bolNumber",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "87BB5EFD-8121-481B-AA1F-18B84B629A3B"
                  }
                ],
                "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": "E624C46F-642C-4182-A101-EB8BD8220AB0",
          "packageId": "default",
          "resultAlias": "McLeod load",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "mcleod-loadmaster",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Find the load in McLeod",
        "nextElementIds": [
          "0C5DB4BD-3BD6-4E70-85D9-1A7E0D975011"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Triggers when a new reimbursement is submitted in Ramp. Optionally filter by submitting user. Useful for expense approval routing. Polling interval can be customized (minimum 30 seconds).",
          "elementId": "EXTENSION:::SHARED:::default:::ramp-service:::onNewReimbursement",
          "isFirstElement": true,
          "blockDefinitionId": "EXTENSION:::SHARED:::default:::ramp-service:::onNewReimbursement",
          "newElementId": "EXTENSION:::SHARED:::default:::ramp-service:::onNewReimbursement",
          "legacyElementId": "JS###v1###RampService###onNewReimbursement",
          "methodName": "onNewReimbursement",
          "position": {
            "x": 141,
            "y": 40
          }
        },
        "flowElementId": "BE9919CF-4DFA-4B98-AC8D-76DCE997B25C",
        "groupId": null,
        "id": "5A2082A8-294C-43F9-AFE4-C3D7C72F017D",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": null,
          "connectionId": null,
          "dynamicData": [],
          "eventName": "onNewReimbursement",
          "frequency": {
            "repeat": {
              "every": 300
            },
            "schedule": "custom"
          },
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": null
          },
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "New reimbursement",
          "serviceId": "ramp-service",
          "slaConditions": [],
          "staticData": {},
          "storeResult": true,
          "subtype": "POLLING",
          "type": "CUSTOM"
        },
        "name": "New reimbursement",
        "nextElementIds": [
          "AEF176FB-EF6A-4429-A44C-DF48F6FC0310"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "TRIGGER"
      },
      {
        "clientMetadata": {
          "notes": "Retrieves a single user by ID, including name, email, role, department, location, manager status, and account status.",
          "elementId": "EXTENSION:::SHARED:::default:::ramp-service:::getUser",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Find the driver in Ramp Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::ramp-service:::getUser",
          "legacyElementId": "JS###v1###RampService###getUser",
          "methodName": "getUser",
          "position": {
            "x": 879,
            "y": 40
          }
        },
        "flowElementId": "3AC52C27-DB15-42C3-998C-064966B78578",
        "groupId": null,
        "id": "3D9E0BB4-B326-4797-ADFD-35070344D768",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "userId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Reimbursement",
                    "subPathSegments": [
                      {
                        "key": "user_id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "AEF176FB-EF6A-4429-A44C-DF48F6FC0310"
                  }
                ],
                "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": "getUser",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Driver",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "ramp-service",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Find the driver in Ramp",
        "nextElementIds": [
          "87BB5EFD-8121-481B-AA1F-18B84B629A3B"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Write the question for the AP lead Result"
          },
          "position": {
            "x": 471,
            "y": 219
          }
        },
        "flowElementId": "7D36CEED-2CB2-4914-B6ED-F6C23DBD3C32",
        "groupId": null,
        "id": "0C5DB4BD-3BD6-4E70-85D9-1A7E0D975011",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "reimbursement",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Reimbursement",
                    "subPathSegments": null,
                    "type": "ELEMENT_LINK",
                    "value": "AEF176FB-EF6A-4429-A44C-DF48F6FC0310"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "driver",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Driver",
                    "subPathSegments": null,
                    "type": "ELEMENT_LINK",
                    "value": "3D9E0BB4-B326-4797-ADFD-35070344D768"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "claim",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Claim reading",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "87BB5EFD-8121-481B-AA1F-18B84B629A3B"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "lookup",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "McLeod load",
                    "subPathSegments": null,
                    "type": "ELEMENT_LINK",
                    "value": "0FD72927-1FF1-47DD-96D7-201220AFA614"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "lumperCode",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Lumper charge code",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Lumper charge code"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "scaleCode",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Scale charge code",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Scale charge code"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "answerLink",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Answer link",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "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
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const r = reimbursement || {};\nconst d = driver || {};\nconst c = claim || {};\nconst found = !!(lookup && lookup.found && lookup.load);\nconst load = found ? lookup.load : null;\nconst isScale = String(c.kind || '').toLowerCase() === 'scale';\nconst label = isScale ? 'Scale ticket' : 'Lumper';\nconst chargeCode = isScale ? scaleCode : lumperCode;\nconst amount = Math.round(Number(r.amount || 0) * 100) / 100;\nconst money = n => '$' + Number(n).toLocaleString('en-US', { minimumFractionDigits: 2, maximumFractionDigits: 2 });\nconst name = [d.first_name, d.last_name].filter(Boolean).join(' ') || r.user_full_name || 'A driver';\nconst ref = c.loadNumber || c.proNumber || c.bolNumber || '';\nconst existing = found ? (load.accessorials || []).filter(a => a.chargeCode === chargeCode) : [];\nconst customer = found && load.customer ? (load.customer.name || load.customer.id) : '';\nconst carrier = found && load.carrier ? (load.carrier.name || load.carrier.id) : '';\nconst link = x => answerLink + '?execution=' + encodeURIComponent(executionId) + '&decision=' + x;\nconst lines = [\n  '*' + label + ' reimbursement from ' + name + ': ' + money(amount) + '*',\n  r.merchant ? 'Paid to: ' + r.merchant : null,\n  r.memo ? 'Memo: ' + r.memo : null,\n  c.facility ? 'Facility: ' + c.facility : null,\n  found\n    ? 'McLeod load ' + load.orderId + (customer ? ' for ' + customer : '') + (carrier ? ', carrier ' + carrier : '') + ', status ' + (load.statusDescription || load.status)\n    : (ref ? 'No McLeod load found for ' + ref + '.' : 'No load number on the claim, so no McLeod load was looked up.'),\n  existing.length ? 'The load already has a ' + chargeCode + ' charge of ' + money(existing[0].amount) + '. Billing the customer replaces it with ' + money(amount) + '.' : null,\n  c.note ? 'Note: ' + c.note : null,\n  'The receipt is on the reimbursement in Ramp.',\n].filter(Boolean);\nconst buttons = [];\nif (found) buttons.push({ type: 'button', style: 'primary', text: { type: 'plain_text', text: 'Approve and bill the customer' }, url: link('bill') });\nbuttons.push(Object.assign({ type: 'button', text: { type: 'plain_text', text: 'Approve only' }, url: link('approve') }, found ? {} : { style: 'primary' }));\nbuttons.push({ type: 'button', text: { type: 'plain_text', text: 'Leave it in Ramp' }, url: link('leave') });\nreturn {\n  text: label + ' reimbursement from ' + name + ': ' + money(amount),\n  blocks: [\n    { type: 'section', text: { type: 'mrkdwn', text: lines.join('\\n') } },\n    { type: 'actions', elements: buttons },\n  ],\n  orderId: found ? load.orderId : '',\n  chargeCode,\n  chargeDescription: label,\n  amount,\n  amountText: money(amount),\n  driverName: name,\n};"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Question card",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Write the question for the AP lead",
        "nextElementIds": [
          "2CEB5C64-4024-405E-B4C9-5CC3B8C7734C"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "external-callback",
          "isFirstElement": false,
          "blockDefinitionId": "external-callback",
          "position": {
            "x": 110,
            "y": 519
          }
        },
        "flowElementId": "9CAC21B2-642A-4F36-B3B5-A28B34F50846",
        "groupId": null,
        "id": "3BE42C25-0A3B-4600-B3FC-FCCDD5E2D1FB",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": null,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": null
          },
          "onFailElemId": null,
          "resultAlias": "AP decision",
          "slaConditions": [],
          "storeResult": true,
          "type": "CALLBACK"
        },
        "name": "Wait for the AP lead's answer",
        "nextElementIds": [
          "A987CF2D-BA72-4D7D-9B4E-EB06D993F8EE"
        ],
        "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": "Confirm the charge is billed Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 864,
            "y": 810
          }
        },
        "flowElementId": "A4399D97-823F-4B0F-AFBF-9EA644F412B8",
        "groupId": null,
        "id": "3BA3F4DA-ADD4-456B-8A33-BCE391960B96",
        "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": "Approved and billed. The reimbursement for "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Question card",
                    "subPathSegments": [
                      {
                        "key": "driverName",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "0C5DB4BD-3BD6-4E70-85D9-1A7E0D975011"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " is approved in Ramp, and a "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Question card",
                    "subPathSegments": [
                      {
                        "key": "amountText",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "0C5DB4BD-3BD6-4E70-85D9-1A7E0D975011"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Question card",
                    "subPathSegments": [
                      {
                        "key": "chargeDescription",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "0C5DB4BD-3BD6-4E70-85D9-1A7E0D975011"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " charge ("
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Question card",
                    "subPathSegments": [
                      {
                        "key": "chargeCode",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "0C5DB4BD-3BD6-4E70-85D9-1A7E0D975011"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ") is on load "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Question card",
                    "subPathSegments": [
                      {
                        "key": "orderId",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "0C5DB4BD-3BD6-4E70-85D9-1A7E0D975011"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " in McLeod for the customer invoice."
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "threadId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Question to AP lead",
                    "subPathSegments": [
                      {
                        "key": "messageId",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "2CEB5C64-4024-405E-B4C9-5CC3B8C7734C"
                  }
                ],
                "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": "Billed confirmation",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Confirm the charge is billed",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Applies a changed tender to an existing load (McLeod order): only the inputs you fill in change. Stops are matched by position in route order: the first entry changes the first stop, fields left empty keep their value, and entries past the load's last stop add stops (stops are never removed). An accessorial charge replaces the load's charge with the same charge code or is added; other charges stay. Stop reference numbers are added unless the stop already has them. McLeod applies its usual validation. Returns the load as Get Load does.",
          "elementId": "EXTENSION:::SHARED:::default:::mcleod-loadmaster:::updateLoad",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Add the charge to the load Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::mcleod-loadmaster:::updateLoad",
          "legacyElementId": null,
          "methodName": "updateLoad",
          "position": {
            "x": 1214,
            "y": 810
          }
        },
        "flowElementId": "F450131E-402F-49E9-A7EE-04BB1EFE4DC5",
        "groupId": null,
        "id": "0CC0018F-05E2-47A5-BCB7-19B79E9B134D",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "orderId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Question card",
                    "subPathSegments": [
                      {
                        "key": "orderId",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "0C5DB4BD-3BD6-4E70-85D9-1A7E0D975011"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "stops",
              "type": "COMPLEX_LIST",
              "value": []
            },
            {
              "name": "shipmentId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "billOfLading",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "poNumber",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "consigneeReference",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "pieces",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "weight",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "weightUnit",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "commodity",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "equipmentTypeId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "freightCharge",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "rate",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "rateType",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "rateUnits",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "accessorialCharges",
              "type": "COMPLEX_LIST",
              "value": [
                {
                  "type": "OBJECT",
                  "value": [
                    {
                      "name": "chargeCode",
                      "type": "SIMPLE",
                      "value": {
                        "expression": [
                          {
                            "id": "ELEMENT_RESULT",
                            "label": "Question card",
                            "subPathSegments": [
                              {
                                "key": "chargeCode",
                                "optional": false
                              }
                            ],
                            "type": "ELEMENT_LINK",
                            "value": "0C5DB4BD-3BD6-4E70-85D9-1A7E0D975011"
                          }
                        ],
                        "mode": "EXPRESSION",
                        "parseJsonString": false,
                        "resultType": null
                      }
                    },
                    {
                      "name": "description",
                      "type": "SIMPLE",
                      "value": {
                        "expression": [
                          {
                            "id": "ELEMENT_RESULT",
                            "label": "Question card",
                            "subPathSegments": [
                              {
                                "key": "chargeDescription",
                                "optional": false
                              }
                            ],
                            "type": "ELEMENT_LINK",
                            "value": "0C5DB4BD-3BD6-4E70-85D9-1A7E0D975011"
                          }
                        ],
                        "mode": "EXPRESSION",
                        "parseJsonString": false,
                        "resultType": null
                      }
                    },
                    {
                      "name": "units",
                      "type": "SIMPLE",
                      "value": {
                        "expression": [
                          {
                            "id": "NUMBER",
                            "label": null,
                            "type": "INPUT",
                            "value": 1
                          }
                        ],
                        "mode": "EXPRESSION",
                        "parseJsonString": false,
                        "resultType": null
                      }
                    },
                    {
                      "name": "rate",
                      "type": "SIMPLE",
                      "value": {
                        "expression": [
                          {
                            "id": "ELEMENT_RESULT",
                            "label": "Question card",
                            "subPathSegments": [
                              {
                                "key": "amount",
                                "optional": false
                              }
                            ],
                            "type": "ELEMENT_LINK",
                            "value": "0C5DB4BD-3BD6-4E70-85D9-1A7E0D975011"
                          }
                        ],
                        "mode": "EXPRESSION",
                        "parseJsonString": false,
                        "resultType": null
                      }
                    },
                    {
                      "name": "amount",
                      "type": "SIMPLE",
                      "value": {
                        "expression": [
                          {
                            "id": "ELEMENT_RESULT",
                            "label": "Question card",
                            "subPathSegments": [
                              {
                                "key": "amount",
                                "optional": false
                              }
                            ],
                            "type": "ELEMENT_LINK",
                            "value": "0C5DB4BD-3BD6-4E70-85D9-1A7E0D975011"
                          }
                        ],
                        "mode": "EXPRESSION",
                        "parseJsonString": false,
                        "resultType": null
                      }
                    }
                  ]
                }
              ]
            },
            {
              "name": "stopReferenceNumbers",
              "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": "updateLoad",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Updated load",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "mcleod-loadmaster",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Add the charge to the load",
        "nextElementIds": [
          "3BA3F4DA-ADD4-456B-8A33-BCE391960B96"
        ],
        "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": "Confirm it stays in Ramp Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 875,
            "y": 640
          }
        },
        "flowElementId": "982FC245-921D-4969-89FE-6716B3917B21",
        "groupId": null,
        "id": "3857BE99-CBDF-4167-B689-2EE4A07F869A",
        "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": "Left as is. The reimbursement for "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Question card",
                    "subPathSegments": [
                      {
                        "key": "driverName",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "0C5DB4BD-3BD6-4E70-85D9-1A7E0D975011"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " stays pending in Ramp for someone to approve or reject there."
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "threadId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Question to AP lead",
                    "subPathSegments": [
                      {
                        "key": "messageId",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "2CEB5C64-4024-405E-B4C9-5CC3B8C7734C"
                  }
                ],
                "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": "Left confirmation",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Confirm it stays in Ramp",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Approves a pending reimbursement, advancing it to the APPROVED state and queueing it for payment. The caller must have approval authority for the submitting user.",
          "elementId": "EXTENSION:::SHARED:::default:::ramp-service:::approveReimbursement",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Approve the reimbursement Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::ramp-service:::approveReimbursement",
          "legacyElementId": "JS###v1###RampService###approveReimbursement",
          "methodName": "approveReimbursement",
          "position": {
            "x": 862,
            "y": 510
          }
        },
        "flowElementId": "940EF808-86AE-49B1-A459-EDA1EB8BC22F",
        "groupId": null,
        "id": "EB03D864-35ED-4231-B56A-9222A63A94CC",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "reimbursementId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "New reimbursement",
                    "subPathSegments": [
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "5A2082A8-294C-43F9-AFE4-C3D7C72F017D"
                  }
                ],
                "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": "approveReimbursement",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Approved reimbursement",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "ramp-service",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Approve the reimbursement",
        "nextElementIds": [
          "3EA4112E-AF79-4D9B-AEA7-792290DAFC56"
        ],
        "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": "Confirm the approval Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 1556,
            "y": 510
          }
        },
        "flowElementId": "27514F32-B085-46F8-A663-193CB33ECABE",
        "groupId": null,
        "id": "08206E4F-A2F2-40BF-9BDE-8AB9929D0B87",
        "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": "Approved. The "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Question card",
                    "subPathSegments": [
                      {
                        "key": "amountText",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "0C5DB4BD-3BD6-4E70-85D9-1A7E0D975011"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " reimbursement for "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Question card",
                    "subPathSegments": [
                      {
                        "key": "driverName",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "0C5DB4BD-3BD6-4E70-85D9-1A7E0D975011"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " is approved in Ramp and queued for payment. Nothing was added to a load."
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "threadId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Question to AP lead",
                    "subPathSegments": [
                      {
                        "key": "messageId",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "2CEB5C64-4024-405E-B4C9-5CC3B8C7734C"
                  }
                ],
                "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": "Approval confirmation",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Confirm the approval",
        "nextElementIds": [],
        "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 AP lead Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 141,
            "y": 210
          }
        },
        "flowElementId": "E8C135DF-5DF0-4C28-BE2F-599610D7585D",
        "groupId": null,
        "id": "2CEB5C64-4024-405E-B4C9-5CC3B8C7734C",
        "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": "Question card",
                    "subPathSegments": [
                      {
                        "key": "text",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "0C5DB4BD-3BD6-4E70-85D9-1A7E0D975011"
                  }
                ],
                "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": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Question card",
                    "subPathSegments": [
                      {
                        "key": "blocks",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "0C5DB4BD-3BD6-4E70-85D9-1A7E0D975011"
                  }
                ],
                "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 AP lead",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Ask the AP lead",
        "nextElementIds": [
          "3BE42C25-0A3B-4600-B3FC-FCCDD5E2D1FB"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 517,
            "y": 519
          }
        },
        "flowElementId": "F25FBF19-1E0A-4D74-BAF0-054E312A2965",
        "groupId": null,
        "id": "A987CF2D-BA72-4D7D-9B4E-EB06D993F8EE",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "e9c85b7e-b432-49cb-a85e-86422e88858a",
                "nestedOperation": null,
                "operation": "notEqual",
                "property": {
                  "expression": [
                    {
                      "id": "RESULT",
                      "label": "AP decision",
                      "subPathSegments": [
                        {
                          "key": "decision",
                          "optional": false
                        }
                      ],
                      "type": "TRIGGER_DATA",
                      "value": "3BE42C25-0A3B-4600-B3FC-FCCDD5E2D1FB"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "STRING",
                "values": [
                  {
                    "expression": [
                      {
                        "id": "TEXT",
                        "label": null,
                        "type": "INPUT",
                        "value": "leave"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                ]
              }
            ],
            "grouping": [
              "e9c85b7e-b432-49cb-a85e-86422e88858a"
            ]
          },
          "elseComponent": {
            "componentId": "3857BE99-CBDF-4167-B689-2EE4A07F869A",
            "componentType": "ELEMENT"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Approve it",
          "storeResult": false,
          "thenComponent": {
            "componentId": "EB03D864-35ED-4231-B56A-9222A63A94CC",
            "componentType": "ELEMENT"
          }
        },
        "name": "Approve it?",
        "nextElementIds": [
          "3857BE99-CBDF-4167-B689-2EE4A07F869A",
          "EB03D864-35ED-4231-B56A-9222A63A94CC"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 1235,
            "y": 519
          }
        },
        "flowElementId": "1FA9020E-B814-4C8B-9F37-DB22E4806BAB",
        "groupId": null,
        "id": "3EA4112E-AF79-4D9B-AEA7-792290DAFC56",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "734d19c5-3742-469f-80e7-ed38c594d7b7",
                "nestedOperation": null,
                "operation": "equal",
                "property": {
                  "expression": [
                    {
                      "id": "RESULT",
                      "label": "AP decision",
                      "subPathSegments": [
                        {
                          "key": "decision",
                          "optional": false
                        }
                      ],
                      "type": "TRIGGER_DATA",
                      "value": "3BE42C25-0A3B-4600-B3FC-FCCDD5E2D1FB"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "STRING",
                "values": [
                  {
                    "expression": [
                      {
                        "id": "TEXT",
                        "label": null,
                        "type": "INPUT",
                        "value": "bill"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                ]
              }
            ],
            "grouping": [
              "734d19c5-3742-469f-80e7-ed38c594d7b7"
            ]
          },
          "elseComponent": {
            "componentId": "08206E4F-A2F2-40BF-9BDE-8AB9929D0B87",
            "componentType": "ELEMENT"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Bill the customer",
          "storeResult": false,
          "thenComponent": {
            "componentId": "0CC0018F-05E2-47A5-BCB7-19B79E9B134D",
            "componentType": "ELEMENT"
          }
        },
        "name": "Bill the customer?",
        "nextElementIds": [
          "08206E4F-A2F2-40BF-9BDE-8AB9929D0B87",
          "0CC0018F-05E2-47A5-BCB7-19B79E9B134D"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      }
    ],
    "firstElementId": "5A2082A8-294C-43F9-AFE4-C3D7C72F017D",
    "groups": [],
    "id": "3490B999-D62F-4E57-932D-B7CB74697D60",
    "metaInfo": {
      "clientValidationState": {
        "errorMessage": null,
        "valid": true
      },
      "errorMessage": null,
      "executionStaticData": [
        {
          "description": "",
          "error": null,
          "name": "Anthropic key",
          "type": "API_KEY",
          "value": null
        },
        {
          "description": "The URL of the block Wait for the AP lead's answer. The Slack buttons open it.",
          "error": null,
          "name": "Answer link",
          "type": "STRING",
          "value": ""
        },
        {
          "description": "The McLeod other charge code your team bills lumper fees under.",
          "error": null,
          "name": "Lumper charge code",
          "type": "STRING",
          "value": ""
        },
        {
          "description": "The McLeod other charge code your team bills scale tickets under.",
          "error": null,
          "name": "Scale charge code",
          "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:37:57.366Z"
}
