{
  "elementsLearnedData": [],
  "elementsTestData": [],
  "flow": {
    "id": "220BA70E-9FCA-49D5-BFA7-44BF192B1705",
    "name": "EasyPost: spreadsheet order to shipping label"
  },
  "flowVersion": {
    "clientMetadata": {
      "viewport": {
        "x": 29.126609059651628,
        "y": -4.692632549167968,
        "zoom": 0.6250311512926044
      },
      "autoSave": true,
      "descriptions": {
        "flow": "When the ops team adds an order row to the sheet, sets up the parcel, saves and verifies the ship-to address in EasyPost, buys the cheapest label and writes the carrier, postage, tracking number and label link back to the row. An address that fails verification is flagged in the row instead.",
        "initialData": "",
        "initialDataFields": {}
      }
    },
    "description": "When the ops team adds an order row to the sheet, sets up the parcel, saves and verifies the ship-to address in EasyPost, buys the cheapest label and writes the carrier, postage, tracking number and label link back to the row. An address that fails verification is flagged in the row instead.",
    "elements": [
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Pick the cheapest rate Result"
          },
          "position": {
            "x": 355.9980064166376,
            "y": 366.00398716672476
          }
        },
        "flowElementId": "15C0F175-61E0-4464-BD0A-585FB12279C7",
        "groupId": null,
        "id": "C7676D5F-1A73-4DBE-BED0-A00413AD024C",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "rates",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Shipment",
                    "subPathSegments": [
                      {
                        "key": "rates",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "7A42A6ED-4385-4E84-B9E8-AC2682B4A19B"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const priced = (rates || []).filter(r => r && r.id && !isNaN(parseFloat(r.rate)));\nif (!priced.length) {\n  throw new Error('EasyPost returned no rates for this shipment. Check the parcel size and the carriers on your EasyPost account.');\n}\npriced.sort((a, b) => parseFloat(a.rate) - parseFloat(b.rate));\nconst best = priced[0];\nreturn { id: best.id, carrier: best.carrier, service: best.service, rate: best.rate, deliveryDays: best.delivery_days };"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Cheapest rate",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Pick the cheapest rate",
        "nextElementIds": [
          "538A3CBA-C60A-4538-9537-9C390ABDBFEF"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Updates existing data in Google Sheets for AI agents to modify records, correct information, or maintain data accuracy in automated workflows. Perfect for updating user profiles, adjusting scores, or maintaining dynamic data that changes over time.",
          "elementId": "EXTENSION:::SHARED:::default:::google-sheets:::updateRow",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Write the tracking number to the row Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::google-sheets:::updateRow",
          "legacyElementId": "JS###v1###GoogleSheets###updateRow",
          "methodName": "updateRow",
          "position": {
            "x": 419.23891474723337,
            "y": 527.6122804735122
          }
        },
        "flowElementId": "87D74984-0F74-4C5A-B75F-738510599CDE",
        "groupId": null,
        "id": "7EB4D1F7-D43D-47DD-A4CA-45F75CEE1903",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "documentId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "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": "rowNumber",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Order row",
                    "subPathSegments": [
                      {
                        "key": "rowNumber",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "9E8E2BF4-ED0F-4C7C-AF75-515E3579662D"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "rowData",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Sheet update",
                    "subPathSegments": [
                      {
                        "key": "rowData",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "3C806438-B53A-460D-8A3B-C8F8150ADAC4"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": "Block: 'Write the tracking number to the row', Error: Document is required",
            "valid": false
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "updateRow",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Row written",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "google-sheets",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Write the tracking number to the row",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Monitors Google Sheets for new rows and triggers AI workflows when data is added. Perfect for automated processing of form submissions, real-time data analysis, or immediate response to user input in collaborative spreadsheets. Polling interval can be customized (minimum 30 seconds).",
          "elementId": "EXTENSION:::SHARED:::default:::google-sheets:::onNewRow",
          "isFirstElement": true,
          "blockDefinitionId": "EXTENSION:::SHARED:::default:::google-sheets:::onNewRow",
          "newElementId": "EXTENSION:::SHARED:::default:::google-sheets:::onNewRow",
          "legacyElementId": "JS###v1###GoogleSheets###onNewRow",
          "methodName": "onNewRow",
          "position": {
            "x": 110,
            "y": 180
          }
        },
        "flowElementId": "D9A65F59-D9A1-42DE-99FD-0C7D5C690A21",
        "groupId": null,
        "id": "9E8E2BF4-ED0F-4C7C-AF75-515E3579662D",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": "Block: 'New order in the sheet', Error: Document is required",
            "valid": false
          },
          "condition": null,
          "connectionId": null,
          "dynamicData": [],
          "eventName": "onNewRow",
          "frequency": {
            "repeat": {
              "every": 300
            },
            "schedule": "custom"
          },
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": null
          },
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Order row",
          "serviceId": "google-sheets",
          "slaConditions": [],
          "staticData": {
            "sheetId": 0
          },
          "storeResult": true,
          "subtype": "POLLING",
          "type": "CUSTOM"
        },
        "name": "New order in the sheet",
        "nextElementIds": [
          "5772537A-6E0E-45FB-AC29-89E8BBA7E4F7"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "TRIGGER"
      },
      {
        "clientMetadata": {
          "notes": "Creates a reusable parcel object defining package dimensions and weight for shipment creation.",
          "elementId": "EXTENSION:::SHARED:::default:::easypost:::createParcel",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Set up the parcel Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::easypost:::createParcel",
          "legacyElementId": "JS###v1###EasyPost###createParcel",
          "methodName": "createParcel",
          "position": {
            "x": 400,
            "y": 180
          }
        },
        "flowElementId": "E9471FFE-77DE-4285-B3D7-7C0CA995894F",
        "groupId": null,
        "id": "5772537A-6E0E-45FB-AC29-89E8BBA7E4F7",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "weight",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Order row",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "Weight",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "9E8E2BF4-ED0F-4C7C-AF75-515E3579662D"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "length",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Order row",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "Length",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "9E8E2BF4-ED0F-4C7C-AF75-515E3579662D"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "width",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Order row",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "Width",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "9E8E2BF4-ED0F-4C7C-AF75-515E3579662D"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "height",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Order row",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "Height",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "9E8E2BF4-ED0F-4C7C-AF75-515E3579662D"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "predefinedPackage",
              "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": "createParcel",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Parcel",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "easypost",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Set up the parcel",
        "nextElementIds": [
          "38996510-69CA-47FC-809E-732B260DBD93"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Purchases a shipping label for a shipment at the selected rate. This is the primary method for buying postage.",
          "elementId": "EXTENSION:::SHARED:::default:::easypost:::buyShipment",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Buy the label Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::easypost:::buyShipment",
          "legacyElementId": "JS###v1###EasyPost###buyShipment",
          "methodName": "buyShipment",
          "position": {
            "x": 82.42679376039021,
            "y": 367.6202548069617
          }
        },
        "flowElementId": "B58A8EFD-B4CA-4CCF-9C77-214397D4BEAF",
        "groupId": null,
        "id": "538A3CBA-C60A-4538-9537-9C390ABDBFEF",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "shipmentId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Shipment",
                    "subPathSegments": [
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "7A42A6ED-4385-4E84-B9E8-AC2682B4A19B"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "rateId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Cheapest rate",
                    "subPathSegments": [
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "C7676D5F-1A73-4DBE-BED0-A00413AD024C"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "insurance",
              "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": "buyShipment",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Label",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "easypost",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Buy the label",
        "nextElementIds": [
          "3C806438-B53A-460D-8A3B-C8F8150ADAC4"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Creates a new address in EasyPost. Optionally verifies the address during creation to ensure deliverability.",
          "elementId": "EXTENSION:::SHARED:::default:::easypost:::createAddress",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Save the ship-to address Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::easypost:::createAddress",
          "legacyElementId": "JS###v1###EasyPost###createAddress",
          "methodName": "createAddress",
          "position": {
            "x": 690,
            "y": 180
          }
        },
        "flowElementId": "776EA747-35EC-49D6-BECA-91A00AA15F7D",
        "groupId": null,
        "id": "38996510-69CA-47FC-809E-732B260DBD93",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "name",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Order row",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "Name",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "9E8E2BF4-ED0F-4C7C-AF75-515E3579662D"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "street1",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Order row",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "Street",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "9E8E2BF4-ED0F-4C7C-AF75-515E3579662D"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "street2",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Order row",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "Street 2",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "9E8E2BF4-ED0F-4C7C-AF75-515E3579662D"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "city",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Order row",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "City",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "9E8E2BF4-ED0F-4C7C-AF75-515E3579662D"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "state",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Order row",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "State",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "9E8E2BF4-ED0F-4C7C-AF75-515E3579662D"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "zip",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Order row",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "ZIP",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "9E8E2BF4-ED0F-4C7C-AF75-515E3579662D"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "country",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Order row",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "Country",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "9E8E2BF4-ED0F-4C7C-AF75-515E3579662D"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "company",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "phone",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "email",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "verify",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "createAddress",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Ship-to address",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "easypost",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Save the ship-to address",
        "nextElementIds": [
          "550DA797-4642-4E65-81A4-E0F1BE1921B3"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Updates existing data in Google Sheets for AI agents to modify records, correct information, or maintain data accuracy in automated workflows. Perfect for updating user profiles, adjusting scores, or maintaining dynamic data that changes over time.",
          "elementId": "EXTENSION:::SHARED:::default:::google-sheets:::updateRow",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Flag the address in the sheet Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::google-sheets:::updateRow",
          "legacyElementId": "JS###v1###GoogleSheets###updateRow",
          "methodName": "updateRow",
          "position": {
            "x": 1359.6023125567003,
            "y": 352.8037479367212
          }
        },
        "flowElementId": "2F435D82-18C7-4B82-BCE0-577C7BB2A185",
        "groupId": null,
        "id": "93ED98BC-6E42-4673-8D15-A6CC69FD3548",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "documentId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "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": "rowNumber",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Order row",
                    "subPathSegments": [
                      {
                        "key": "rowNumber",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "9E8E2BF4-ED0F-4C7C-AF75-515E3579662D"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "rowData",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "JSON",
                    "label": null,
                    "parsedValue": {
                      "Status": "Address failed verification"
                    },
                    "type": "INPUT",
                    "value": "{\"Status\":\"Address failed verification\"}"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": "Block: 'Flag the address in the sheet', Error: Document is required",
            "valid": false
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "updateRow",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Address flag",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "google-sheets",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Flag the address in the sheet",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 986.0003987166726,
            "y": 364.0043858833972
          }
        },
        "flowElementId": "14F4A78E-AC61-473F-BF42-DD387CF99119",
        "groupId": null,
        "id": "D7D110C5-462F-4270-94E8-381F828BEB8F",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "f4411f8d-2c50-4eec-a249-a33d2df2f545",
                "nestedOperation": null,
                "operation": "isTrue",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Verified address",
                      "subPathSegments": [
                        {
                          "key": "verifications",
                          "optional": false
                        },
                        {
                          "key": "delivery",
                          "optional": false
                        },
                        {
                          "key": "success",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "550DA797-4642-4E65-81A4-E0F1BE1921B3"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "BOOLEAN",
                "values": []
              }
            ],
            "grouping": [
              "f4411f8d-2c50-4eec-a249-a33d2df2f545"
            ]
          },
          "elseComponent": {
            "componentId": "93ED98BC-6E42-4673-8D15-A6CC69FD3548",
            "componentType": "ELEMENT"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Address deliverable",
          "storeResult": false,
          "thenComponent": {
            "componentId": "7A42A6ED-4385-4E84-B9E8-AC2682B4A19B",
            "componentType": "ELEMENT"
          }
        },
        "name": "Address deliverable?",
        "nextElementIds": [
          "93ED98BC-6E42-4673-8D15-A6CC69FD3548",
          "7A42A6ED-4385-4E84-B9E8-AC2682B4A19B"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Prepare the sheet update Result"
          },
          "position": {
            "x": 66.84202473727873,
            "y": 538.8117222701707
          }
        },
        "flowElementId": "1BC0542B-D0BC-4E3F-B419-441751894C30",
        "groupId": null,
        "id": "3C806438-B53A-460D-8A3B-C8F8150ADAC4",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "carrier",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Cheapest rate",
                    "subPathSegments": [
                      {
                        "key": "carrier",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "C7676D5F-1A73-4DBE-BED0-A00413AD024C"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "service",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Cheapest rate",
                    "subPathSegments": [
                      {
                        "key": "service",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "C7676D5F-1A73-4DBE-BED0-A00413AD024C"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "rate",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Cheapest rate",
                    "subPathSegments": [
                      {
                        "key": "rate",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "C7676D5F-1A73-4DBE-BED0-A00413AD024C"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "trackingCode",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Label",
                    "subPathSegments": [
                      {
                        "key": "tracking_code",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "538A3CBA-C60A-4538-9537-9C390ABDBFEF"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "labelUrl",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Label",
                    "subPathSegments": [
                      {
                        "key": "postage_label",
                        "optional": false
                      },
                      {
                        "key": "label_url",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "538A3CBA-C60A-4538-9537-9C390ABDBFEF"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "return {\n  rowData: {\n    Status: 'Label bought',\n    Carrier: `${carrier} ${service}`,\n    Postage: rate,\n    Tracking: trackingCode,\n    Label: labelUrl,\n  },\n};"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Sheet update",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Prepare the sheet update",
        "nextElementIds": [
          "7EB4D1F7-D43D-47DD-A4CA-45F75CEE1903"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Verifies an existing address for deliverability and accuracy. Returns verification results including any suggested corrections.",
          "elementId": "EXTENSION:::SHARED:::default:::easypost:::verifyAddress",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Verify the address Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::easypost:::verifyAddress",
          "legacyElementId": "JS###v1###EasyPost###verifyAddress",
          "methodName": "verifyAddress",
          "position": {
            "x": 980,
            "y": 180
          }
        },
        "flowElementId": "A0F89A79-E6FE-4309-AE82-A36E15728E6D",
        "groupId": null,
        "id": "550DA797-4642-4E65-81A4-E0F1BE1921B3",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "addressId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Ship-to address",
                    "subPathSegments": [
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "38996510-69CA-47FC-809E-732B260DBD93"
                  }
                ],
                "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": "verifyAddress",
          "onFailElemId": "47FDD174-CB34-477D-B7FC-162B55999199",
          "packageId": "default",
          "resultAlias": "Verified address",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "easypost",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Verify the address",
        "nextElementIds": [
          "D7D110C5-462F-4270-94E8-381F828BEB8F"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "error-handler",
          "isFirstElement": false,
          "blockDefinitionId": "error-handler",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Verification failed Result"
          },
          "position": {
            "x": 1370.8005582033416,
            "y": 187.60071769001044
          }
        },
        "flowElementId": "1023C634-892A-4644-8932-95E65B5F61CE",
        "groupId": null,
        "id": "47FDD174-CB34-477D-B7FC-162B55999199",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Verification error",
          "saveToVariable": null,
          "storeResult": true
        },
        "name": "Verification failed",
        "nextElementIds": [
          "93ED98BC-6E42-4673-8D15-A6CC69FD3548"
        ],
        "nextGroupIds": [],
        "type": "ERROR_HANDLER"
      },
      {
        "clientMetadata": {
          "notes": "Creates a new shipment using previously saved address and parcel IDs. Returns the shipment with available carrier rates.",
          "elementId": "EXTENSION:::SHARED:::default:::easypost:::createShipmentFromSaved",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Get rates Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::easypost:::createShipmentFromSaved",
          "legacyElementId": "JS###v1###EasyPost###createShipmentFromSaved",
          "methodName": "createShipmentFromSaved",
          "position": {
            "x": 650.799362053324,
            "y": 366.0043858833972
          }
        },
        "flowElementId": "AE3F509F-58B2-42F4-915C-FFF7490B1515",
        "groupId": null,
        "id": "7A42A6ED-4385-4E84-B9E8-AC2682B4A19B",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "fromAddressId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Ship-from address ID",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Ship-from address ID"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "toAddressId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Verified address",
                    "subPathSegments": [
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "550DA797-4642-4E65-81A4-E0F1BE1921B3"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "parcelId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Parcel",
                    "subPathSegments": [
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "5772537A-6E0E-45FB-AC29-89E8BBA7E4F7"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "labelFormat",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "carrierAccountId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "customsInfoId",
              "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": "createShipmentFromSaved",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Shipment",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "easypost",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Get rates",
        "nextElementIds": [
          "C7676D5F-1A73-4DBE-BED0-A00413AD024C"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      }
    ],
    "firstElementId": "9E8E2BF4-ED0F-4C7C-AF75-515E3579662D",
    "groups": [],
    "id": "421AAB17-05CB-4673-B14E-F0E0133A60F1",
    "metaInfo": {
      "clientValidationState": {
        "errorMessage": "Please fix problems before start. Blocks with issues have red badge in the top-right corner of a block, hover it to see what needs to be done.",
        "valid": false
      },
      "errorMessage": "Please fix problems before start. Blocks with issues have red badge in the top-right corner of a block, hover it to see what needs to be done.",
      "executionStaticData": [
        {
          "description": "The EasyPost ID of the address you ship from (starts with adr_). Save your warehouse address in EasyPost once and paste its ID here.",
          "error": null,
          "name": "Ship-from address ID",
          "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-17T05:54:29.108Z"
}
