{
  "elementsLearnedData": [],
  "elementsTestData": [],
  "flow": {
    "id": "BE6DC7A2-130B-46EE-AFD5-343521024F10",
    "name": "Argorant: interested reply to HubSpot deal"
  },
  "flowVersion": {
    "clientMetadata": {
      "viewport": {
        "x": -70,
        "y": 0,
        "zoom": 1
      },
      "autoSave": false,
      "descriptions": {
        "flow": "When a campaign reply is marked Interested in Argorant, finds the conversation and the company, creates the HubSpot contact (if new) and a deal, drafts an answer with AI and asks the rep in Slack. Send the draft replies in the Argorant thread and sets the conversation's status; I'll reply myself leaves the thread to the rep.",
        "initialData": "",
        "initialDataFields": {}
      }
    },
    "description": "When a campaign reply is marked Interested in Argorant, finds the conversation and the company, creates the HubSpot contact and deal, drafts an answer and asks the rep in Slack. On Send the draft, replies in the Argorant thread and sets the conversation's status.",
    "elements": [
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Pick the contact Result"
          },
          "position": {
            "x": 110,
            "y": 219
          }
        },
        "flowElementId": "91A60169-857D-4CAB-A671-05B12319E6DF",
        "groupId": null,
        "id": "BC5FB0F2-89C8-4DEC-AE39-A46242AC86A6",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "existingVid",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "HubSpot search",
                    "subPathSegments": [
                      {
                        "key": "contacts",
                        "optional": false
                      },
                      {
                        "index": 0,
                        "last": false
                      },
                      {
                        "key": "vid",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "8708C036-8F8A-4643-B8CA-C3C56F73CC7B"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "newVid",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "HubSpot contact",
                    "subPathSegments": [
                      {
                        "key": "vid",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "60D650C8-FF5D-49BB-A378-B22B7532036B"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "// The run took one of two paths: the contact already existed, or it was just created.\nconst vid = existingVid || newVid;\nif (!vid) throw new Error('No HubSpot contact ID to attach the deal to');\nreturn { vid, existed: Boolean(existingVid) };"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Contact ID",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Pick the contact",
        "nextElementIds": [
          "181792C3-68EB-4FF5-BC20-578DEA891EF5"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "ai-agent",
          "isFirstElement": false,
          "blockDefinitionId": "ai-agent",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Draft the answer Result"
          },
          "tools": {},
          "position": {
            "x": 1190,
            "y": 49
          }
        },
        "flowElementId": "6179F2FB-2519-4032-8886-22CE49386007",
        "groupId": null,
        "id": "E22334D0-D4A8-492D-8C46-512C82E25A55",
        "metaInfo": {
          "aiApiKey": null,
          "aiModel": "claude-sonnet-5",
          "aiProvider": "ANTHROPIC",
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "dynamicAiApiKey": {
            "expression": [
              {
                "id": "PLACEHOLDER_DATA",
                "label": "Anthropic key",
                "subPathSegments": null,
                "type": "EXECUTION_CONTEXT_STATIC_DATA",
                "value": "Anthropic key"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "files": [],
          "forceParsedOutput": true,
          "langSmithSettings": {
            "enabled": false,
            "apiKey": null,
            "projectName": null,
            "label": "FlowRunner AI-Agent",
            "accountCluster": "US"
          },
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "messagesHistoryEnabled": false,
          "messagesHistoryLimit": 15,
          "onFailElemId": null,
          "resultAlias": "Draft",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "systemPrompt": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "You help a sales rep answer a prospect who replied with interest to a cold email campaign sent through Argorant. Reply with JSON only, with these fields:\nfirstName: the prospect's first name, taken from their name or, failing that, their email address\nlastName: the prospect's last name, or empty text if you cannot tell\nsummary: one sentence on what the prospect said, asked or proposed\nnote: anything the rep should know before answering, such as a time zone difference, a question the draft cannot answer without a fact the rep has, or a sign the reply is not really interested; empty text if there is nothing\ndraft: the answer the rep could send, as plain text, two to four short sentences in the tone of the thread. Answer what the prospect asked, propose one concrete next step, and never invent prices, dates or facts. No subject line, no greeting line such as Dear, no signature and no placeholders in square brackets."
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "tools": [],
          "type": "AI_AGENT",
          "userPrompt": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "Campaign: "
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Conversation",
                "subPathSegments": [
                  {
                    "key": "events",
                    "optional": false
                  },
                  {
                    "index": 0,
                    "last": false
                  },
                  {
                    "key": "campaign_name",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "610F360C-61D1-4C48-9A33-1E5BCF9092A1"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "\nSubject: "
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Conversation",
                "subPathSegments": [
                  {
                    "key": "events",
                    "optional": false
                  },
                  {
                    "index": 0,
                    "last": false
                  },
                  {
                    "key": "subject",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "610F360C-61D1-4C48-9A33-1E5BCF9092A1"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "\nFrom: "
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Conversation",
                "subPathSegments": [
                  {
                    "key": "events",
                    "optional": false
                  },
                  {
                    "index": 0,
                    "last": false
                  },
                  {
                    "key": "lead_name",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "610F360C-61D1-4C48-9A33-1E5BCF9092A1"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": " <"
              },
              {
                "id": "RESULT",
                "label": "Interested reply",
                "subPathSegments": [
                  {
                    "key": "data",
                    "optional": false
                  },
                  {
                    "key": "lead_email",
                    "optional": false
                  }
                ],
                "type": "TRIGGER_DATA",
                "value": "D6EBDC42-C10D-433C-8A40-86D0648716F6"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "> at "
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Conversation",
                "subPathSegments": [
                  {
                    "key": "events",
                    "optional": false
                  },
                  {
                    "index": 0,
                    "last": false
                  },
                  {
                    "key": "company",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "610F360C-61D1-4C48-9A33-1E5BCF9092A1"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "\nThe reply arrived in our mailbox "
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Conversation",
                "subPathSegments": [
                  {
                    "key": "events",
                    "optional": false
                  },
                  {
                    "index": 0,
                    "last": false
                  },
                  {
                    "key": "inbox_email",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "610F360C-61D1-4C48-9A33-1E5BCF9092A1"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": " at "
              },
              {
                "id": "RESULT",
                "label": "Interested reply",
                "subPathSegments": [
                  {
                    "key": "data",
                    "optional": false
                  },
                  {
                    "key": "received_at",
                    "optional": false
                  }
                ],
                "type": "TRIGGER_DATA",
                "value": "D6EBDC42-C10D-433C-8A40-86D0648716F6"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": ".\n\nTheir reply:\n"
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Conversation",
                "subPathSegments": [
                  {
                    "key": "events",
                    "optional": false
                  },
                  {
                    "index": 0,
                    "last": false
                  },
                  {
                    "key": "body",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "610F360C-61D1-4C48-9A33-1E5BCF9092A1"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "\n\nWhat Argorant knows about the company:\n"
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Company",
                "subPathSegments": [
                  {
                    "key": "company",
                    "optional": false
                  },
                  {
                    "key": "description",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "691B56CA-AA21-4E13-BBF7-FAEDCAF0E245"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "\nIndustry: "
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Company",
                "subPathSegments": [
                  {
                    "key": "company",
                    "optional": false
                  },
                  {
                    "key": "industry",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "691B56CA-AA21-4E13-BBF7-FAEDCAF0E245"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": ". Size: "
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Company",
                "subPathSegments": [
                  {
                    "key": "company",
                    "optional": false
                  },
                  {
                    "key": "employee_range",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "691B56CA-AA21-4E13-BBF7-FAEDCAF0E245"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": " people. Based in "
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Company",
                "subPathSegments": [
                  {
                    "key": "company",
                    "optional": false
                  },
                  {
                    "key": "location",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "691B56CA-AA21-4E13-BBF7-FAEDCAF0E245"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": ". Founded "
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Company",
                "subPathSegments": [
                  {
                    "key": "company",
                    "optional": false
                  },
                  {
                    "key": "year_founded",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "691B56CA-AA21-4E13-BBF7-FAEDCAF0E245"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "."
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          }
        },
        "name": "Draft the answer",
        "nextElementIds": [
          "8708C036-8F8A-4643-B8CA-C3C56F73CC7B"
        ],
        "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,
          "dynamicOptionLabels": {
            "channelId": {}
          },
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Confirm it went out Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 110,
            "y": 550
          }
        },
        "flowElementId": "4F4B3B75-5548-4425-9895-E3203431DFE6",
        "groupId": null,
        "id": "52CD1582-FDFC-4A0B-857F-6AC4737BBEF4",
        "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": "Sent to "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Conversation",
                    "subPathSegments": [
                      {
                        "key": "events",
                        "optional": false
                      },
                      {
                        "index": 0,
                        "last": false
                      },
                      {
                        "key": "lead_name",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "610F360C-61D1-4C48-9A33-1E5BCF9092A1"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " from "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Conversation",
                    "subPathSegments": [
                      {
                        "key": "events",
                        "optional": false
                      },
                      {
                        "index": 0,
                        "last": false
                      },
                      {
                        "key": "inbox_email",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "610F360C-61D1-4C48-9A33-1E5BCF9092A1"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ". The conversation in Argorant is now "
                  },
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Status after reply",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Status after reply"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "."
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "threadId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Question to rep",
                    "subPathSegments": [
                      {
                        "key": "messageId",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "2F098232-9780-49E2-9B8A-7963EF617C18"
                  }
                ],
                "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": "Sent confirmation",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Confirm it went out",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Sends messages to Slack channels with optional Block Kit rich layouts. Supports plain text with Slack formatting, or advanced Block Kit JSON for buttons, menus, and interactive elements. Returns the message timestamp and channel ID for later updates or tracking.",
          "elementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "isFirstElement": false,
          "dynamicOptionLabels": {
            "channelId": {}
          },
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Ask the rep in Slack Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 838,
            "y": 380
          }
        },
        "flowElementId": "5D89032D-99A7-4F22-98E3-3AB2BCFE4D4A",
        "groupId": null,
        "id": "2F098232-9780-49E2-9B8A-7963EF617C18",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "channelId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ""
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "messageText",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Question card",
                    "subPathSegments": [
                      {
                        "key": "text",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "5A65E4ED-D7AD-427E-AD2F-F109B239D793"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "threadId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sendAsBot",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botName",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botIcon",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "replyBroadcast",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "imageURL",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "blocks",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Question card",
                    "subPathSegments": [
                      {
                        "key": "blocks",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "5A65E4ED-D7AD-427E-AD2F-F109B239D793"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "sendMessageToChannel",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Question to rep",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Ask the rep in Slack",
        "nextElementIds": [
          "668694F7-1252-4D78-84E4-2E5EF3E6652F"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Fires when a reply gets the Interested or Meeting request status, in the app or through Set Reply Status. It fires only when the status changes. Needs the Pro plan or higher.",
          "elementId": "EXTENSION:::SHARED:::default:::argorant:::onInterestedReply",
          "isFirstElement": true,
          "blockDefinitionId": "api-service-trigger",
          "newElementId": "EXTENSION:::SHARED:::default:::argorant:::onInterestedReply",
          "legacyElementId": null,
          "methodName": "onInterestedReply",
          "position": {
            "x": 110,
            "y": 40
          }
        },
        "flowElementId": "3D28AB1A-C4DE-4377-B471-BC17ED248560",
        "groupId": null,
        "id": "D6EBDC42-C10D-433C-8A40-86D0648716F6",
        "metaInfo": {
          "callbackUrl": null,
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": null,
          "connectionId": null,
          "eventName": "onInterestedReply",
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": null
          },
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Interested reply",
          "scope": "SINGLE_APP",
          "serviceId": "argorant",
          "slaConditions": [],
          "staticData": {},
          "storeResult": true,
          "subtype": "REALTIME",
          "type": "CUSTOM"
        },
        "name": "Interested reply",
        "nextElementIds": [
          "610F360C-61D1-4C48-9A33-1E5BCF9092A1"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "TRIGGER"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 1190,
            "y": 559
          }
        },
        "flowElementId": "1DFA888F-A595-4F83-ADEE-073A1FA48BC8",
        "groupId": null,
        "id": "DD97B31B-8846-4589-B995-209101D318A8",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "56fc1845-600b-4e13-a5c6-16fb1481eeb3",
                "nestedOperation": null,
                "operation": "equal",
                "property": {
                  "expression": [
                    {
                      "id": "RESULT",
                      "label": "Rep decision",
                      "subPathSegments": [
                        {
                          "key": "decision",
                          "optional": false
                        }
                      ],
                      "type": "TRIGGER_DATA",
                      "value": "668694F7-1252-4D78-84E4-2E5EF3E6652F"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "STRING",
                "values": [
                  {
                    "expression": [
                      {
                        "id": "TEXT",
                        "label": null,
                        "type": "INPUT",
                        "value": "send"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                ]
              }
            ],
            "grouping": [
              "56fc1845-600b-4e13-a5c6-16fb1481eeb3"
            ]
          },
          "elseComponent": {
            "componentId": "90E42EED-AF2C-4497-B652-F8415877CF5C",
            "componentType": "ELEMENT"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Send the draft",
          "storeResult": false,
          "thenComponent": {
            "componentId": "C8EDEA91-BA66-47C4-AC14-DFBDE5127F02",
            "componentType": "ELEMENT"
          }
        },
        "name": "Send the draft?",
        "nextElementIds": [
          "C8EDEA91-BA66-47C4-AC14-DFBDE5127F02",
          "90E42EED-AF2C-4497-B652-F8415877CF5C"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 837,
            "y": 219
          }
        },
        "flowElementId": "ED0A6D16-241B-49CE-A136-0F6FB740191B",
        "groupId": null,
        "id": "31DB320A-DFE0-48F8-B44B-FB746BDEA397",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "baf9d46a-4cd3-4760-b93a-4c9d0b09d6ee",
                "nestedOperation": null,
                "operation": "arrayIsNotEmpty",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "HubSpot search",
                      "subPathSegments": [
                        {
                          "key": "contacts",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "8708C036-8F8A-4643-B8CA-C3C56F73CC7B"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "ARRAY",
                "values": []
              }
            ],
            "grouping": [
              "baf9d46a-4cd3-4760-b93a-4c9d0b09d6ee"
            ]
          },
          "elseComponent": {
            "componentId": "60D650C8-FF5D-49BB-A378-B22B7532036B",
            "componentType": "ELEMENT"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Already in HubSpot",
          "storeResult": false,
          "thenComponent": {
            "componentId": "BC5FB0F2-89C8-4DEC-AE39-A46242AC86A6",
            "componentType": "ELEMENT"
          }
        },
        "name": "Already in HubSpot?",
        "nextElementIds": [
          "BC5FB0F2-89C8-4DEC-AE39-A46242AC86A6",
          "60D650C8-FF5D-49BB-A378-B22B7532036B"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "notes": "Gets one company by its website domain: what it does, industry, size, revenue band, founding year, place, technologies, email format and how many contacts are on record. The full profile spends 1 credit, unless you already pay for people at that company or opened it in the last 30 days; an unknown domain is free.",
          "elementId": "EXTENSION:::SHARED:::default:::argorant:::lookUpCompany",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Look up the company Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::argorant:::lookUpCompany",
          "legacyElementId": null,
          "methodName": "lookUpCompany",
          "position": {
            "x": 834,
            "y": 40
          }
        },
        "flowElementId": "77C86CAE-7A5E-4D52-8A91-EB0176AF4696",
        "groupId": null,
        "id": "691B56CA-AA21-4E13-BBF7-FAEDCAF0E245",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "domain",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Interested reply",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "lead_email",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "D6EBDC42-C10D-433C-8A40-86D0648716F6"
                  }
                ],
                "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": "lookUpCompany",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Company",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "argorant",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Look up the company",
        "nextElementIds": [
          "E22334D0-D4A8-492D-8C46-512C82E25A55"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Write the question for the rep Result"
          },
          "position": {
            "x": 430,
            "y": 389
          }
        },
        "flowElementId": "089AC6C2-0B48-4B15-9DB6-511659BFBA38",
        "groupId": null,
        "id": "5A65E4ED-D7AD-427E-AD2F-F109B239D793",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "leadName",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Conversation",
                    "subPathSegments": [
                      {
                        "key": "events",
                        "optional": false
                      },
                      {
                        "index": 0,
                        "last": false
                      },
                      {
                        "key": "lead_name",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "610F360C-61D1-4C48-9A33-1E5BCF9092A1"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "company",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Conversation",
                    "subPathSegments": [
                      {
                        "key": "events",
                        "optional": false
                      },
                      {
                        "index": 0,
                        "last": false
                      },
                      {
                        "key": "company",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "610F360C-61D1-4C48-9A33-1E5BCF9092A1"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "campaign",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Conversation",
                    "subPathSegments": [
                      {
                        "key": "events",
                        "optional": false
                      },
                      {
                        "index": 0,
                        "last": false
                      },
                      {
                        "key": "campaign_name",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "610F360C-61D1-4C48-9A33-1E5BCF9092A1"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "reply",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Conversation",
                    "subPathSegments": [
                      {
                        "key": "events",
                        "optional": false
                      },
                      {
                        "index": 0,
                        "last": false
                      },
                      {
                        "key": "body",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "610F360C-61D1-4C48-9A33-1E5BCF9092A1"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "inboxEmail",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Conversation",
                    "subPathSegments": [
                      {
                        "key": "events",
                        "optional": false
                      },
                      {
                        "index": 0,
                        "last": false
                      },
                      {
                        "key": "inbox_email",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "610F360C-61D1-4C48-9A33-1E5BCF9092A1"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "summary",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Draft",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "summary",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "E22334D0-D4A8-492D-8C46-512C82E25A55"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "note",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Draft",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "note",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "E22334D0-D4A8-492D-8C46-512C82E25A55"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "draft",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Draft",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "draft",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "E22334D0-D4A8-492D-8C46-512C82E25A55"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "dealId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "HubSpot deal",
                    "subPathSegments": [
                      {
                        "key": "dealId",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "181792C3-68EB-4FF5-BC20-578DEA891EF5"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "portalId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "HubSpot deal",
                    "subPathSegments": [
                      {
                        "key": "portalId",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "181792C3-68EB-4FF5-BC20-578DEA891EF5"
                  }
                ],
                "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 link = (decision) => `${answerLink}?execution=${encodeURIComponent(executionId)}&decision=${decision}`;\nconst dealUrl = `https://app.hubspot.com/contacts/${portalId}/deal/${dealId}`;\nconst quoted = String(reply || '').trim().slice(0, 600).split('\\n').map(l => `> ${l}`).join('\\n');\nconst lines = [\n  `*${leadName} at ${company} replied to ${campaign}*`,\n  quoted,\n  summary ? `What they said: ${summary}` : null,\n  note ? `Note: ${note}` : null,\n  `*Draft answer:*\\n${draft}`,\n  `Send the draft and it goes out now from ${inboxEmail}, in the same thread, with no recall. The deal is already in HubSpot: <${dealUrl}|open it>.`,\n].filter(Boolean);\nreturn {\n  text: `${leadName} at ${company} replied to ${campaign}. A draft answer is ready.`,\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: 'Send the draft' }, url: link('send') },\n      { type: 'button', text: { type: 'plain_text', text: \"I'll reply myself\" }, url: link('inbox') },\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": "Question card",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Write the question for the rep",
        "nextElementIds": [
          "2F098232-9780-49E2-9B8A-7963EF617C18"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Searches for contacts across multiple fields including email address, name, phone number, and company. Supports partial matching and returns paginated results with customizable property selection and sorting options.",
          "elementId": "EXTENSION:::SHARED:::default:::hubspot:::searchContacts",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Find the contact in HubSpot Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::hubspot:::searchContacts",
          "legacyElementId": "JS###v1###HubSpotService###searchContacts",
          "methodName": "searchContacts",
          "position": {
            "x": 1164,
            "y": 210
          }
        },
        "flowElementId": "8F40212A-5ECB-4351-90DC-1FEB963A4CF2",
        "groupId": null,
        "id": "8708C036-8F8A-4643-B8CA-C3C56F73CC7B",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "q",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Interested reply",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "lead_email",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "D6EBDC42-C10D-433C-8A40-86D0648716F6"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "count",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "NUMBER",
                    "label": null,
                    "type": "INPUT",
                    "value": 1
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "offset",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "property",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sort",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "order",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": "Block: 'Find 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": "searchContacts",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "HubSpot search",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "hubspot",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Find the contact in HubSpot",
        "nextElementIds": [
          "31DB320A-DFE0-48F8-B44B-FB746BDEA397"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Sends a plain text answer in the conversation's thread, from the mailbox that received the reply. It goes out at once.",
          "elementId": "EXTENSION:::SHARED:::default:::argorant:::replyInThread",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Reply in the Argorant thread Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::argorant:::replyInThread",
          "legacyElementId": null,
          "methodName": "replyInThread",
          "position": {
            "x": 811,
            "y": 550
          }
        },
        "flowElementId": "245D8EB9-6DCC-4B1B-9EC3-840746F906EE",
        "groupId": null,
        "id": "C8EDEA91-BA66-47C4-AC14-DFBDE5127F02",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "conversationId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Conversation",
                    "subPathSegments": [
                      {
                        "key": "events",
                        "optional": false
                      },
                      {
                        "index": 0,
                        "last": false
                      },
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "610F360C-61D1-4C48-9A33-1E5BCF9092A1"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "body",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Draft",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "draft",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "E22334D0-D4A8-492D-8C46-512C82E25A55"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "idempotencyKey",
              "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
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "replyInThread",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Argorant reply",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "argorant",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Reply in the Argorant thread",
        "nextElementIds": [
          "13D2C6D5-F2FC-452B-A4C0-C3645B6DCC8E"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Lists replies, bounces and opt-outs across every campaign, one conversation per person and campaign, latest activity first. Free.",
          "elementId": "EXTENSION:::SHARED:::default:::argorant:::listConversations",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Find the conversation in the Unibox Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::argorant:::listConversations",
          "legacyElementId": null,
          "methodName": "listConversations",
          "position": {
            "x": 410,
            "y": 40
          }
        },
        "flowElementId": "188BCAB9-D14C-47ED-AA09-4AA90A9F5DD7",
        "groupId": null,
        "id": "610F360C-61D1-4C48-9A33-1E5BCF9092A1",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "folder",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "campaignId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Interested reply",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "campaign_id",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "D6EBDC42-C10D-433C-8A40-86D0648716F6"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "status",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "search",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Interested reply",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "lead_email",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "D6EBDC42-C10D-433C-8A40-86D0648716F6"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "updatedAfter",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "receivedAfter",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "limit",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "NUMBER",
                    "label": null,
                    "type": "INPUT",
                    "value": 1
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "cursor",
              "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": "listConversations",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Conversation",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "argorant",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Find the conversation in the Unibox",
        "nextElementIds": [
          "691B56CA-AA21-4E13-BBF7-FAEDCAF0E245"
        ],
        "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": 427,
            "y": 210
          }
        },
        "flowElementId": "0077BFB2-4249-49A3-8B1C-7A3A3E51E12C",
        "groupId": null,
        "id": "60D650C8-FF5D-49BB-A378-B22B7532036B",
        "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": "RESULT",
                            "label": "Interested reply",
                            "subPathSegments": [
                              {
                                "key": "data",
                                "optional": false
                              },
                              {
                                "key": "lead_email",
                                "optional": false
                              }
                            ],
                            "type": "TRIGGER_DATA",
                            "value": "D6EBDC42-C10D-433C-8A40-86D0648716F6"
                          }
                        ],
                        "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": "Draft",
                            "subPathSegments": [
                              {
                                "key": "output",
                                "optional": false
                              },
                              {
                                "key": "firstName",
                                "optional": false
                              }
                            ],
                            "type": "ELEMENT_LINK",
                            "value": "E22334D0-D4A8-492D-8C46-512C82E25A55"
                          }
                        ],
                        "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": "Draft",
                            "subPathSegments": [
                              {
                                "key": "output",
                                "optional": false
                              },
                              {
                                "key": "lastName",
                                "optional": false
                              }
                            ],
                            "type": "ELEMENT_LINK",
                            "value": "E22334D0-D4A8-492D-8C46-512C82E25A55"
                          }
                        ],
                        "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": "Conversation",
                            "subPathSegments": [
                              {
                                "key": "events",
                                "optional": false
                              },
                              {
                                "index": 0,
                                "last": false
                              },
                              {
                                "key": "company",
                                "optional": false
                              }
                            ],
                            "type": "ELEMENT_LINK",
                            "value": "610F360C-61D1-4C48-9A33-1E5BCF9092A1"
                          }
                        ],
                        "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
                      }
                    }
                  ]
                }
              ]
            }
          ],
          "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": [
          "BC5FB0F2-89C8-4DEC-AE39-A46242AC86A6"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "external-callback",
          "isFirstElement": false,
          "blockDefinitionId": "external-callback",
          "position": {
            "x": 1173,
            "y": 389
          }
        },
        "flowElementId": "C622F03E-E797-4FD5-948D-28FE929184EC",
        "groupId": null,
        "id": "668694F7-1252-4D78-84E4-2E5EF3E6652F",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": null,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": null
          },
          "onFailElemId": null,
          "resultAlias": "Rep decision",
          "slaConditions": [],
          "storeResult": true,
          "type": "CALLBACK"
        },
        "name": "Wait for the rep's answer",
        "nextElementIds": [
          "DD97B31B-8846-4589-B995-209101D318A8"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "TRIGGER"
      },
      {
        "clientMetadata": {
          "notes": "Creates a new deal record in your HubSpot account with the specified properties. Deals represent sales opportunities and can be associated with contacts and companies to track the sales pipeline effectively.",
          "elementId": "EXTENSION:::SHARED:::default:::hubspot:::createDeal",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Create the deal Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::hubspot:::createDeal",
          "legacyElementId": "JS###v1###HubSpotService###createDeal",
          "methodName": "createDeal",
          "position": {
            "x": 110,
            "y": 380
          }
        },
        "flowElementId": "B0B0121D-19A6-4DD6-BD0E-B91B8D614417",
        "groupId": null,
        "id": "181792C3-68EB-4FF5-BC20-578DEA891EF5",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "properties",
              "type": "COMPLEX_LIST",
              "value": [
                {
                  "type": "OBJECT",
                  "value": [
                    {
                      "name": "property",
                      "type": "SIMPLE",
                      "value": {
                        "expression": [
                          {
                            "id": "TEXT",
                            "label": null,
                            "type": "INPUT",
                            "value": "dealname"
                          }
                        ],
                        "mode": "EXPRESSION",
                        "parseJsonString": false,
                        "resultType": null
                      }
                    },
                    {
                      "name": "value",
                      "type": "SIMPLE",
                      "value": {
                        "expression": [
                          {
                            "id": "ELEMENT_RESULT",
                            "label": "Conversation",
                            "subPathSegments": [
                              {
                                "key": "events",
                                "optional": false
                              },
                              {
                                "index": 0,
                                "last": false
                              },
                              {
                                "key": "company",
                                "optional": false
                              }
                            ],
                            "type": "ELEMENT_LINK",
                            "value": "610F360C-61D1-4C48-9A33-1E5BCF9092A1"
                          },
                          {
                            "id": "TEXT",
                            "label": null,
                            "type": "INPUT",
                            "value": ": "
                          },
                          {
                            "id": "ELEMENT_RESULT",
                            "label": "Conversation",
                            "subPathSegments": [
                              {
                                "key": "events",
                                "optional": false
                              },
                              {
                                "index": 0,
                                "last": false
                              },
                              {
                                "key": "campaign_name",
                                "optional": false
                              }
                            ],
                            "type": "ELEMENT_LINK",
                            "value": "610F360C-61D1-4C48-9A33-1E5BCF9092A1"
                          }
                        ],
                        "mode": "EXPRESSION",
                        "parseJsonString": false,
                        "resultType": null
                      }
                    }
                  ]
                },
                {
                  "type": "OBJECT",
                  "value": [
                    {
                      "name": "property",
                      "type": "SIMPLE",
                      "value": {
                        "expression": [
                          {
                            "id": "TEXT",
                            "label": null,
                            "type": "INPUT",
                            "value": "dealstage"
                          }
                        ],
                        "mode": "EXPRESSION",
                        "parseJsonString": false,
                        "resultType": null
                      }
                    },
                    {
                      "name": "value",
                      "type": "SIMPLE",
                      "value": {
                        "expression": [
                          {
                            "id": "TEXT",
                            "label": null,
                            "type": "INPUT",
                            "value": "appointmentscheduled"
                          }
                        ],
                        "mode": "EXPRESSION",
                        "parseJsonString": false,
                        "resultType": null
                      }
                    }
                  ]
                },
                {
                  "type": "OBJECT",
                  "value": [
                    {
                      "name": "property",
                      "type": "SIMPLE",
                      "value": {
                        "expression": [
                          {
                            "id": "TEXT",
                            "label": null,
                            "type": "INPUT",
                            "value": "pipeline"
                          }
                        ],
                        "mode": "EXPRESSION",
                        "parseJsonString": false,
                        "resultType": null
                      }
                    },
                    {
                      "name": "value",
                      "type": "SIMPLE",
                      "value": {
                        "expression": [
                          {
                            "id": "TEXT",
                            "label": null,
                            "type": "INPUT",
                            "value": "default"
                          }
                        ],
                        "mode": "EXPRESSION",
                        "parseJsonString": false,
                        "resultType": null
                      }
                    }
                  ]
                }
              ]
            },
            {
              "name": "associatedCompanyIds",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "associatedVids",
              "type": "SIMPLE_LIST",
              "value": [
                {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Contact ID",
                      "subPathSegments": [
                        {
                          "key": "vid",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "BC5FB0F2-89C8-4DEC-AE39-A46242AC86A6"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                }
              ]
            }
          ],
          "clientValidationState": {
            "errorMessage": "Block: 'Create the deal', 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": "createDeal",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "HubSpot deal",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "hubspot",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Create the deal",
        "nextElementIds": [
          "5A65E4ED-D7AD-427E-AD2F-F109B239D793"
        ],
        "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,
          "dynamicOptionLabels": {
            "channelId": {}
          },
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Leave the thread to the rep Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 815,
            "y": 680
          }
        },
        "flowElementId": "E340ED4C-3417-43FC-899E-A3F709DA97D5",
        "groupId": null,
        "id": "90E42EED-AF2C-4497-B652-F8415877CF5C",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "channelId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ""
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "messageText",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "Left for you. Nothing was sent; answer "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Conversation",
                    "subPathSegments": [
                      {
                        "key": "events",
                        "optional": false
                      },
                      {
                        "index": 0,
                        "last": false
                      },
                      {
                        "key": "lead_name",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "610F360C-61D1-4C48-9A33-1E5BCF9092A1"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " from your own inbox. The contact and deal are in HubSpot."
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "threadId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Question to rep",
                    "subPathSegments": [
                      {
                        "key": "messageId",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "2F098232-9780-49E2-9B8A-7963EF617C18"
                  }
                ],
                "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": "Left confirmation",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Leave the thread to the rep",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Sets the status of a conversation: a built-in status or one of your own pipeline stages. The built-in Interested status has the key positive.",
          "elementId": "EXTENSION:::SHARED:::default:::argorant:::setReplyStatus",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Set the conversation's status Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::argorant:::setReplyStatus",
          "legacyElementId": null,
          "methodName": "setReplyStatus",
          "position": {
            "x": 431,
            "y": 550
          }
        },
        "flowElementId": "FD81DCC2-7130-4F49-A6D3-0447805F84D4",
        "groupId": null,
        "id": "13D2C6D5-F2FC-452B-A4C0-C3645B6DCC8E",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "conversationId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Conversation",
                    "subPathSegments": [
                      {
                        "key": "events",
                        "optional": false
                      },
                      {
                        "index": 0,
                        "last": false
                      },
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "610F360C-61D1-4C48-9A33-1E5BCF9092A1"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "status",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Status after reply",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Status after reply"
                  }
                ],
                "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": "setReplyStatus",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Status set",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "argorant",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Set the conversation's status",
        "nextElementIds": [
          "52CD1582-FDFC-4A0B-857F-6AC4737BBEF4"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      }
    ],
    "firstElementId": "D6EBDC42-C10D-433C-8A40-86D0648716F6",
    "groups": [],
    "id": "913315C4-21A1-4634-A213-099E1BD712F1",
    "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 Anthropic key the drafting agent uses.",
          "error": null,
          "name": "Anthropic key",
          "type": "API_KEY",
          "value": null
        },
        {
          "description": "The URL of the block Wait for the rep's answer. The Slack buttons open it.",
          "error": null,
          "name": "Answer link",
          "type": "STRING",
          "value": ""
        },
        {
          "description": "The Argorant reply status key the conversation gets once the draft is sent: a built-in key such as meeting_booked, or the key of one of your own pipeline stages.",
          "error": null,
          "name": "Status after reply",
          "type": "STRING",
          "value": ""
        }
      ],
      "initialData": null,
      "initialDataDefaultValues": {},
      "ownerFlowVersionId": null,
      "schedule": null,
      "sharedMemory": {
        "anchor": {
          "missingAnchorPolicy": null,
          "path": null,
          "type": "FLOW_MEMORY"
        },
        "expirationInSec": null
      },
      "wasLive": false
    }
  },
  "slaCalendars": [],
  "slaGoals": [],
  "subFlows": [],
  "exportDate": "2026-12-02T08:43:03.047Z"
}
