{
  "elementsLearnedData": [],
  "elementsTestData": [],
  "flow": {
    "id": "E5671909-6316-46E6-8269-03686B2FC3EA",
    "name": "DocuSign: carrier agreement sent on approval"
  },
  "flowVersion": {
    "clientMetadata": {
      "viewport": {
        "x": -46.711711711711715,
        "y": 8.468468468468465,
        "zoom": 0.79
      },
      "autoSave": false,
      "descriptions": {
        "flow": "When a carrier is marked Approved in the carrier onboarding table in Airtable, sends the broker-carrier agreement from a DocuSign template, saves the envelope ID on the record and tells the setup team in Slack.",
        "initialData": "",
        "initialDataFields": {}
      }
    },
    "description": "When a carrier is marked Approved in the carrier onboarding table in Airtable, sends the broker-carrier agreement from a DocuSign template, saves the envelope ID on the record and tells the setup team in Slack.",
    "elements": [
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 846,
            "y": 49
          }
        },
        "flowElementId": "5CEB1C91-84A5-4D79-B3C1-0E44EF932AA3",
        "groupId": null,
        "id": "2EF38DA2-F62C-4B24-AAD9-9707DEE2C3CD",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "e9302f47-0fba-4910-bfe3-f2eaaeffb971",
                "nestedOperation": null,
                "operation": "isTrue",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Carrier check",
                      "subPathSegments": [
                        {
                          "key": "approved",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "248A57EE-5750-4F0D-9603-755A39D76424"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "BOOLEAN",
                "values": []
              }
            ],
            "grouping": [
              "e9302f47-0fba-4910-bfe3-f2eaaeffb971"
            ]
          },
          "elseComponent": null,
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Approved check",
          "storeResult": false,
          "thenComponent": {
            "componentId": "10DA0B05-5593-40C7-A7CC-B49C3EACC8FF",
            "componentType": "ELEMENT"
          }
        },
        "name": "Approved and not sent yet?",
        "nextElementIds": [
          "10DA0B05-5593-40C7-A7CC-B49C3EACC8FF"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Write the envelope ID Result"
          },
          "position": {
            "x": 867,
            "y": 219
          }
        },
        "flowElementId": "3F929366-A71B-4C5C-B3E0-02DBF486C0B6",
        "groupId": null,
        "id": "F2C2257A-0BFD-4CED-9872-D3FC07BBB805",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "envelopeId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Agreement envelope",
                    "subPathSegments": [
                      {
                        "key": "envelopeId",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "57683AB2-B3B6-4C2A-9C94-C714CE0D7CA8"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "return { 'Agreement envelope': envelopeId };"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Airtable update",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Write the envelope ID",
        "nextElementIds": [
          "68240A28-0115-4263-8500-49044B9C5828"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 1241,
            "y": 49
          }
        },
        "flowElementId": "61F858C2-68C3-4818-A8EA-AFFE35F489EB",
        "groupId": null,
        "id": "10DA0B05-5593-40C7-A7CC-B49C3EACC8FF",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "b7f689af-0078-4305-acb3-061233538650",
                "nestedOperation": null,
                "operation": "isTrue",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Carrier check",
                      "subPathSegments": [
                        {
                          "key": "emailOk",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "248A57EE-5750-4F0D-9603-755A39D76424"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "BOOLEAN",
                "values": []
              }
            ],
            "grouping": [
              "b7f689af-0078-4305-acb3-061233538650"
            ]
          },
          "elseComponent": {
            "componentId": "7AD9B308-9976-498C-ACFE-DAF1715B36DF",
            "componentType": "ELEMENT"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Email check",
          "storeResult": false,
          "thenComponent": {
            "componentId": "57683AB2-B3B6-4C2A-9C94-C714CE0D7CA8",
            "componentType": "ELEMENT"
          }
        },
        "name": "Contact email on file?",
        "nextElementIds": [
          "57683AB2-B3B6-4C2A-9C94-C714CE0D7CA8",
          "7AD9B308-9976-498C-ACFE-DAF1715B36DF"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "notes": "Updates specific fields in an existing Airtable record while preserving other field values. Perfect for AI agents to modify data based on processed information or user interactions.",
          "elementId": "EXTENSION:::SHARED:::default:::airtable:::updateRecord",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Record the envelope in Airtable Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::airtable:::updateRecord",
          "legacyElementId": "JS###v1###Airtable###updateRecord",
          "methodName": "updateRecord",
          "position": {
            "x": 472,
            "y": 210
          }
        },
        "flowElementId": "92BE46F1-47AD-4286-841C-E2552F2884DF",
        "groupId": null,
        "id": "68240A28-0115-4263-8500-49044B9C5828",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "baseId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "tableIdOrName",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "recordId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Carrier check",
                    "subPathSegments": [
                      {
                        "key": "recordId",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "248A57EE-5750-4F0D-9603-755A39D76424"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "fields",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Airtable update",
                    "subPathSegments": null,
                    "type": "ELEMENT_LINK",
                    "value": "F2C2257A-0BFD-4CED-9872-D3FC07BBB805"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": "Block: 'Record the envelope in Airtable', Error: Base ID is required",
            "valid": false
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "updateRecord",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Updated record",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "airtable",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Record the envelope in Airtable",
        "nextElementIds": [
          "022C257A-9F33-4D16-AB54-B299244EBFF3"
        ],
        "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": "Tell the setup team Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 141,
            "y": 210
          }
        },
        "flowElementId": "298F6984-6847-406C-9CA4-31334A37F675",
        "groupId": null,
        "id": "022C257A-9F33-4D16-AB54-B299244EBFF3",
        "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": "Broker-carrier agreement sent in DocuSign to "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Carrier check",
                    "subPathSegments": [
                      {
                        "key": "contactName",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "248A57EE-5750-4F0D-9603-755A39D76424"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " ("
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Carrier check",
                    "subPathSegments": [
                      {
                        "key": "contactEmail",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "248A57EE-5750-4F0D-9603-755A39D76424"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ") for "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Carrier check",
                    "subPathSegments": [
                      {
                        "key": "legalName",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "248A57EE-5750-4F0D-9603-755A39D76424"
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Carrier check",
                    "subPathSegments": [
                      {
                        "key": "mcLabel",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "248A57EE-5750-4F0D-9603-755A39D76424"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ". The envelope ID is saved on the carrier's record in Airtable."
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "threadId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sendAsBot",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botName",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botIcon",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "replyBroadcast",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "imageURL",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "blocks",
              "type": "COMPLEX_LIST",
              "value": []
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "sendMessageToChannel",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Sent notice",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Tell the setup team",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Continuously monitors an Airtable table for new or updated records using configurable polling intervals. Perfect for AI agents that need real-time data synchronization and automated responses to data changes. Polling interval can be customized (minimum 30 seconds).",
          "elementId": "EXTENSION:::SHARED:::default:::airtable:::onNewOrUpdatedRecord",
          "isFirstElement": true,
          "blockDefinitionId": "EXTENSION:::SHARED:::default:::airtable:::onNewOrUpdatedRecord",
          "newElementId": "EXTENSION:::SHARED:::default:::airtable:::onNewOrUpdatedRecord",
          "legacyElementId": "JS###v1###Airtable###onNewOrUpdatedRecord",
          "methodName": "onNewOrUpdatedRecord",
          "position": {
            "x": 110,
            "y": 40
          }
        },
        "flowElementId": "CBF20997-1CA0-41A6-AAF0-4D70AB398EBF",
        "groupId": null,
        "id": "06CDA6A5-AB6A-4D70-BA46-CB13DB16ABAD",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": "Block: 'Carrier setup record changed', Error: Base ID is required",
            "valid": false
          },
          "condition": null,
          "connectionId": null,
          "dynamicData": [],
          "eventName": "onNewOrUpdatedRecord",
          "frequency": {
            "repeat": {
              "every": 300
            },
            "schedule": "custom"
          },
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": null
          },
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Carrier record",
          "serviceId": "airtable",
          "slaConditions": [],
          "staticData": {},
          "storeResult": true,
          "subtype": "POLLING",
          "type": "CUSTOM"
        },
        "name": "Carrier setup record changed",
        "nextElementIds": [
          "248A57EE-5750-4F0D-9603-755A39D76424"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "TRIGGER"
      },
      {
        "clientMetadata": {
          "notes": "Creates and sends a DocuSign envelope using a pre-configured template. Assign a signer to a template role and optionally customize the email subject and body. Set status to 'created' to save as draft without sending.",
          "elementId": "EXTENSION:::SHARED:::default:::docusign:::sendEnvelopeFromTemplate",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Send the broker-carrier agreement Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::docusign:::sendEnvelopeFromTemplate",
          "legacyElementId": "JS###v1###DocuSignService###sendEnvelopeFromTemplate",
          "methodName": "sendEnvelopeFromTemplate",
          "position": {
            "x": 1195,
            "y": 210
          }
        },
        "flowElementId": "681E6736-25B9-4EC0-BCD7-E8AB012350AB",
        "groupId": null,
        "id": "57683AB2-B3B6-4C2A-9C94-C714CE0D7CA8",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "templateId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "emailSubject",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "Broker-carrier agreement for "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Carrier check",
                    "subPathSegments": [
                      {
                        "key": "legalName",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "248A57EE-5750-4F0D-9603-755A39D76424"
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Carrier check",
                    "subPathSegments": [
                      {
                        "key": "mcLabel",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "248A57EE-5750-4F0D-9603-755A39D76424"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "signerEmail",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Carrier check",
                    "subPathSegments": [
                      {
                        "key": "contactEmail",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "248A57EE-5750-4F0D-9603-755A39D76424"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "signerName",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Carrier check",
                    "subPathSegments": [
                      {
                        "key": "contactName",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "248A57EE-5750-4F0D-9603-755A39D76424"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "roleName",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "emailBody",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "Thanks for completing our carrier setup. Please review and sign our broker-carrier agreement so we can start tendering loads to "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Carrier check",
                    "subPathSegments": [
                      {
                        "key": "legalName",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "248A57EE-5750-4F0D-9603-755A39D76424"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "."
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "status",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "sent"
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": "Block: 'Send the broker-carrier agreement', Error: Template is required",
            "valid": false
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "sendEnvelopeFromTemplate",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Agreement envelope",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "docusign",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Send the broker-carrier agreement",
        "nextElementIds": [
          "F2C2257A-0BFD-4CED-9872-D3FC07BBB805"
        ],
        "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 setup for the email Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 1594,
            "y": 40
          }
        },
        "flowElementId": "A5A82C3E-30BC-43D5-A8F4-7447E0589612",
        "groupId": null,
        "id": "7AD9B308-9976-498C-ACFE-DAF1715B36DF",
        "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": "Carrier check",
                    "subPathSegments": [
                      {
                        "key": "legalName",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "248A57EE-5750-4F0D-9603-755A39D76424"
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Carrier check",
                    "subPathSegments": [
                      {
                        "key": "mcLabel",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "248A57EE-5750-4F0D-9603-755A39D76424"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " is approved in Airtable, but the record has no valid contact email, so the broker-carrier agreement has not gone out. Add the email to Contact email on the record and the agreement is sent at the next check."
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "threadId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sendAsBot",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botName",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botIcon",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "replyBroadcast",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "imageURL",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "blocks",
              "type": "COMPLEX_LIST",
              "value": []
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "sendMessageToChannel",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Missing email notice",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Flag the missing email",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Check the carrier record Result"
          },
          "position": {
            "x": 496,
            "y": 49
          }
        },
        "flowElementId": "47D25C7E-C2C2-44DB-8040-C065627E7C23",
        "groupId": null,
        "id": "248A57EE-5750-4F0D-9603-755A39D76424",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "fields",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Carrier record",
                    "subPathSegments": [
                      {
                        "key": "fields",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "06CDA6A5-AB6A-4D70-BA46-CB13DB16ABAD"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "recordId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Carrier record",
                    "subPathSegments": [
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "06CDA6A5-AB6A-4D70-BA46-CB13DB16ABAD"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const f = fields || {};\nconst pick = (name) => {\n  const v = f[name];\n  if (Array.isArray(v)) return v.join(', ').trim();\n  if (v && typeof v === 'object') return String(v.name || v.email || '').trim();\n  return v == null ? '' : String(v).trim();\n};\nconst status = pick('Status');\nconst legalName = pick('Legal name');\nconst contactName = pick('Contact name');\nconst contactEmail = pick('Contact email');\nconst mcNumber = pick('MC number');\nconst envelope = pick('Agreement envelope');\nreturn {\n  recordId,\n  approved: status.toLowerCase() === 'approved' && !envelope,\n  emailOk: /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(contactEmail),\n  legalName: legalName || contactName || 'New carrier',\n  contactName: contactName || legalName || contactEmail,\n  contactEmail,\n  mcNumber,\n  mcLabel: mcNumber ? ` (MC ${mcNumber})` : '',\n};"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Carrier check",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Check the carrier record",
        "nextElementIds": [
          "2EF38DA2-F62C-4B24-AAD9-9707DEE2C3CD"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      }
    ],
    "firstElementId": "06CDA6A5-AB6A-4D70-BA46-CB13DB16ABAD",
    "groups": [],
    "id": "1ACA32DF-B91C-4D8D-A200-4EB504860C9F",
    "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": [],
      "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:36:50.387Z"
}
