{
  "elementsLearnedData": [],
  "elementsTestData": [],
  "flow": {
    "id": "B9C7167E-825A-4F4F-B942-6597D7438E4C",
    "name": "Abstract API: signups screened before HubSpot"
  },
  "flowVersion": {
    "clientMetadata": {
      "viewport": {
        "x": -68.98796886058032,
        "y": 0.3680113234253355,
        "zoom": 0.99
      },
      "autoSave": false,
      "descriptions": {
        "flow": "Checks each new Tally trial signup's email address with Abstract API's Check Email. A deliverable, non-disposable address with a quality score at or above the flow setting becomes a HubSpot contact with the score and status on it. Anything else goes to a review tab in Google Sheets with Abstract's flags, and the ops lead decides in Slack whether to add it to HubSpot anyway or let it go.",
        "initialData": "",
        "initialDataFields": {}
      }
    },
    "description": "Checks each Tally trial signup's email with Abstract API. Clean addresses become HubSpot contacts; disposable or undeliverable ones go to a review tab in Google Sheets and the ops lead decides in Slack.",
    "elements": [
      {
        "clientMetadata": {
          "notes": "Sends messages to Slack channels with optional Block Kit rich layouts. Supports plain text with Slack formatting, or advanced Block Kit JSON for buttons, menus, and interactive elements. Returns the message timestamp and channel ID for later updates or tracking.",
          "elementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Tell the ops lead Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 511,
            "y": 210
          }
        },
        "flowElementId": "9F9196A9-9AE3-4EB7-A066-22D4D24D579D",
        "groupId": null,
        "id": "C4554560-292F-4AA3-84FC-2FEAAEC6A407",
        "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": "Review note",
                    "subPathSegments": [
                      {
                        "key": "text",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "C1285023-ED07-4546-BABE-724491D23E44"
                  }
                ],
                "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": "Review note",
                    "subPathSegments": [
                      {
                        "key": "blocks",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "C1285023-ED07-4546-BABE-724491D23E44"
                  }
                ],
                "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": "Review message",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Tell the ops lead",
        "nextElementIds": [
          "EF1ADE2C-BFAC-4457-8D43-0CB73C861A3F"
        ],
        "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 review note Result"
          },
          "position": {
            "x": 1236,
            "y": 219
          }
        },
        "flowElementId": "66E7158B-8390-4436-B6D4-826D75170CDF",
        "groupId": null,
        "id": "C1285023-ED07-4546-BABE-724491D23E44",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "email",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Signup answers",
                    "subPathSegments": [
                      {
                        "key": "email",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "B764C10B-745B-44D3-83A6-FD03795035F1"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "name",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Signup answers",
                    "subPathSegments": [
                      {
                        "key": "name",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "B764C10B-745B-44D3-83A6-FD03795035F1"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "company",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Signup answers",
                    "subPathSegments": [
                      {
                        "key": "company",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "B764C10B-745B-44D3-83A6-FD03795035F1"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "formName",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Signup answers",
                    "subPathSegments": [
                      {
                        "key": "formName",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "B764C10B-745B-44D3-83A6-FD03795035F1"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "submittedAt",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Signup answers",
                    "subPathSegments": [
                      {
                        "key": "submittedAt",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "B764C10B-745B-44D3-83A6-FD03795035F1"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "check",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Email check",
                    "subPathSegments": null,
                    "type": "ELEMENT_LINK",
                    "value": "B2A6CAF3-4FD5-4871-B5B1-73812A7200B4"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "answerLink",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Answer link",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Answer link"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "executionId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "EXECUTION_ID",
                    "label": null,
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_PATH",
                    "value": "executionContext.executionId",
                    "valueSegments": [
                      {
                        "key": "executionContext",
                        "optional": false
                      },
                      {
                        "key": "executionId",
                        "optional": false
                      }
                    ]
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const d = (check && check.email_deliverability) || {};\nconst q = (check && check.email_quality) || {};\nconst r = (check && check.email_risk) || {};\nconst b = (check && check.email_breaches) || {};\nconst yesNo = v => (v === true ? 'yes' : v === false ? 'no' : 'unknown');\nconst flags = [];\nif (q.is_disposable) flags.push('disposable address');\nif (d.status && d.status !== 'deliverable') flags.push(d.status + (d.status_detail ? ' (' + String(d.status_detail).replace(/_/g, ' ') + ')' : ''));\nif (q.is_role) flags.push('role address');\nif (q.is_username_suspicious) flags.push('suspicious username');\nif (r.address_risk_status && r.address_risk_status !== 'low') flags.push(r.address_risk_status + ' address risk');\nif (b.total_breaches) flags.push(b.total_breaches + ' known breaches');\nconst score = typeof q.score === 'number' ? q.score : null;\nconst who = [name, company].filter(Boolean).join(', ');\nconst correction = (check && check.suggested_correction) || '';\nconst link = decision => `${answerLink}?execution=${encodeURIComponent(executionId)}&decision=${decision}`;\nconst row = {\n  'Submitted': submittedAt || '',\n  'Form': formName || '',\n  'Email': email || '',\n  'Name': name || '',\n  'Company': company || '',\n  'Deliverability': d.status || 'unknown',\n  'Detail': d.status_detail || '',\n  'Disposable': yesNo(q.is_disposable),\n  'Quality score': score == null ? '' : score,\n  'Flags': flags.join('; '),\n  'Suggested correction': correction,\n};\nconst lines = [\n  `*Trial signup held for review: ${email || 'no email address given'}*`,\n  who ? `From: ${who}` : null,\n  formName ? `Form: ${formName}` : null,\n  `Abstract API says: ${flags.length ? flags.join(', ') : 'nothing flagged'}${score == null ? '' : `; quality score ${score}`}`,\n  correction ? `Suggested correction: ${correction}` : null,\n  'The signup is on the review tab. Add it to HubSpot anyway, or let it go?',\n].filter(Boolean);\nreturn {\n  row,\n  text: `Trial signup held for review: ${email || 'no email address given'}`,\n  blocks: [\n    { type: 'section', text: { type: 'mrkdwn', text: lines.join('\\n') } },\n    { type: 'actions', elements: [\n      { type: 'button', style: 'primary', text: { type: 'plain_text', text: 'Add to HubSpot anyway' }, url: link('keep') },\n      { type: 'button', text: { type: 'plain_text', text: 'Let it go' }, url: link('drop') },\n    ] },\n  ],\n};"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Review note",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Write the review note",
        "nextElementIds": [
          "E3A4BECE-BFFE-4B79-AA6C-1A90AB13D04D"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Find the email in the answers Result"
          },
          "position": {
            "x": 482,
            "y": 49
          }
        },
        "flowElementId": "800DE2D7-B408-42AC-BFA5-D7914CF3BC89",
        "groupId": null,
        "id": "B764C10B-745B-44D3-83A6-FD03795035F1",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "fields",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Trial signup",
                    "subPathSegments": [
                      {
                        "key": "fields",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "CEC9D313-4F69-4465-89A2-C25BB6D66435"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "formName",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Trial signup",
                    "subPathSegments": [
                      {
                        "key": "formName",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "CEC9D313-4F69-4465-89A2-C25BB6D66435"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "createdAt",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Trial signup",
                    "subPathSegments": [
                      {
                        "key": "createdAt",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "CEC9D313-4F69-4465-89A2-C25BB6D66435"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const list = Array.isArray(fields) ? fields : [];\nconst str = v => (v == null ? '' : Array.isArray(v) ? v.join(', ') : String(v)).trim();\nconst byType = t => list.find(f => f.type === t && str(f.value));\nconst byLabel = re => list.find(f => re.test(str(f.label)) && str(f.value));\nconst emailRe = /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/;\nlet email = str((byType('INPUT_EMAIL') || {}).value);\nif (!email) {\n  const any = list.find(f => emailRe.test(str(f.value)));\n  email = any ? str(any.value) : '';\n}\nemail = email.toLowerCase();\nconst full = str((byLabel(/full name|your name|^name$/i) || {}).value);\nlet firstName = str((byLabel(/first name|^first$/i) || {}).value);\nlet lastName = str((byLabel(/last name|surname|^last$/i) || {}).value);\nif (!firstName && full) {\n  const parts = full.split(/\\s+/);\n  firstName = parts.shift();\n  lastName = lastName || parts.join(' ');\n}\nconst company = str((byLabel(/company|organi[sz]ation|business/i) || {}).value);\nconst name = [firstName, lastName].filter(Boolean).join(' ');\nreturn { email, firstName, lastName, name, company, formName: str(formName), submittedAt: str(createdAt) };"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Signup answers",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Find the email in the answers",
        "nextElementIds": [
          "B2A6CAF3-4FD5-4871-B5B1-73812A7200B4"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Checks an email address with the Email Intelligence API: deliverability, a quality score, free, disposable, role and catch-all flags, sender and domain details, risk levels and known breaches. Uses the Email Intelligence API key. The sections returned depend on your plan.",
          "elementId": "EXTENSION:::SHARED:::default:::abstract-api:::checkEmail",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Check the email with Abstract API Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::abstract-api:::checkEmail",
          "legacyElementId": null,
          "methodName": "checkEmail",
          "position": {
            "x": 845,
            "y": 40
          }
        },
        "flowElementId": "94408FEE-9C56-4A93-887C-E0A112B7F022",
        "groupId": null,
        "id": "B2A6CAF3-4FD5-4871-B5B1-73812A7200B4",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "email",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Signup answers",
                    "subPathSegments": [
                      {
                        "key": "email",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "B764C10B-745B-44D3-83A6-FD03795035F1"
                  }
                ],
                "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": "checkEmail",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Email check",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "abstract-api",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Check the email with Abstract API",
        "nextElementIds": [
          "D810E430-F71E-4235-9393-ECAE7EDB7EC9"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Creates a new contact record in your HubSpot account with the specified properties. The contact will be assigned a unique visitor ID (vid) for future reference. At least one property must be provided to create the contact successfully.",
          "elementId": "EXTENSION:::SHARED:::default:::hubspot:::createContact",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Create the contact in HubSpot Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::hubspot:::createContact",
          "legacyElementId": "JS###v1###HubSpotService###createContact",
          "methodName": "createContact",
          "position": {
            "x": 477,
            "y": 380
          }
        },
        "flowElementId": "1C1BA748-DC10-4996-85DA-29849CD4C64B",
        "groupId": null,
        "id": "CAED1BD6-41DB-482C-844A-48488CD1DE66",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "properties",
              "type": "COMPLEX_LIST",
              "value": [
                {
                  "type": "OBJECT",
                  "value": [
                    {
                      "name": "property",
                      "type": "SIMPLE",
                      "value": {
                        "expression": [
                          {
                            "id": "TEXT",
                            "label": null,
                            "type": "INPUT",
                            "value": "email"
                          }
                        ],
                        "mode": "EXPRESSION",
                        "parseJsonString": false,
                        "resultType": null
                      }
                    },
                    {
                      "name": "value",
                      "type": "SIMPLE",
                      "value": {
                        "expression": [
                          {
                            "id": "ELEMENT_RESULT",
                            "label": "Signup answers",
                            "subPathSegments": [
                              {
                                "key": "email",
                                "optional": false
                              }
                            ],
                            "type": "ELEMENT_LINK",
                            "value": "B764C10B-745B-44D3-83A6-FD03795035F1"
                          }
                        ],
                        "mode": "EXPRESSION",
                        "parseJsonString": false,
                        "resultType": null
                      }
                    }
                  ]
                },
                {
                  "type": "OBJECT",
                  "value": [
                    {
                      "name": "property",
                      "type": "SIMPLE",
                      "value": {
                        "expression": [
                          {
                            "id": "TEXT",
                            "label": null,
                            "type": "INPUT",
                            "value": "firstname"
                          }
                        ],
                        "mode": "EXPRESSION",
                        "parseJsonString": false,
                        "resultType": null
                      }
                    },
                    {
                      "name": "value",
                      "type": "SIMPLE",
                      "value": {
                        "expression": [
                          {
                            "id": "ELEMENT_RESULT",
                            "label": "Signup answers",
                            "subPathSegments": [
                              {
                                "key": "firstName",
                                "optional": false
                              }
                            ],
                            "type": "ELEMENT_LINK",
                            "value": "B764C10B-745B-44D3-83A6-FD03795035F1"
                          }
                        ],
                        "mode": "EXPRESSION",
                        "parseJsonString": false,
                        "resultType": null
                      }
                    }
                  ]
                },
                {
                  "type": "OBJECT",
                  "value": [
                    {
                      "name": "property",
                      "type": "SIMPLE",
                      "value": {
                        "expression": [
                          {
                            "id": "TEXT",
                            "label": null,
                            "type": "INPUT",
                            "value": "lastname"
                          }
                        ],
                        "mode": "EXPRESSION",
                        "parseJsonString": false,
                        "resultType": null
                      }
                    },
                    {
                      "name": "value",
                      "type": "SIMPLE",
                      "value": {
                        "expression": [
                          {
                            "id": "ELEMENT_RESULT",
                            "label": "Signup answers",
                            "subPathSegments": [
                              {
                                "key": "lastName",
                                "optional": false
                              }
                            ],
                            "type": "ELEMENT_LINK",
                            "value": "B764C10B-745B-44D3-83A6-FD03795035F1"
                          }
                        ],
                        "mode": "EXPRESSION",
                        "parseJsonString": false,
                        "resultType": null
                      }
                    }
                  ]
                },
                {
                  "type": "OBJECT",
                  "value": [
                    {
                      "name": "property",
                      "type": "SIMPLE",
                      "value": {
                        "expression": [
                          {
                            "id": "TEXT",
                            "label": null,
                            "type": "INPUT",
                            "value": "company"
                          }
                        ],
                        "mode": "EXPRESSION",
                        "parseJsonString": false,
                        "resultType": null
                      }
                    },
                    {
                      "name": "value",
                      "type": "SIMPLE",
                      "value": {
                        "expression": [
                          {
                            "id": "ELEMENT_RESULT",
                            "label": "Signup answers",
                            "subPathSegments": [
                              {
                                "key": "company",
                                "optional": false
                              }
                            ],
                            "type": "ELEMENT_LINK",
                            "value": "B764C10B-745B-44D3-83A6-FD03795035F1"
                          }
                        ],
                        "mode": "EXPRESSION",
                        "parseJsonString": false,
                        "resultType": null
                      }
                    }
                  ]
                },
                {
                  "type": "OBJECT",
                  "value": [
                    {
                      "name": "property",
                      "type": "SIMPLE",
                      "value": {
                        "expression": [
                          {
                            "id": "TEXT",
                            "label": null,
                            "type": "INPUT",
                            "value": "lifecyclestage"
                          }
                        ],
                        "mode": "EXPRESSION",
                        "parseJsonString": false,
                        "resultType": null
                      }
                    },
                    {
                      "name": "value",
                      "type": "SIMPLE",
                      "value": {
                        "expression": [
                          {
                            "id": "TEXT",
                            "label": null,
                            "type": "INPUT",
                            "value": "lead"
                          }
                        ],
                        "mode": "EXPRESSION",
                        "parseJsonString": false,
                        "resultType": null
                      }
                    }
                  ]
                },
                {
                  "type": "OBJECT",
                  "value": [
                    {
                      "name": "property",
                      "type": "SIMPLE",
                      "value": {
                        "expression": [
                          {
                            "id": "TEXT",
                            "label": null,
                            "type": "INPUT",
                            "value": "email_deliverability"
                          }
                        ],
                        "mode": "EXPRESSION",
                        "parseJsonString": false,
                        "resultType": null
                      }
                    },
                    {
                      "name": "value",
                      "type": "SIMPLE",
                      "value": {
                        "expression": [
                          {
                            "id": "ELEMENT_RESULT",
                            "label": "Email check",
                            "subPathSegments": [
                              {
                                "key": "email_deliverability",
                                "optional": false
                              },
                              {
                                "key": "status",
                                "optional": false
                              }
                            ],
                            "type": "ELEMENT_LINK",
                            "value": "B2A6CAF3-4FD5-4871-B5B1-73812A7200B4"
                          }
                        ],
                        "mode": "EXPRESSION",
                        "parseJsonString": false,
                        "resultType": null
                      }
                    }
                  ]
                },
                {
                  "type": "OBJECT",
                  "value": [
                    {
                      "name": "property",
                      "type": "SIMPLE",
                      "value": {
                        "expression": [
                          {
                            "id": "TEXT",
                            "label": null,
                            "type": "INPUT",
                            "value": "email_quality_score"
                          }
                        ],
                        "mode": "EXPRESSION",
                        "parseJsonString": false,
                        "resultType": null
                      }
                    },
                    {
                      "name": "value",
                      "type": "SIMPLE",
                      "value": {
                        "expression": [
                          {
                            "id": "ELEMENT_RESULT",
                            "label": "Email check",
                            "subPathSegments": [
                              {
                                "key": "email_quality",
                                "optional": false
                              },
                              {
                                "key": "score",
                                "optional": false
                              }
                            ],
                            "type": "ELEMENT_LINK",
                            "value": "B2A6CAF3-4FD5-4871-B5B1-73812A7200B4"
                          }
                        ],
                        "mode": "EXPRESSION",
                        "parseJsonString": false,
                        "resultType": null
                      }
                    }
                  ]
                }
              ]
            }
          ],
          "clientValidationState": {
            "errorMessage": "Block: 'Create the contact in 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": "createContact",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "HubSpot contact",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "hubspot",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Create the contact in HubSpot",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Fires in real time when the selected Tally form receives a new submission. Tally registers a webhook for the form and this trigger runs your flow with the raw submission data: responseId, submissionId, respondentId, formId, formName, createdAt, the raw fields array (each with key, label, type, and value), plus a flattened values map keyed by field label for easy access to answers.",
          "elementId": "EXTENSION:::SHARED:::default:::tally:::onNewSubmission",
          "isFirstElement": true,
          "blockDefinitionId": "api-service-trigger",
          "newElementId": "EXTENSION:::SHARED:::default:::tally:::onNewSubmission",
          "legacyElementId": "JS###v1###Tally###onNewSubmission",
          "methodName": "onNewSubmission",
          "position": {
            "x": 144,
            "y": 40
          }
        },
        "flowElementId": "1AA71C1D-4C93-49C1-A574-0707475900FC",
        "groupId": null,
        "id": "CEC9D313-4F69-4465-89A2-C25BB6D66435",
        "metaInfo": {
          "callbackUrl": null,
          "clientValidationState": {
            "errorMessage": "Block: 'New trial signup', Error: Form is required",
            "valid": false
          },
          "condition": null,
          "connectionId": null,
          "eventName": "onNewSubmission",
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": null
          },
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Trial signup",
          "scope": "SINGLE_APP",
          "serviceId": "tally",
          "slaConditions": [],
          "staticData": {},
          "storeResult": true,
          "subtype": "REALTIME",
          "type": "CUSTOM"
        },
        "name": "New trial signup",
        "nextElementIds": [
          "B764C10B-745B-44D3-83A6-FD03795035F1"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "TRIGGER"
      },
      {
        "clientMetadata": {
          "notes": "Adds new data rows to Google Sheets for AI agents to store processed results, log user interactions, or collect data from automated workflows. Perfect for building databases, tracking metrics, saving form submissions, or creating data collection pipelines.",
          "elementId": "EXTENSION:::SHARED:::default:::google-sheets:::addRow",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Add the signup to the review tab Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::google-sheets:::addRow",
          "legacyElementId": "JS###v1###GoogleSheets###addRow",
          "methodName": "addRow",
          "position": {
            "x": 850,
            "y": 210
          }
        },
        "flowElementId": "DE3622EB-FF3A-4922-A642-D66B798F2B08",
        "groupId": null,
        "id": "E3A4BECE-BFFE-4B79-AA6C-1A90AB13D04D",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "documentId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sheetId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "row",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Review note",
                    "subPathSegments": [
                      {
                        "key": "row",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "C1285023-ED07-4546-BABE-724491D23E44"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": "Block: 'Add the signup to the review tab', Error: Document is required",
            "valid": false
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "addRow",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Review row",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "google-sheets",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Add the signup to the review tab",
        "nextElementIds": [
          "C4554560-292F-4AA3-84FC-2FEAAEC6A407"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Sends messages to Slack channels with optional Block Kit rich layouts. Supports plain text with Slack formatting, or advanced Block Kit JSON for buttons, menus, and interactive elements. Returns the message timestamp and channel ID for later updates or tracking.",
          "elementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Confirm the signup is let go Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 487,
            "y": 510
          }
        },
        "flowElementId": "09CFE0D1-35B1-4E6A-9680-83BD6136A858",
        "groupId": null,
        "id": "CDD446FE-2530-4DD4-92FD-CBAA8261D969",
        "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": "Let go: "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Signup answers",
                    "subPathSegments": [
                      {
                        "key": "email",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "B764C10B-745B-44D3-83A6-FD03795035F1"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " stays on the review tab and is not added to HubSpot."
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "threadId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Review message",
                    "subPathSegments": [
                      {
                        "key": "messageId",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "C4554560-292F-4AA3-84FC-2FEAAEC6A407"
                  }
                ],
                "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": "Let go note",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Confirm the signup is let go",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 1240,
            "y": 49
          }
        },
        "flowElementId": "39A528FE-3A7D-45C4-B767-842529086141",
        "groupId": null,
        "id": "D810E430-F71E-4235-9393-ECAE7EDB7EC9",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "3ba8019f-6895-48b5-aa44-6eca096ea34a",
                "nestedOperation": null,
                "operation": "equal",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Email check",
                      "subPathSegments": [
                        {
                          "key": "email_deliverability",
                          "optional": false
                        },
                        {
                          "key": "status",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "B2A6CAF3-4FD5-4871-B5B1-73812A7200B4"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "STRING",
                "values": [
                  {
                    "expression": [
                      {
                        "id": "TEXT",
                        "label": null,
                        "type": "INPUT",
                        "value": "deliverable"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                ]
              },
              {
                "id": "4a1a3d04-dc1f-4b64-bb3a-c2c3dfcdebd0",
                "nestedOperation": null,
                "operation": "isNotTrue",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Email check",
                      "subPathSegments": [
                        {
                          "key": "email_quality",
                          "optional": false
                        },
                        {
                          "key": "is_disposable",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "B2A6CAF3-4FD5-4871-B5B1-73812A7200B4"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "BOOLEAN",
                "values": []
              },
              {
                "id": "e4351402-c533-460c-b6a7-058aa9f02d86",
                "nestedOperation": null,
                "operation": ">=",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Email check",
                      "subPathSegments": [
                        {
                          "key": "email_quality",
                          "optional": false
                        },
                        {
                          "key": "score",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "B2A6CAF3-4FD5-4871-B5B1-73812A7200B4"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "DOUBLE",
                "values": [
                  {
                    "expression": [
                      {
                        "id": "PLACEHOLDER_DATA",
                        "label": "Minimum quality score",
                        "subPathSegments": null,
                        "type": "EXECUTION_CONTEXT_STATIC_DATA",
                        "value": "Minimum quality score"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                ]
              }
            ],
            "grouping": [
              "3ba8019f-6895-48b5-aa44-6eca096ea34a",
              "AND",
              "4a1a3d04-dc1f-4b64-bb3a-c2c3dfcdebd0",
              "AND",
              "e4351402-c533-460c-b6a7-058aa9f02d86"
            ]
          },
          "elseComponent": {
            "componentId": "C1285023-ED07-4546-BABE-724491D23E44",
            "componentType": "ELEMENT"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Clean signup",
          "storeResult": false,
          "thenComponent": {
            "componentId": "CAED1BD6-41DB-482C-844A-48488CD1DE66",
            "componentType": "ELEMENT"
          }
        },
        "name": "Clean signup?",
        "nextElementIds": [
          "C1285023-ED07-4546-BABE-724491D23E44",
          "CAED1BD6-41DB-482C-844A-48488CD1DE66"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "elementId": "external-callback",
          "isFirstElement": false,
          "blockDefinitionId": "external-callback",
          "position": {
            "x": 110,
            "y": 219
          }
        },
        "flowElementId": "ADFE0E6C-741A-46C6-A04B-330C52AA420B",
        "groupId": null,
        "id": "EF1ADE2C-BFAC-4457-8D43-0CB73C861A3F",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": null,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": null
          },
          "onFailElemId": null,
          "resultAlias": "Ops decision",
          "slaConditions": [],
          "storeResult": true,
          "type": "CALLBACK"
        },
        "name": "Wait for the ops lead's answer",
        "nextElementIds": [
          "E1A5D7EC-848F-4D40-98C9-D10B32D5C947"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "TRIGGER"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 144,
            "y": 389
          }
        },
        "flowElementId": "38BA6376-0865-4A84-B580-160B5491F206",
        "groupId": null,
        "id": "E1A5D7EC-848F-4D40-98C9-D10B32D5C947",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "99e7ae1b-890e-4d6a-b3f2-e70c37161123",
                "nestedOperation": null,
                "operation": "equal",
                "property": {
                  "expression": [
                    {
                      "id": "RESULT",
                      "label": "Ops decision",
                      "subPathSegments": [
                        {
                          "key": "decision",
                          "optional": false
                        }
                      ],
                      "type": "TRIGGER_DATA",
                      "value": "EF1ADE2C-BFAC-4457-8D43-0CB73C861A3F"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "STRING",
                "values": [
                  {
                    "expression": [
                      {
                        "id": "TEXT",
                        "label": null,
                        "type": "INPUT",
                        "value": "keep"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                ]
              }
            ],
            "grouping": [
              "99e7ae1b-890e-4d6a-b3f2-e70c37161123"
            ]
          },
          "elseComponent": {
            "componentId": "CDD446FE-2530-4DD4-92FD-CBAA8261D969",
            "componentType": "ELEMENT"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Keep the signup",
          "storeResult": false,
          "thenComponent": {
            "componentId": "CAED1BD6-41DB-482C-844A-48488CD1DE66",
            "componentType": "ELEMENT"
          }
        },
        "name": "Keep the signup?",
        "nextElementIds": [
          "CAED1BD6-41DB-482C-844A-48488CD1DE66",
          "CDD446FE-2530-4DD4-92FD-CBAA8261D969"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      }
    ],
    "firstElementId": "CEC9D313-4F69-4465-89A2-C25BB6D66435",
    "groups": [],
    "id": "85DC67F9-D53A-4D32-A764-3FBFC978A73A",
    "metaInfo": {
      "clientValidationState": {
        "errorMessage": "Please fix problems before start. Blocks with issues have red badge in the top-right corner of a block, hover it to see what needs to be done.",
        "valid": false
      },
      "errorMessage": "Please fix problems before start. Blocks with issues have red badge in the top-right corner of a block, hover it to see what needs to be done.",
      "executionStaticData": [
        {
          "description": "The URL of the block Wait for the ops lead's answer. The Slack buttons open it.",
          "error": null,
          "name": "Answer link",
          "type": "STRING",
          "value": ""
        },
        {
          "description": "Abstract API's email quality score (0 to 1) a signup needs to go straight into HubSpot.",
          "error": null,
          "name": "Minimum quality score",
          "type": "DOUBLE",
          "value": ""
        }
      ],
      "initialData": null,
      "initialDataDefaultValues": {},
      "ownerFlowVersionId": null,
      "schedule": null,
      "sharedMemory": {
        "anchor": {
          "missingAnchorPolicy": null,
          "path": null,
          "type": "FLOW_MEMORY"
        },
        "expirationInSec": null
      },
      "wasLive": false
    }
  },
  "slaCalendars": [],
  "slaGoals": [],
  "subFlows": [],
  "exportDate": "2026-12-02T08:42:48.213Z"
}
