{
  "elementsLearnedData": [],
  "elementsTestData": [],
  "flow": {
    "id": "24D200E4-D9A5-4742-83E7-6531E45F8766",
    "name": "Abstract API: company brief before the call"
  },
  "flowVersion": {
    "clientMetadata": {
      "viewport": {
        "x": -28.996415770609318,
        "y": 14.910394265232974,
        "zoom": 0.63
      },
      "autoSave": false,
      "descriptions": {
        "flow": "When someone books a call in Calendly from a company email address, looks the company up by its domain with Abstract API's Enrich Company, adds it to HubSpot with its industry, size, revenue and location, gets the local time at the company with Get Current Time, and sends the meeting owner a short brief in Slack with the time there when the call starts. Personal mail domains are skipped, so no credit is spent on them.",
        "initialData": "",
        "initialDataFields": {}
      }
    },
    "description": "When a call is booked in Calendly from a company email address, looks the company up with Abstract API, adds it to HubSpot and sends the meeting owner a short brief in Slack with the local time at the company when the call starts.",
    "elements": [
      {
        "clientMetadata": {
          "notes": "Sends messages to Slack channels with optional Block Kit rich layouts. Supports plain text with Slack formatting, or advanced Block Kit JSON for buttons, menus, and interactive elements. Returns the message timestamp and channel ID for later updates or tracking.",
          "elementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Note the personal address Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 1310,
            "y": 40
          }
        },
        "flowElementId": "0574546C-64BD-4819-A55C-C5D88A14E316",
        "groupId": null,
        "id": "C7C45A73-AEB1-4F34-A7AD-864A579626DE",
        "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": "*Call booked: "
                  },
                  {
                    "id": "RESULT",
                    "label": "Booked call",
                    "subPathSegments": [
                      {
                        "key": "name",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "042D2336-27AB-49F3-8126-1D44E0986907"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " ("
                  },
                  {
                    "id": "RESULT",
                    "label": "Booked call",
                    "subPathSegments": [
                      {
                        "key": "email",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "042D2336-27AB-49F3-8126-1D44E0986907"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ")*\n"
                  },
                  {
                    "id": "RESULT",
                    "label": "Booked call",
                    "subPathSegments": [
                      {
                        "key": "scheduled_event",
                        "optional": false
                      },
                      {
                        "key": "name",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "042D2336-27AB-49F3-8126-1D44E0986907"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " with "
                  },
                  {
                    "id": "RESULT",
                    "label": "Booked call",
                    "subPathSegments": [
                      {
                        "key": "scheduled_event",
                        "optional": false
                      },
                      {
                        "key": "event_memberships",
                        "optional": false
                      },
                      {
                        "index": 0,
                        "last": false
                      },
                      {
                        "key": "user_name",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "042D2336-27AB-49F3-8126-1D44E0986907"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ", starts "
                  },
                  {
                    "id": "RESULT",
                    "label": "Booked call",
                    "subPathSegments": [
                      {
                        "key": "scheduled_event",
                        "optional": false
                      },
                      {
                        "key": "start_time",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "042D2336-27AB-49F3-8126-1D44E0986907"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " UTC.\nPersonal mail address, so no company lookup and no brief."
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "threadId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sendAsBot",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botName",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botIcon",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "replyBroadcast",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "imageURL",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "blocks",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "sendMessageToChannel",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Personal address note",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Note the personal address",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Gets the current date, time and time zone of a location with the Timezone API: a place name, latitude and longitude, or an IP address. Uses the Timezone API key. When the API has no data for the location, only requested_location is returned.",
          "elementId": "EXTENSION:::SHARED:::default:::abstract-api:::getCurrentTime",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Get the local time at the company Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::abstract-api:::getCurrentTime",
          "legacyElementId": null,
          "methodName": "getCurrentTime",
          "position": {
            "x": 515,
            "y": 340
          }
        },
        "flowElementId": "1A9CA456-E224-44EE-96EB-946921B7B09E",
        "groupId": null,
        "id": "CF1650F3-8A79-4F7B-8973-8A31FAC02F87",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "location",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Company record",
                    "subPathSegments": [
                      {
                        "key": "location",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "AA6CDCCE-9304-49E0-87D6-27E5EC973BB6"
                  }
                ],
                "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": "getCurrentTime",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Local time",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "abstract-api",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Get the local time at the company",
        "nextElementIds": [
          "4C38032E-A7D7-4B4F-8723-D31C972F4EA9"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "error-handler",
          "isFirstElement": false,
          "blockDefinitionId": "error-handler",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Company not found Result"
          },
          "position": {
            "x": 1694,
            "y": 179
          }
        },
        "flowElementId": "E7D064CA-3109-4904-863F-61974AB3DDAD",
        "groupId": null,
        "id": "E7A71AAC-2DA4-435B-B099-267F0BBEB81A",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Lookup error",
          "saveToVariable": null,
          "storeResult": true
        },
        "name": "Company not found",
        "nextElementIds": [
          "2E06FB5D-AA2A-4BCC-83B1-E4AFA222477F"
        ],
        "nextGroupIds": [],
        "type": "ERROR_HANDLER"
      },
      {
        "clientMetadata": {
          "notes": "Sends messages to Slack channels with optional Block Kit rich layouts. Supports plain text with Slack formatting, or advanced Block Kit JSON for buttons, menus, and interactive elements. Returns the message timestamp and channel ID for later updates or tracking.",
          "elementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Send the brief to the meeting owner Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 110,
            "y": 510
          }
        },
        "flowElementId": "79CFD4ED-25E0-4004-B2E7-03C3F46E8BF7",
        "groupId": null,
        "id": "DE40F847-54FF-48C8-B44A-2A59826D4A57",
        "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": "Brief",
                    "subPathSegments": [
                      {
                        "key": "text",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "4C38032E-A7D7-4B4F-8723-D31C972F4EA9"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "threadId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sendAsBot",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botName",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botIcon",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "replyBroadcast",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "imageURL",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "blocks",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Brief",
                    "subPathSegments": [
                      {
                        "key": "blocks",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "4C38032E-A7D7-4B4F-8723-D31C972F4EA9"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "sendMessageToChannel",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Brief message",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Send the brief to the meeting owner",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Triggers when someone schedules a meeting, enabling AI agents to automate follow-up workflows, send confirmation emails, add contacts to CRM systems, or trigger personalized onboarding sequences. Perfect for capturing leads, scheduling follow-ups, and maintaining engagement momentum.",
          "elementId": "EXTENSION:::SHARED:::default:::calendly:::onCreateInvitee",
          "isFirstElement": true,
          "blockDefinitionId": "api-service-trigger",
          "newElementId": "EXTENSION:::SHARED:::default:::calendly:::onCreateInvitee",
          "legacyElementId": "JS###v1###CalendlyService###onCreateInvitee",
          "methodName": "onCreateInvitee",
          "position": {
            "x": 152,
            "y": 170
          }
        },
        "flowElementId": "ECC0CA22-0088-49BE-836E-632C31E3C4DE",
        "groupId": null,
        "id": "042D2336-27AB-49F3-8126-1D44E0986907",
        "metaInfo": {
          "callbackUrl": null,
          "clientValidationState": {
            "errorMessage": "Block: 'Call booked in Calendly', Error: OAuth Connection is required",
            "valid": false
          },
          "condition": null,
          "connectionId": null,
          "eventName": "onCreateInvitee",
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": null
          },
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Booked call",
          "scope": "SINGLE_APP",
          "serviceId": "calendly",
          "slaConditions": [],
          "staticData": {},
          "storeResult": true,
          "subtype": "REALTIME",
          "type": "CUSTOM"
        },
        "name": "Call booked in Calendly",
        "nextElementIds": [
          "1D80299A-84BC-47FC-AAE7-066E9ADAECB2"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "TRIGGER"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Read the domain from the email Result"
          },
          "position": {
            "x": 521,
            "y": 179
          }
        },
        "flowElementId": "9775D23F-9533-44A3-B3A5-37691562A43F",
        "groupId": null,
        "id": "1D80299A-84BC-47FC-AAE7-066E9ADAECB2",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "email",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Booked call",
                    "subPathSegments": [
                      {
                        "key": "email",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "042D2336-27AB-49F3-8126-1D44E0986907"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "name",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Booked call",
                    "subPathSegments": [
                      {
                        "key": "name",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "042D2336-27AB-49F3-8126-1D44E0986907"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const address = String(email || '').trim().toLowerCase();\nconst domain = address.includes('@') ? address.split('@').pop() : '';\nconst personal = new Set(['gmail.com', 'googlemail.com', 'yahoo.com', 'yahoo.co.uk', 'yahoo.fr', 'yahoo.de', 'ymail.com', 'hotmail.com', 'hotmail.co.uk', 'hotmail.fr', 'hotmail.de', 'outlook.com', 'outlook.de', 'live.com', 'live.co.uk', 'msn.com', 'icloud.com', 'me.com', 'mac.com', 'aol.com', 'proton.me', 'protonmail.com', 'pm.me', 'gmx.com', 'gmx.de', 'gmx.net', 'web.de', 't-online.de', 'mail.com', 'mail.ru', 'yandex.com', 'yandex.ru', 'zoho.com', 'fastmail.com', 'hey.com', 'tutanota.com', 'tuta.io', 'duck.com', 'qq.com', '163.com', '126.com', 'orange.fr', 'wanadoo.fr', 'free.fr', 'laposte.net', 'libero.it', 'virgilio.it', 'btinternet.com', 'sky.com', 'comcast.net', 'verizon.net', 'att.net', 'sbcglobal.net', 'cox.net', 'charter.net', 'rogers.com', 'shaw.ca', 'bigpond.com', 'optusnet.com.au', 'telenet.be', 'skynet.be', 'ziggo.nl', 'kpnmail.nl', 'seznam.cz', 'wp.pl', 'onet.pl', 'o2.pl', 'interia.pl', 'rediffmail.com', 'naver.com', 'daum.net', 'example.com']);\nconst isPersonal = !domain || personal.has(domain);\nconst firstName = String(name || '').trim().split(/\\s+/)[0] || '';\nreturn { domain, isPersonal, firstName };"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Invitee domain",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Read the domain from the email",
        "nextElementIds": [
          "B511B8EA-D0E0-44F0-BD59-DFEC3BCF2BF6"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Looks up a company by its website domain with the Company Enrichment API: name, description, logo, address, industry codes, employee and revenue ranges, contact details, ticker, technologies and social profiles. Uses the Company Enrichment API key. Each lookup counts as a credit, found or not.",
          "elementId": "EXTENSION:::SHARED:::default:::abstract-api:::enrichCompany",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Look up the company with Abstract API Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::abstract-api:::enrichCompany",
          "legacyElementId": null,
          "methodName": "enrichCompany",
          "position": {
            "x": 1266,
            "y": 170
          }
        },
        "flowElementId": "896EFEEB-5F5E-45C9-893D-8888677F4938",
        "groupId": null,
        "id": "9E7AFBA6-7B97-4111-94A5-5231A498419D",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "domain",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Invitee domain",
                    "subPathSegments": [
                      {
                        "key": "domain",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "1D80299A-84BC-47FC-AAE7-066E9ADAECB2"
                  }
                ],
                "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": "enrichCompany",
          "onFailElemId": "E7A71AAC-2DA4-435B-B099-267F0BBEB81A",
          "packageId": "default",
          "resultAlias": "Company",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "abstract-api",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Look up the company with Abstract API",
        "nextElementIds": [
          "AA6CDCCE-9304-49E0-87D6-27E5EC973BB6"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Write the brief Result"
          },
          "position": {
            "x": 163,
            "y": 349
          }
        },
        "flowElementId": "A88778CB-0AD6-47F8-A2DF-FDB400E9C08F",
        "groupId": null,
        "id": "4C38032E-A7D7-4B4F-8723-D31C972F4EA9",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "invitee",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Booked call",
                    "subPathSegments": [
                      {
                        "key": "name",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "042D2336-27AB-49F3-8126-1D44E0986907"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "email",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Booked call",
                    "subPathSegments": [
                      {
                        "key": "email",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "042D2336-27AB-49F3-8126-1D44E0986907"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "eventName",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Booked call",
                    "subPathSegments": [
                      {
                        "key": "scheduled_event",
                        "optional": false
                      },
                      {
                        "key": "name",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "042D2336-27AB-49F3-8126-1D44E0986907"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "startTime",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Booked call",
                    "subPathSegments": [
                      {
                        "key": "scheduled_event",
                        "optional": false
                      },
                      {
                        "key": "start_time",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "042D2336-27AB-49F3-8126-1D44E0986907"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "owner",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Booked call",
                    "subPathSegments": [
                      {
                        "key": "scheduled_event",
                        "optional": false
                      },
                      {
                        "key": "event_memberships",
                        "optional": false
                      },
                      {
                        "index": 0,
                        "last": false
                      },
                      {
                        "key": "user_name",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "042D2336-27AB-49F3-8126-1D44E0986907"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "answers",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Booked call",
                    "subPathSegments": [
                      {
                        "key": "questions_and_answers",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "042D2336-27AB-49F3-8126-1D44E0986907"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "company",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Company",
                    "subPathSegments": null,
                    "type": "ELEMENT_LINK",
                    "value": "9E7AFBA6-7B97-4111-94A5-5231A498419D"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "localTime",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Local time",
                    "subPathSegments": null,
                    "type": "ELEMENT_LINK",
                    "value": "CF1650F3-8A79-4F7B-8973-8A31FAC02F87"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "hubspot",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "HubSpot company",
                    "subPathSegments": null,
                    "type": "ELEMENT_LINK",
                    "value": "995666B1-EDE2-4352-89FD-4583176E015C"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const c = company || {};\nconst t = localTime || {};\nconst h = hubspot || {};\nconst str = v => (v == null ? '' : String(v)).trim();\nconst start = new Date(startTime);\nconst zone = t.timezone_location || '';\nlet callLocal = '';\nif (!isNaN(start) && zone) {\n  try {\n    callLocal = new Intl.DateTimeFormat('en-GB', { timeZone: zone, weekday: 'short', day: 'numeric', month: 'short', hour: '2-digit', minute: '2-digit', timeZoneName: 'short' }).format(start);\n  } catch (e) { callLocal = ''; }\n}\nif (!callLocal && !isNaN(start) && typeof t.gmt_offset === 'number') {\n  const shifted = new Date(start.getTime() + t.gmt_offset * 3600000);\n  callLocal = shifted.toISOString().slice(0, 16).replace('T', ' ') + ' (UTC' + (t.gmt_offset >= 0 ? '+' : '') + t.gmt_offset + ')';\n}\nconst place = [c.city, c.state, c.country].filter(Boolean).join(', ');\nconst size = [c.employee_range ? c.employee_range + ' employees' : (c.employee_count ? c.employee_count + ' employees' : ''), c.revenue_range ? c.revenue_range + ' revenue' : ''].filter(Boolean).join(', ');\nconst founded = c.year_founded ? `founded ${c.year_founded}` : '';\nconst kind = c.type === 'public' && c.ticker ? `public (${c.ticker})` : (c.type ? c.type : '');\nconst facts = [c.industry, size, kind, founded].filter(Boolean).join('; ');\nconst qa = Array.isArray(answers) ? answers.filter(a => a && str(a.answer)).map(a => `${str(a.question)} ${str(a.answer)}`).join(' / ') : '';\nconst link = h.portalId && h.companyId ? `https://app.hubspot.com/contacts/${h.portalId}/company/${h.companyId}` : '';\nconst name = c.company_name || c.domain || 'the company';\nconst startText = isNaN(start) ? str(startTime) : start.toISOString().slice(0, 16).replace('T', ' ') + ' UTC';\nconst lines = [\n  `*${owner ? owner + ', your ' : 'Your '}${eventName || 'call'} with ${invitee || email}: ${name}*`,\n  c.description ? str(c.description) : null,\n  facts ? `Facts: ${facts}.` : null,\n  place ? `Based in ${place}.${callLocal ? ` When the call starts (${startText}) it will be ${callLocal} there.` : ''}` : null,\n  !place && callLocal ? `Local time at the company when the call starts: ${callLocal}.` : null,\n  Array.isArray(c.technologies) && c.technologies.length ? `Uses: ${c.technologies.slice(0, 8).join(', ')}.` : null,\n  qa ? `They wrote when booking: ${qa}` : null,\n  [link ? `<${link}|Open in HubSpot>` : null, c.linkedin_url ? `<https://${String(c.linkedin_url).replace(/^https?:\\/\\//, '')}|LinkedIn>` : null, c.domain ? `<https://${c.domain}|${c.domain}>` : null].filter(Boolean).join('  ·  ') || null,\n].filter(Boolean);\nreturn {\n  text: `Brief for your ${eventName || 'call'} with ${invitee || email} at ${name}`,\n  blocks: [{ type: 'section', text: { type: 'mrkdwn', text: lines.join('\\n') } }],\n};"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Brief",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Write the brief",
        "nextElementIds": [
          "DE40F847-54FF-48C8-B44A-2A59826D4A57"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 935,
            "y": 179
          }
        },
        "flowElementId": "2167EFB0-31AD-41AA-9785-E3DED5A3F32E",
        "groupId": null,
        "id": "B511B8EA-D0E0-44F0-BD59-DFEC3BCF2BF6",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "84dbcb67-a559-4b1d-a360-27ee00a7c9f8",
                "nestedOperation": null,
                "operation": "isFalse",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Invitee domain",
                      "subPathSegments": [
                        {
                          "key": "isPersonal",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "1D80299A-84BC-47FC-AAE7-066E9ADAECB2"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "BOOLEAN",
                "values": []
              }
            ],
            "grouping": [
              "84dbcb67-a559-4b1d-a360-27ee00a7c9f8"
            ]
          },
          "elseComponent": {
            "componentId": "C7C45A73-AEB1-4F34-A7AD-864A579626DE",
            "componentType": "ELEMENT"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Company domain",
          "storeResult": false,
          "thenComponent": {
            "componentId": "9E7AFBA6-7B97-4111-94A5-5231A498419D",
            "componentType": "ELEMENT"
          }
        },
        "name": "Company domain?",
        "nextElementIds": [
          "C7C45A73-AEB1-4F34-A7AD-864A579626DE",
          "9E7AFBA6-7B97-4111-94A5-5231A498419D"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "notes": "Sends messages to Slack channels with optional Block Kit rich layouts. Supports plain text with Slack formatting, or advanced Block Kit JSON for buttons, menus, and interactive elements. Returns the message timestamp and channel ID for later updates or tracking.",
          "elementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Tell the owner there is no brief Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 1994,
            "y": 170
          }
        },
        "flowElementId": "011659DC-6388-4C0F-8489-05B8344ED282",
        "groupId": null,
        "id": "2E06FB5D-AA2A-4BCC-83B1-E4AFA222477F",
        "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": "*Call booked: "
                  },
                  {
                    "id": "RESULT",
                    "label": "Booked call",
                    "subPathSegments": [
                      {
                        "key": "name",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "042D2336-27AB-49F3-8126-1D44E0986907"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " ("
                  },
                  {
                    "id": "RESULT",
                    "label": "Booked call",
                    "subPathSegments": [
                      {
                        "key": "email",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "042D2336-27AB-49F3-8126-1D44E0986907"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ")*\n"
                  },
                  {
                    "id": "RESULT",
                    "label": "Booked call",
                    "subPathSegments": [
                      {
                        "key": "scheduled_event",
                        "optional": false
                      },
                      {
                        "key": "name",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "042D2336-27AB-49F3-8126-1D44E0986907"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " with "
                  },
                  {
                    "id": "RESULT",
                    "label": "Booked call",
                    "subPathSegments": [
                      {
                        "key": "scheduled_event",
                        "optional": false
                      },
                      {
                        "key": "event_memberships",
                        "optional": false
                      },
                      {
                        "index": 0,
                        "last": false
                      },
                      {
                        "key": "user_name",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "042D2336-27AB-49F3-8126-1D44E0986907"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ", starts "
                  },
                  {
                    "id": "RESULT",
                    "label": "Booked call",
                    "subPathSegments": [
                      {
                        "key": "scheduled_event",
                        "optional": false
                      },
                      {
                        "key": "start_time",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "042D2336-27AB-49F3-8126-1D44E0986907"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " UTC.\nAbstract API has no company record for "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Invitee domain",
                    "subPathSegments": [
                      {
                        "key": "domain",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "1D80299A-84BC-47FC-AAE7-066E9ADAECB2"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ", so there is no brief for this one. ("
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Lookup error",
                    "subPathSegments": [
                      {
                        "key": "message",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "E7A71AAC-2DA4-435B-B099-267F0BBEB81A"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ")"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "threadId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sendAsBot",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botName",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botIcon",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "replyBroadcast",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "imageURL",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "blocks",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "sendMessageToChannel",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "No brief note",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Tell the owner there is no brief",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Creates a new company record in your HubSpot account with the specified properties. Company records help organize and track business relationships, with properties for company details like name, domain, industry, and size.",
          "elementId": "EXTENSION:::SHARED:::default:::hubspot:::createCompany",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Add the company to HubSpot Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::hubspot:::createCompany",
          "legacyElementId": "JS###v1###HubSpotService###createCompany",
          "methodName": "createCompany",
          "position": {
            "x": 904,
            "y": 340
          }
        },
        "flowElementId": "AE28FAEF-D81F-4775-BAB4-18CBB4ADAD53",
        "groupId": null,
        "id": "995666B1-EDE2-4352-89FD-4583176E015C",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "properties",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Company record",
                    "subPathSegments": [
                      {
                        "key": "properties",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "AA6CDCCE-9304-49E0-87D6-27E5EC973BB6"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": "Block: 'Add the company to HubSpot', Error: OAuth Connection is required",
            "valid": false
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "createCompany",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "HubSpot company",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "hubspot",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Add the company to HubSpot",
        "nextElementIds": [
          "CF1650F3-8A79-4F7B-8973-8A31FAC02F87"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Prepare the company record Result"
          },
          "position": {
            "x": 1303,
            "y": 349
          }
        },
        "flowElementId": "7A51B12C-F64B-4346-A448-AFB72071228C",
        "groupId": null,
        "id": "AA6CDCCE-9304-49E0-87D6-27E5EC973BB6",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "company",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Company",
                    "subPathSegments": null,
                    "type": "ELEMENT_LINK",
                    "value": "9E7AFBA6-7B97-4111-94A5-5231A498419D"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "domain",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Invitee domain",
                    "subPathSegments": [
                      {
                        "key": "domain",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "1D80299A-84BC-47FC-AAE7-066E9ADAECB2"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const c = company || {};\nconst str = v => (v == null ? '' : String(v)).trim();\nconst props = [];\nconst add = (name, value) => { const v = str(value); if (v) props.push({ name, value: v }); };\nadd('name', c.company_name || domain);\nadd('domain', c.domain || domain);\nadd('website', c.domain ? 'https://' + c.domain : '');\nadd('description', c.description);\nadd('city', c.city);\nadd('state', c.state);\nadd('country', c.country);\nadd('zip', c.postal_code);\nadd('address', c.street_address);\nadd('numberofemployees', c.employee_count);\nadd('annualrevenue', c.annual_revenue);\nadd('founded_year', c.year_founded);\nadd('phone', Array.isArray(c.phone_numbers) ? c.phone_numbers[0] : '');\nadd('linkedin_company_page', c.linkedin_url ? 'https://' + String(c.linkedin_url).replace(/^https?:\\/\\//, '') : '');\nadd('twitterhandle', c.twitter_url ? String(c.twitter_url).split('/').pop() : '');\nconst location = [c.city, c.state, c.country].filter(Boolean).join(', ') || c.country || domain;\nreturn { properties: props, location, name: c.company_name || domain };"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Company record",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Prepare the company record",
        "nextElementIds": [
          "995666B1-EDE2-4352-89FD-4583176E015C"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      }
    ],
    "firstElementId": "042D2336-27AB-49F3-8126-1D44E0986907",
    "groups": [],
    "id": "97996898-5D84-40C4-912D-1DEF929791CB",
    "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-12-02T08:42:39.423Z"
}
