Task: LoneScale - Tracking contacts' job changes to Salesforce V2

n8n workflow JSON:
{"meta":{"instanceId":"cfcf523e0c8c498776ae0b6a27a387f41fc3bf83fc905f5a93f8d0bdf4266c6f"},"nodes":[{"id":"2e0133e4-b3e7-4b04-99f4-820cd6b1d77f","name":"LoneScale - GetJobChanges","type":"n8n-nodes-base.webhook","position":[-1560,160],"webhookId":"b3d01d9c-7351-4a2e-afa3-9ca06aab7a70","parameters":{"path":"lonescalecontacttracking","options":{},"httpMethod":"POST"},"typeVersion":1},{"id":"542045be-1f2a-48cd-b8bd-356ecd23cd6e","name":"changedCompanyTrue","type":"n8n-nodes-base.if","position":[-820,160],"parameters":{"conditions":{"string":[{"value1":"={{ $json[\"body\"][\"lonescale_change_company\"] }}","value2":"TRUE"}],"boolean":[{"value1":"={{ $json[\"body\"][\"lonescale_change_company\"] }}","value2":"={{ true }}"}]},"combineOperation":"any"},"typeVersion":1},{"id":"9bcab3ef-ac59-4647-9e7e-6164c9ae872c","name":"companyLinkedinId","type":"n8n-nodes-base.if","position":[-620,160],"parameters":{"conditions":{"string":[{"value1":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_company_linkedin_id\"] }}","operation":"isNotEmpty"}]}},"typeVersion":1},{"id":"d3e4b961-c98c-451f-91f7-5e3efbefcbb1","name":"newSalesforceAccount","type":"n8n-nodes-base.if","position":[-180,160],"parameters":{"conditions":{"string":[{"value1":"={{ $json[\"Id\"] }}","operation":"isNotEmpty"}]}},"typeVersion":1},{"id":"0394b75b-8c7a-4176-a243-c2f4a95be4d0","name":"personList","type":"n8n-nodes-base.code","position":[2380,-340],"parameters":{"jsCode":"const result = [];\n\nfor (const item of $input.all()) {\n  // Split the input data into individual items\n  const items = item.json.result.split(',').map(i => i.trim());\n  // Loop through each item\n  for (let i = 0; i < items.length; i += 3) {\n    // Check if there are at least three items left in the array\n    if (items.length - i < 3) {\n      break;\n    }\n    // Create a new data object to store the key/value pairs\n    const data = {};\n    // Split the item into key/value pairs\n    const parts1 = items[i].split(':');\n    const parts2 = items[i + 1].split(':');\n    const parts3 = items[i + 2].split(':');\n    // Set the key and value for the data object, stripping out any extra characters\n    data[\"name\"] = parts1[1].replace(/[\\[\\{\\]\\}\\\"]/g,'').trim();\n    data[parts2[0].replace(/[\\[\\{\\]\\}\\\"]/g,'').trim()] = parts2[1].replace(/[\\[\\{\\]\\}\\\"]/g,'').trim();\n    data[parts3[0].replace(/[\\[\\{\\]\\}\\\"]/g,'').trim()] = parts3[1].replace(/[\\[\\{\\]\\}\\\"]/g,'').trim();\n    // Push the data object to the result array\n    result.push(data);\n  }\n}\n\nreturn result;\n"},"typeVersion":1},{"id":"6851d628-5e18-4cd4-b4e9-894e3088c8df","name":"Set1","type":"n8n-nodes-base.set","position":[2220,-340],"parameters":{"values":{"string":[{"name":"result","value":"={{$json[\"choices\"][0][\"text\"]}}"}]},"options":{},"keepOnlySet":true},"typeVersion":1},{"id":"0fd94be8-0095-44d2-80db-2810ab3592ba","name":"emailFinderEmail","type":"n8n-nodes-base.if","position":[3000,-300],"parameters":{"conditions":{"string":[{"value1":"={{ $json[\"status\"] }}","value2":"undeliverable","operation":"notEqual"}]}},"typeVersion":1},{"id":"d3d2d225-32d3-4833-b6dc-471962890989","name":"intentType","type":"n8n-nodes-base.code","position":[-1140,160],"parameters":{"jsCode":"function intentType(str) {\n  // Create an empty array to store the labels\n  let type = [];\n  \n  // Check each label and push it to the array if it matches the input string\n  if (str.includes(\"directeur\") || str.includes(\"head\") || str.includes(\"ceo\") || str.includes(\"director\") || str.includes(\"founder\") || str.includes(\"coo\") || str.includes(\"cso\") || str.includes(\"cro\") || str.includes(\"chief\") || str.includes(\"managing director\") || str.includes(\"fondateur\") || str.includes(\"fundador\") || str.includes(\"chairman\") || str.includes(\"coo\"))  {\n    type.push(\"New Hire - Decision Maker\");\n  }   \n   if (str.includes(\"manager\") || str.includes(\"lead\") || str.includes(\"équipe\")) {\n    type.push(\"New Hire - Champion\");\n  }  \n \n  // Remove duplicates from the labels array\n  type = [...new Set(type)];\n  \n  // Return the array of labels\n  return type;\n}\n\nvar date = new Date().toISOString();\nvar day = new Date().getDay();\nconst weekday = [\"Sunday\", \"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\"];\n\nitems[0].json.date_today = date;\nitems[0].json.day_today = weekday[day];\n\nfor (const item of $input.all()) {\n  const body = item.json.body || item.json;\n  \n  // Call the companySpecialization function and store the returned array of labels\n  let type = intentType(body.lonescale_job_title.toLowerCase());\n  \n  // Check if the array has more than one element\n  if (type.length > 1) {\n    // If the array has multiple elements, add them to the body object as a comma-separated string\n    body.IntentType = type.join(\", \");\n  } \n  if (type.length === 0)  {\n    // If the array has only one element, add it to the body object as a single string\n    body.IntentType = \"New Hire - Other\";\n  }\n  else {\n    // If the array has only one element, add it to the body object as a single string\n    body.IntentType = type[0];\n  }\n}\n\nreturn $input.all();"},"typeVersion":1},{"id":"efeabd37-00e9-4078-a12a-4b5ec59ba719","name":"openAIemailfinder","type":"n8n-nodes-base.httpRequest","position":[2020,-340],"parameters":{"url":"https://api.openai.com/v1/completions","method":"POST","options":{},"jsonBody":"={\n\"model\": \"text-davinci-003\",\n\"prompt\": \"(part 1) what is the email structure of the following email ? user: {{$json[\"Name\"]}} email: {{$json[\"Email\"]}}\\n (part 2) Build the email for the following users\\n user: {{$node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_full_name\"]}}, contactId:{{$node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_contact_id\"] }}\\nStructure the result for (part 2) in Json as below\\n{user: , email: , contactId: }\",\n\"temperature\": 0,\n\"max_tokens\": 300,\n\"top_p\": 1,\n\"frequency_penalty\": 0,\n\"presence_penalty\": 0\n}","sendBody":true,"specifyBody":"json","authentication":"genericCredentialType","genericAuthType":"httpHeaderAuth"},"credentials":{"httpHeaderAuth":{"id":"38","name":"OpenAPI"}},"typeVersion":3},{"id":"290e5a84-ce77-4cbb-9cab-5fcf1685fa67","name":"bouncerOpenAI","type":"n8n-nodes-base.httpRequest","position":[2760,-340],"parameters":{"url":"=https://api.usebouncer.com/v1/email/verify?email={{$json[\"email\"]}}&timeout=10","options":{},"authentication":"basicAuth"},"credentials":{"httpBasicAuth":{"id":"9","name":"Bouncer"}},"typeVersion":1},{"id":"c7c26723-86f0-4107-b7d8-5658148264dd","name":"contactValidEmail","type":"n8n-nodes-base.if","position":[1740,-300],"parameters":{"conditions":{"string":[{"value1":"={{ $json[\"Id\"] }}","operation":"isNotEmpty"}]}},"typeVersion":1},{"id":"c4e41443-da4a-4127-8e85-95e544d3b9d0","name":"searchValidContact","type":"n8n-nodes-base.salesforce","position":[1500,-300],"parameters":{"query":"=SELECT Id, Name, Email FROM Contact WHERE Bouncer_status__c = 'deliverable' AND Email != '' AND AccountId = '{{ $node[\"searchAccountId\"].json[\"Id\"] }}{{ $node[\"searchAccountURL\"].json[\"Id\"] }}{{ $node[\"searchAccountName\"].json[\"Id\"] }}' LIMIT 1","resource":"search"},"credentials":{"salesforceOAuth2Api":{"id":"8","name":"Salesforce account"}},"typeVersion":1,"alwaysOutputData":true},{"id":"98090df9-bd6a-4948-bf9b-c040bbf91f54","name":"prospectRecordType","type":"n8n-nodes-base.if","position":[1700,-760],"parameters":{"conditions":{"string":[{"value1":"={{ $node[\"searchAccountId\"].json[\"RecordTypeId\"] }}{{ $node[\"searchAccountURL\"].json[\"RecordTypeId\"] }}{{ $node[\"searchAccountName\"].json[\"RecordTypeId\"] }}","value2":"012IV0000005E5ZYAU"}]}},"typeVersion":1},{"id":"4acf1acd-50ec-4ea4-a404-0130258b7a22","name":"accountPath","type":"n8n-nodes-base.switch","position":[1480,-880],"parameters":{"rules":{"rules":[{"value2":"Disqualified"},{"value2":"Backlog"},{"output":1,"value2":"Approaching"},{"output":1,"value2":"Qualifying"},{"value2":"Opportunity"}]},"value1":"={{ $node[\"searchAccountId\"].json[\"Account_path__c\"] }}","dataType":"string"},"typeVersion":1},{"id":"ff57c9f0-9e59-4d9f-b05b-81ebb5cbccce","name":"CreateIntent","type":"n8n-nodes-base.salesforce","position":[1940,-880],"parameters":{"resource":"customObject","customObject":"Intent__c","customFieldsUi":{"customFieldsValues":[{"value":"={{ $node[\"searchAccountId\"].json[\"Id\"] }}{{ $node[\"searchAccountURL\"].json[\"Id\"] }}{{ $node[\"searchAccountName\"].json[\"Id\"] }}","fieldId":"Account__c"},{"value":"={{ $node[\"intentType\"].json[\"date_today\"] }}","fieldId":"Creation_Date__c"},{"value":"Lonescale","fieldId":"Source__c"},{"value":"=[{{ $node[\"intentType\"].json[\"body\"][\"IntentType\"] }}] - {{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_job_title\"] }}","fieldId":"Name"},{"value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_full_name\"] }} joined {{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_company_name\"] }} as a {{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_job_title\"] }}.\n\nHe previously worked at {{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_company_name\"] }} [{{$node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_record_type\"]}}] as a {{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_current_position\"] }}.","fieldId":"Description__c"},{"value":"={{ $node[\"searchAccountId\"].json[\"OwnerId\"] }}{{ $node[\"searchAccountURL\"].json[\"OwnerId\"] }}{{ $node[\"searchAccountName\"].json[\"OwnerId\"] }}","fieldId":"OwnerId"},{"value":"={{ $node[\"intentType\"].json[\"body\"][\"IntentType\"] }}","fieldId":"Type__c"},{"value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_country_code\"] }}","fieldId":"Country__c"},{"value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_contact_id\"] }}","fieldId":"Contact_1__c"}]},"additionalFields":{}},"credentials":{"salesforceOAuth2Api":{"id":"8","name":"Salesforce account"}},"typeVersion":1},{"id":"22c56df0-fdec-46f1-92e7-2c26068c9f06","name":"CreateIntent1","type":"n8n-nodes-base.salesforce","position":[1940,-600],"parameters":{"resource":"customObject","customObject":"Intent__c","customFieldsUi":{"customFieldsValues":[{"value":"={{ $node[\"searchAccountId\"].json[\"Id\"] }}{{ $node[\"searchAccountURL\"].json[\"Id\"] }}{{ $node[\"searchAccountName\"].json[\"Id\"] }}","fieldId":"Account__c"},{"value":"={{ $node[\"intentType\"].json[\"date_today\"] }}","fieldId":"Creation_Date__c"},{"value":"Lonescale","fieldId":"Source__c"},{"value":"=[{{ $node[\"intentType\"].json[\"body\"][\"IntentType\"] }}] - {{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_job_title\"] }}","fieldId":"Name"},{"value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_full_name\"] }} joined {{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_company_name\"] }} as a {{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_job_title\"] }}.\n\nHe previously worked at {{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_company_name\"] }} [{{$node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_record_type\"]}}] as a {{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_current_position\"] }}.","fieldId":"Description__c"},{"value":"={{ $node[\"searchAccountId\"].json[\"OwnerId\"] }}","fieldId":"OwnerId"},{"value":"={{ $node[\"intentType\"].json[\"body\"][\"IntentType\"] }}","fieldId":"Type__c"},{"value":"FR","fieldId":"Country__c"},{"value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_contact_id\"] }}","fieldId":"Contact_1__c"}]},"additionalFields":{}},"credentials":{"salesforceOAuth2Api":{"id":"8","name":"Salesforce account"}},"typeVersion":1},{"id":"95579895-525d-44e7-8a73-b79a9d9a9bc0","name":"searchOwner","type":"n8n-nodes-base.salesforce","position":[2140,-880],"parameters":{"userId":"={{ $node[\"searchAccountId\"].json[\"OwnerId\"] }}{{ $node[\"searchAccountURL\"].json[\"OwnerId\"] }}{{ $node[\"searchAccountName\"].json[\"OwnerId\"] }}","resource":"user"},"credentials":{"salesforceOAuth2Api":{"id":"8","name":"Salesforce account"}},"typeVersion":1},{"id":"3f500684-4492-4fc9-abe8-18fe30cba884","name":"Slack1","type":"n8n-nodes-base.slack","position":[3500,-1080],"parameters":{"channel":"captaindata_alerts","blocksUi":{"blocksValues":[{"type":"section","textUi":{"textValue":{"text":"=🔥 New intent Available for {{$node[\"searchOwner\"].json[\"Name\"]}}🔥","type":"plainText","emoji":false}},"blockId":"","fieldsUi":{"fieldsValues":[{"text":"=*Account*: {{ $node[\"searchAccountId\"].json[\"Id\"] }}{{ $node[\"searchAccountURL\"].json[\"Id\"] }}{{ $node[\"searchAccountName\"].json[\"Id\"] }}\n*Path*: {{ $node[\"searchAccountId\"].json[\"Account_path__c\"] }}{{ $node[\"searchAccountURL\"].json[\"Account_path__c\"] }}{{ $node[\"searchAccountName\"].json[\"Account_path__c\"] }}\n*Size*: {{ $node[\"searchAccountId\"].json[\"NB_of_Employee__c\"] }}{{ $node[\"searchAccountURL\"].json[\"NB_of_Employee__c\"] }}{{ $node[\"searchAccountName\"].json[\"NB_of_Employee__c\"] }}\n*Tier*: {{ $node[\"searchAccountId\"].json[\"Company_Tier__c\"] }}{{ $node[\"searchAccountURL\"].json[\"Company_Tier__c\"] }}{{ $node[\"searchAccountName\"].json[\"Company_Tier__c\"] }}","type":"mrkwdn","verbatim":false}]},"accessoryUi":{}},{"type":"section","textUi":{"textValue":{"text":"=*Intent* : [{{ $node[\"intentType\"].json[\"body\"][\"IntentType\"]}}] - {{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_job_title\"] }}\n*Contact* : {{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_full_name\"] }}\n*Job Title*: {{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_job_title\"] }}\n*Created Date* : {{ $node[\"intentType\"].json[\"date_today\"] }}\n\n@{{$node[\"ownerId\"].json[\"slackName\"]}}","type":"mrkwdn","verbatim":false}},"blockId":"","fieldsUi":{},"accessoryUi":{}},{"elementsUi":{"elementsValues":[{"url":"=https://modjo.lightning.force.com/lightning/r/Account/{{ $node[\"searchAccountId\"].json[\"Id\"] }}{{ $node[\"searchAccountURL\"].json[\"Id\"] }}{{ $node[\"searchAccountName\"].json[\"Id\"] }}/view","text":"View Account in Salesforce","type":"button","emoji":false,"style":"danger","value":"","actionId":"6","confirmUi":{}},{"url":"=https://modjo.lightning.force.com/lightning/r/Intent__c/{{ $node[\"CreateIntent\"].json[\"id\"] }}/view","text":"View Intent in Salesforce","type":"button","emoji":false,"style":"primary","value":"","actionId":"7","confirmUi":{}}]}}]},"attachments":[],"otherOptions":{"link_names":true}},"credentials":{"slackApi":{"id":"28","name":"Slack account 2"}},"typeVersion":1},{"id":"3cc7288b-7ce2-49e0-9a92-21e06a87546f","name":"Switch","type":"n8n-nodes-base.switch","position":[3080,-880],"parameters":{"rules":{"rules":[{"value2":"Marine","operation":"contains"},{"value2":"Gabriel","operation":"contains"},{"value2":"Constance","operation":"contains"},{"value2":"Catalin","operation":"contains"},{"value2":"Hugo","operation":"contains"},{"value2":"Charles","operation":"contains"},{"value2":"Adèle","operation":"contains"},{"output":1,"value2":"Jorge","operation":"contains"},{"output":2,"value2":"Dimitri","operation":"contains"},{"value2":"Vincent","operation":"contains"}]},"value1":"={{$node[\"searchOwner\"].json[\"Name\"]}}","dataType":"string"},"typeVersion":1},{"id":"7013bbed-4de9-4363-a4fe-029d7c9049f8","name":"Slack3","type":"n8n-nodes-base.slack","position":[3500,-880],"parameters":{"channel":"es-intent-bdr","blocksUi":{"blocksValues":[{"type":"section","textUi":{"textValue":{"text":"=🔥 New intent Available for {{$node[\"searchOwner\"].json[\"Name\"]}}🔥","type":"plainText","emoji":false}},"blockId":"","fieldsUi":{"fieldsValues":[{"text":"=*Account*: {{ $node[\"searchAccountId\"].json[\"Id\"] }}{{ $node[\"searchAccountURL\"].json[\"Id\"] }}{{ $node[\"searchAccountName\"].json[\"Id\"] }}\n*Path*: {{ $node[\"searchAccountId\"].json[\"Account_path__c\"] }}{{ $node[\"searchAccountURL\"].json[\"Account_path__c\"] }}{{ $node[\"searchAccountName\"].json[\"Account_path__c\"] }}\n*Size*: {{ $node[\"searchAccountId\"].json[\"NB_of_Employee__c\"] }}{{ $node[\"searchAccountURL\"].json[\"NB_of_Employee__c\"] }}{{ $node[\"searchAccountName\"].json[\"NB_of_Employee__c\"] }}\n*Tier*: {{ $node[\"searchAccountId\"].json[\"Company_Tier__c\"] }}{{ $node[\"searchAccountURL\"].json[\"Company_Tier__c\"] }}{{ $node[\"searchAccountName\"].json[\"Company_Tier__c\"] }}","type":"mrkwdn","verbatim":false}]},"accessoryUi":{}},{"type":"section","textUi":{"textValue":{"text":"=*Intent* : [{{ $node[\"intentType\"].json[\"body\"][\"IntentType\"]}}] - {{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_job_title\"] }}\n*Contact* : {{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_full_name\"] }}\n*Job Title*: {{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_job_title\"] }}\n*Created Date* : {{ $node[\"intentType\"].json[\"date_today\"] }}\n\n@{{$node[\"ownerId\"].json[\"slackName\"]}}","type":"mrkwdn","verbatim":false}},"blockId":"","fieldsUi":{},"accessoryUi":{}},{"elementsUi":{"elementsValues":[{"url":"=https://modjo.lightning.force.com/lightning/r/Account/{{ $node[\"searchAccountId\"].json[\"Id\"] }}{{ $node[\"searchAccountURL\"].json[\"Id\"] }}{{ $node[\"searchAccountName\"].json[\"Id\"] }}/view","text":"View Account in Salesforce","type":"button","emoji":false,"style":"danger","value":"","actionId":"6","confirmUi":{}},{"url":"=https://modjo.lightning.force.com/lightning/r/Intent__c/{{ $node[\"CreateIntent\"].json[\"id\"] }}/view","text":"View Intent in Salesforce","type":"button","emoji":false,"style":"primary","value":"","actionId":"7","confirmUi":{}}]}}]},"attachments":[],"otherOptions":{"link_names":true}},"credentials":{"slackApi":{"id":"28","name":"Slack account 2"}},"typeVersion":1},{"id":"6fbcbd91-185e-461e-ba60-a96744006414","name":"Slack4","type":"n8n-nodes-base.slack","position":[3500,-700],"parameters":{"channel":"de-intent-bdr","blocksUi":{"blocksValues":[{"type":"section","textUi":{"textValue":{"text":"=🔥 New intent Available for {{$node[\"searchOwner\"].json[\"Name\"]}}🔥","type":"plainText","emoji":false}},"blockId":"","fieldsUi":{"fieldsValues":[{"text":"=*Account*: {{ $node[\"searchAccountId\"].json[\"Id\"] }}{{ $node[\"searchAccountURL\"].json[\"Id\"] }}{{ $node[\"searchAccountName\"].json[\"Id\"] }}\n*Path*: {{ $node[\"searchAccountId\"].json[\"Account_path__c\"] }}{{ $node[\"searchAccountURL\"].json[\"Account_path__c\"] }}{{ $node[\"searchAccountName\"].json[\"Account_path__c\"] }}\n*Size*: {{ $node[\"searchAccountId\"].json[\"NB_of_Employee__c\"] }}{{ $node[\"searchAccountURL\"].json[\"NB_of_Employee__c\"] }}{{ $node[\"searchAccountName\"].json[\"NB_of_Employee__c\"] }}\n*Tier*: {{ $node[\"searchAccountId\"].json[\"Company_Tier__c\"] }}{{ $node[\"searchAccountURL\"].json[\"Company_Tier__c\"] }}{{ $node[\"searchAccountName\"].json[\"Company_Tier__c\"] }}","type":"mrkwdn","verbatim":false}]},"accessoryUi":{}},{"type":"section","textUi":{"textValue":{"text":"=*Intent* : [{{ $node[\"intentType\"].json[\"body\"][\"IntentType\"]}}] - {{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_job_title\"] }}\n*Contact* : {{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_full_name\"] }}\n*Job Title*: {{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_job_title\"] }}\n*Created Date* : {{ $node[\"intentType\"].json[\"date_today\"] }}\n\n@{{$node[\"ownerId\"].json[\"slackName\"]}}","type":"mrkwdn","verbatim":false}},"blockId":"","fieldsUi":{},"accessoryUi":{}},{"elementsUi":{"elementsValues":[{"url":"=https://modjo.lightning.force.com/lightning/r/Account/{{ $node[\"searchAccountId\"].json[\"Id\"] }}{{ $node[\"searchAccountURL\"].json[\"Id\"] }}{{ $node[\"searchAccountName\"].json[\"Id\"] }}/view","text":"View Account in Salesforce","type":"button","emoji":false,"style":"danger","value":"","actionId":"6","confirmUi":{}},{"url":"=https://modjo.lightning.force.com/lightning/r/Intent__c/{{ $node[\"CreateIntent\"].json[\"id\"] }}/view","text":"View Intent in Salesforce","type":"button","emoji":false,"style":"primary","value":"","actionId":"7","confirmUi":{}}]}}]},"attachments":[],"otherOptions":{"link_names":true}},"credentials":{"slackApi":{"id":"28","name":"Slack account 2"}},"typeVersion":1},{"id":"fb5daa7b-d8e2-4462-b266-db9a4b21c7ae","name":"Gmail2","type":"n8n-nodes-base.gmail","position":[2340,-880],"parameters":{"toList":["={{$json[\"Email\"]}}"],"message":"hello","subject":"={{ $node[\"searchAccountId\"].json[\"Name\"] }}{{ $node[\"searchAccountURL\"].json[\"Name\"] }}{{ $node[\"searchAccountName\"].json[\"Name\"] }} | New intent Available : {{ $node[\"intentType\"].json[\"body\"][\"IntentType\"] }} !","resource":"message","htmlMessage":"=<p>A new intent is available on&nbsp;<span style=\"color: #339966;\"><a href=\"https://modjo.lightning.force.com/lightning/r/Account/{{ $node[\"searchAccountId\"].json[\"Id\"] }}{{ $node[\"searchAccountURL\"].json[\"Id\"] }}{{ $node[\"searchAccountName\"].json[\"Id\"] }}/view\" target=\"_blank\" data-saferedirecturl=\"https://www.google.com/url?q=https://modjo.lightning.force.com/lightning/r/Account/{{ $node[\"searchAccountId\"].json[\"Id\"] }}{{ $node[\"searchAccountURL\"].json[\"Id\"] }}{{ $node[\"searchAccountName\"].json[\"Id\"] }}/view&amp;source=gmail&amp;ust=1666863812055000&amp;usg=AOvVaw2tl4r4gBP8swwuEQ_RKAd2\"><span style=\"color: #339966;\"><strong>{{ $node[\"searchAccountId\"].json[\"Name\"] }}{{ $node[\"searchAccountURL\"].json[\"Name\"] }}{{ $node[\"searchAccountName\"].json[\"Name\"] }}</strong></span></a></span>.<br /><br /><span style=\"text-decoration: underline;\"><strong>Details</strong></span></p>\n<ul>\n<li>Intent Name : <a href=\"https://modjo.lightning.force.com/lightning/r/Intent__c/{{ $node[\"CreateIntent\"].json[\"id\"] }}/view\">[{{ $node[\"intentType\"].json[\"body\"][\"IntentType\"] }}] - {{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_job_title\"] }}</a></li>\n<li>Prospect : <a href=\"https://modjo.lightning.force.com/lightning/r/Contact/{{$node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_contact_id\"]}}/view\">{{$node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_full_name\"]}}</a></li>\n<li>New Position : {{$node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_job_title\"]}}</li>\n<li>New Company : {{$node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_company_name\"]}}</li>\n<li>Creation date : {{ $node[\"intentType\"].json[\"date_today\"] }}</li>\n</ul>\n<p>{{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_full_name\"] }} joined {{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_company_name\"] }} as a {{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_job_title\"] }}.\n\nHe previously worked at {{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_company_name\"] }} [{{$node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_record_type\"]}}] as a {{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_current_position\"] }}.</p>\n<p>Go for it ! May the Modjo be with you.</p>\n&nbsp;<img border=\"0\" src=\"https://media.giphy.com/media/9umH7yTO8gLYY/giphy.gif\">\n<img alt=\"\" src=\"https://media.giphy.com/media/9umH7yTO8gLYY/giphy.gif\" />","includeHtml":true,"additionalFields":{"senderName":"\"Marketing Modjo\" <vincent.bonjean@modjo.ai>"}},"credentials":{"gmailOAuth2":{"id":"31","name":"Gmail account"}},"typeVersion":1},{"id":"ae25fe7e-9bd7-498e-bc92-8bb6ab03be3c","name":"searchOwner1","type":"n8n-nodes-base.salesforce","position":[2140,-600],"parameters":{"userId":"={{ $node[\"searchAccountId\"].json[\"Id\"] }}{{ $node[\"searchAccountURL\"].json[\"Id\"] }}{{ $node[\"searchAccountName\"].json[\"Id\"] }}","resource":"user"},"credentials":{"salesforceOAuth2Api":{"id":"8","name":"Salesforce account"}},"typeVersion":1},{"id":"2f81b581-e69f-44e9-8fcf-19ee08729d74","name":"Dropcontact","type":"n8n-nodes-base.dropcontact","position":[2000,-60],"parameters":{"options":{},"additionalFields":{"company":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_company_name\"] }}","linkedin":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_linkedin_url\"] }}","last_name":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_last_name\"] }}","first_name":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_first_name\"] }}"}},"credentials":{"dropcontactApi":{"id":"26","name":"Dropcontact account"}},"typeVersion":1},{"id":"c7d6fa2f-de93-4dc3-9211-b34931996376","name":"bouncerDropcontact","type":"n8n-nodes-base.httpRequest","position":[2480,-60],"parameters":{"url":"=https://api.usebouncer.com/v1/email/verify?email={{ $json[\"email\"][0][\"email\"] }}&timeout=10","options":{},"authentication":"basicAuth"},"credentials":{"httpBasicAuth":{"id":"9","name":"Bouncer"}},"typeVersion":1},{"id":"ec0b7064-08f0-4505-b69b-bf740c3b01a0","name":"UpdateContact1","type":"n8n-nodes-base.salesforce","position":[3840,-880],"parameters":{"resource":"contact","contactId":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_contact_id\"] }}","operation":"update","updateFields":{"email":"={{ $node[\"bouncerOpenAI\"].json[\"email\"] }}{{ $node[\"bouncerDropcontact\"].json[\"email\"] }}{{ $node[\"bouncerLusha\"].json[\"email\"] }}","owner":"={{ $node[\"searchOwner\"].json[\"Id\"] }}","phone":"={{ $node[\"Lusha\"].json[\"data\"][\"phoneNumbers\"][0][\"internationalNumber\"] }}","title":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_job_title\"] }}","acconuntId":"={{ $node[\"searchAccountId\"].json[\"Id\"] }}{{ $node[\"searchAccountURL\"].json[\"Id\"] }}{{ $node[\"searchAccountName\"].json[\"Id\"] }}","customFieldsUi":{"customFieldsValues":[{"value":"=[{{ $node[\"intentType\"].json[\"body\"][\"IntentType\"] }}] - {{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_job_title\"] }}","fieldId":"Last_Intent_Name__c"},{"value":"={{ $node[\"intentType\"].json[\"body\"][\"IntentType\"] }}","fieldId":"Last_Intent_Type__c"},{"value":"={{ $node[\"intentType\"].json[\"body\"][\"client_record_type\"] }}","fieldId":"Last_Intent_Outreach_Keyword__c"},{"value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_company_name\"] }}","fieldId":"Last_Intent_Keyword__c"}]}}},"credentials":{"salesforceOAuth2Api":{"id":"8","name":"Salesforce account"}},"typeVersion":1},{"id":"c7477577-e27f-4834-84e5-31bac9f2ff07","name":"ownerId","type":"n8n-nodes-base.googleSheets","position":[2540,-880],"parameters":{"range":"BDR!A:F","options":{},"sheetId":"1RdifMRqPXKEOFOWs5DcM7K4gVbRiNjgnxLVlsou6UB4","operation":"lookup","lookupValue":"={{$node[\"searchOwner\"].json[\"Id\"]}}","lookupColumn":"salesforceId","authentication":"oAuth2"},"credentials":{"googleSheetsOAuth2Api":{"id":"4","name":"Google Sheets account"}},"typeVersion":1},{"id":"6f069fc4-2081-4d53-ae45-9466df4b69f6","name":"Gmail3","type":"n8n-nodes-base.gmail","position":[2340,-600],"parameters":{"toList":["={{$json[\"Email\"]}}"],"message":"hello","subject":"={{ $node[\"searchAccountId\"].json[\"Name\"] }}{{ $node[\"searchAccountURL\"].json[\"Name\"] }}{{ $node[\"searchAccountName\"].json[\"Name\"] }} | New intent Available : {{ $node[\"intentType\"].json[\"body\"][\"IntentType\"] }} !","resource":"message","htmlMessage":"=<p>A new intent is available on&nbsp;<span style=\"color: #339966;\"><a href=\"https://modjo.lightning.force.com/lightning/r/Account/{{ $node[\"searchAccountId\"].json[\"Id\"] }}{{ $node[\"searchAccountURL\"].json[\"Id\"] }}{{ $node[\"searchAccountName\"].json[\"Id\"] }}/view\" target=\"_blank\" data-saferedirecturl=\"https://www.google.com/url?q=https://modjo.lightning.force.com/lightning/r/Account/{{ $node[\"searchAccountId\"].json[\"Id\"] }}{{ $node[\"searchAccountURL\"].json[\"Id\"] }}{{ $node[\"searchAccountName\"].json[\"Id\"] }}/view&amp;source=gmail&amp;ust=1666863812055000&amp;usg=AOvVaw2tl4r4gBP8swwuEQ_RKAd2\"><span style=\"color: #339966;\"><strong>{{ $node[\"searchAccountId\"].json[\"Name\"] }}{{ $node[\"searchAccountURL\"].json[\"Name\"] }}{{ $node[\"searchAccountName\"].json[\"Name\"] }}</strong></span></a></span>.<br /><br /><span style=\"text-decoration: underline;\"><strong>Details</strong></span></p>\n<ul>\n<li>Intent Name : <a href=\"https://modjo.lightning.force.com/lightning/r/Intent__c/{{ $node[\"CreateIntent\"].json[\"id\"] }}/view\">[{{ $node[\"intentType\"].json[\"body\"][\"IntentType\"] }}] - {{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_job_title\"] }}</a></li>\n<li>Prospect : <a href=\"https://modjo.lightning.force.com/lightning/r/Contact/{{$node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_contact_id\"]}}/view\">{{$node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_full_name\"]}}</a></li>\n<li>New Position : {{$node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_job_title\"]}}</li>\n<li>New Company : {{$node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_company_name\"]}}</li>\n<li>Creation date : {{ $node[\"intentType\"].json[\"date_today\"] }}</li>\n</ul>\n<p>{{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_full_name\"] }} joined {{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_company_name\"] }} as a {{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_job_title\"] }}.\n\nHe previously worked at {{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_company_name\"] }} [{{$node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_record_type\"]}}] as a {{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_current_position\"] }}.</p>\n<p>Go for it ! May the Modjo be with you.</p>\n&nbsp;<img border=\"0\" src=\"https://media.giphy.com/media/9umH7yTO8gLYY/giphy.gif\">\n<img alt=\"\" src=\"https://media.giphy.com/media/9umH7yTO8gLYY/giphy.gif\" />","includeHtml":true,"additionalFields":{"senderName":"\"Marketing Modjo\" <vincent.bonjean@modjo.ai>"}},"credentials":{"gmailOAuth2":{"id":"31","name":"Gmail account"}},"typeVersion":1},{"id":"1d30105d-6dda-4e57-9e3f-e7ac7fd9719a","name":"dropcontactEmail","type":"n8n-nodes-base.if","position":[2760,-60],"parameters":{"conditions":{"string":[{"value1":"={{ $json[\"status\"] }}","value2":"undeliverable","operation":"notEqual"}]}},"typeVersion":1},{"id":"b51b3b31-9f22-4d73-a8b3-1e4b38f6a1e9","name":"UpdateContact","type":"n8n-nodes-base.salesforce","position":[2900,-600],"parameters":{"resource":"contact","contactId":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_contact_id\"] }}","operation":"update","updateFields":{"email":"={{ $node[\"bouncerOpenAI\"].json[\"email\"] }}{{ $node[\"bouncerDropcontact\"].json[\"email\"] }}{{ $node[\"bouncerLusha\"].json[\"email\"] }}","owner":"={{ $node[\"searchOwner1\"].json[\"Id\"] }}","phone":"={{ $node[\"Lusha\"].json[\"data\"][\"phoneNumbers\"][0][\"internationalNumber\"] }}","title":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_job_title\"] }}","acconuntId":"={{ $node[\"searchAccountId\"].json[\"Id\"] }}{{ $node[\"searchAccountURL\"].json[\"Id\"] }}{{ $node[\"searchAccountName\"].json[\"Id\"] }}","customFieldsUi":{"customFieldsValues":[{"value":"=[{{ $node[\"intentType\"].json[\"body\"][\"IntentType\"] }}] - {{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_job_title\"] }}","fieldId":"Last_Intent_Name__c"},{"value":"={{ $node[\"intentType\"].json[\"body\"][\"IntentType\"] }}","fieldId":"Last_Intent_Type__c"},{"value":"={{ $node[\"intentType\"].json[\"body\"][\"client_record_type\"] }}","fieldId":"Last_Intent_Outreach_Keyword__c"},{"value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_company_name\"] }}","fieldId":"Last_Intent_Keyword__c"}]}}},"credentials":{"salesforceOAuth2Api":{"id":"8","name":"Salesforce account"}},"typeVersion":1},{"id":"bcd03215-5363-428c-8a1f-4c0a51afa579","name":"sheetAllControl","type":"n8n-nodes-base.googleSheets","position":[-940,-80],"parameters":{"options":{"handlingExtraData":"insertInNewColumn"},"dataMode":"autoMapInputData","operation":"append","sheetName":{"__rl":true,"mode":"id","value":"1964425514"},"documentId":{"__rl":true,"mode":"url","value":"https://docs.google.com/spreadsheets/d/1dAau8ZknU4xSuMWyp9385yW-ffadEjSmsdxHrkwCPjA/edit#gid=0","__regex":"https:\\/\\/(?:drive|docs)\\.google\\.com\\/\\w+\\/d\\/([0-9a-zA-Z\\-_]+)(?:\\/.*|)"}},"credentials":{"googleSheetsOAuth2Api":{"id":"4","name":"Google Sheets account"}},"typeVersion":3},{"id":"fc9b556f-8bc3-480a-b671-492de1718011","name":"sheetNoLInkedinId","type":"n8n-nodes-base.googleSheets","position":[-760,1140],"parameters":{"options":{},"dataMode":"autoMapInputData","operation":"append","sheetName":{"__rl":true,"mode":"id","value":"472026849"},"documentId":{"__rl":true,"mode":"url","value":"https://docs.google.com/spreadsheets/d/1dAau8ZknU4xSuMWyp9385yW-ffadEjSmsdxHrkwCPjA/edit#gid=472026849","__regex":"https:\\/\\/(?:drive|docs)\\.google\\.com\\/\\w+\\/d\\/([0-9a-zA-Z\\-_]+)(?:\\/.*|)"}},"credentials":{"googleSheetsOAuth2Api":{"id":"4","name":"Google Sheets account"}},"typeVersion":3},{"id":"59636b8a-64f8-4450-a4bd-6a18c6e78753","name":"CreateIntent4","type":"n8n-nodes-base.salesforce","position":[-1840,500],"parameters":{"resource":"customObject","customObject":"Intent__c","customFieldsUi":{"customFieldsValues":[{"value":"={{ $node[\"searchAccount1\"].json[\"Id\"] }}","fieldId":"Account__c"},{"value":"={{ $node[\"intentType\"].json[\"date_today\"] }}","fieldId":"Creation_Date__c"},{"value":"Lonescale","fieldId":"Source__c"},{"value":"=[New Position] - {{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_job_title\"] }}","fieldId":"Name"},{"value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_full_name\"] }} became {{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_job_title\"] }}.\n\nPrevious Position: {{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_current_position\"] }}.","fieldId":"Description__c"},{"value":"={{ $node[\"searchAccount1\"].json[\"OwnerId\"] }}","fieldId":"OwnerId"},{"value":"=New Position","fieldId":"Type__c"},{"value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_country_code\"] }}","fieldId":"Country__c"},{"value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_contact_id\"] }}","fieldId":"Contact_1__c"}]},"additionalFields":{}},"credentials":{"salesforceOAuth2Api":{"id":"8","name":"Salesforce account"}},"typeVersion":1},{"id":"c1251a5b-65be-4b65-a989-e887995d2a26","name":"searchAccount1","type":"n8n-nodes-base.salesforce","position":[-2020,500],"parameters":{"query":"=SELECT Name, Id, Number_of_contacts__c, Account_path__c, RecordTypeId, OwnerId, Company_Tier__c, NB_of_Employee__c FROM Account WHERE Linkedin_Company_Id__c = '{{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_company_linkedin_id\"] }}' LIMIT 1","resource":"search"},"credentials":{"salesforceOAuth2Api":{"id":"8","name":"Salesforce account"}},"typeVersion":1},{"id":"13085034-0f6f-4a96-aab3-5ad2faef0788","name":"UpdateContact4","type":"n8n-nodes-base.salesforce","position":[-1300,500],"parameters":{"resource":"contact","contactId":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_contact_id\"] }}","operation":"update","updateFields":{"title":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_job_title\"] }}","acconuntId":"={{$node[\"searchAccount1\"].json[\"Id\"]}}","customFieldsUi":{"customFieldsValues":[{"value":"=[New Position] - {{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_job_title\"] }}","fieldId":"Last_Intent_Name__c"},{"value":"=New Position","fieldId":"Last_Intent_Type__c"},{"value":"={{ $node[\"intentType\"].json[\"body\"][\"client_record_type\"] }}","fieldId":"Last_Intent_Outreach_Keyword__c"},{"value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_current_position\"] }}","fieldId":"Last_Intent_Keyword__c"}]}}},"credentials":{"salesforceOAuth2Api":{"id":"8","name":"Salesforce account"}},"typeVersion":1},{"id":"912951a4-2102-4bf1-a9c5-c25e22ea3eac","name":"sheetNewPosition","type":"n8n-nodes-base.googleSheets","position":[-1480,500],"parameters":{"options":{},"dataMode":"autoMapInputData","operation":"append","sheetName":{"__rl":true,"mode":"id","value":"1620691729"},"documentId":{"__rl":true,"mode":"url","value":"https://docs.google.com/spreadsheets/d/1dAau8ZknU4xSuMWyp9385yW-ffadEjSmsdxHrkwCPjA/edit#gid=1620691729","__regex":"https:\\/\\/(?:drive|docs)\\.google\\.com\\/\\w+\\/d\\/([0-9a-zA-Z\\-_]+)(?:\\/.*|)"}},"credentials":{"googleSheetsOAuth2Api":{"id":"4","name":"Google Sheets account"}},"typeVersion":3},{"id":"ce2bb2d1-7354-468d-967d-dc78a0b3f81d","name":"changedPositionTrue","type":"n8n-nodes-base.if","position":[-2200,500],"parameters":{"conditions":{"string":[{"value1":"={{ $json[\"body\"][\"lonescale_change_job_title\"] }}","value2":"TRUE"}],"boolean":[{"value1":"={{ $json[\"body\"][\"lonescale_change_job_title\"] }}","value2":"={{ true }}"}]}},"typeVersion":1},{"id":"c6080ecd-3b4a-435a-84ea-0ac49311b54c","name":"sheetNotExistingAccount","type":"n8n-nodes-base.googleSheets","position":[-180,880],"parameters":{"options":{},"dataMode":"autoMapInputData","operation":"append","sheetName":{"__rl":true,"mode":"id","value":"269859113"},"documentId":{"__rl":true,"mode":"url","value":"https://docs.google.com/spreadsheets/d/1dAau8ZknU4xSuMWyp9385yW-ffadEjSmsdxHrkwCPjA/edit#gid=269859113","__regex":"https:\\/\\/(?:drive|docs)\\.google\\.com\\/\\w+\\/d\\/([0-9a-zA-Z\\-_]+)(?:\\/.*|)"}},"credentials":{"googleSheetsOAuth2Api":{"id":"4","name":"Google Sheets account"}},"typeVersion":3},{"id":"69bb42d9-12f6-40ea-9c58-ccd425348395","name":"sheetExistingAccount","type":"n8n-nodes-base.googleSheets","position":[2900,-880],"parameters":{"options":{"handlingExtraData":"insertInNewColumn"},"dataMode":"autoMapInputData","operation":"append","sheetName":{"__rl":true,"mode":"url","value":"https://docs.google.com/spreadsheets/d/1dAau8ZknU4xSuMWyp9385yW-ffadEjSmsdxHrkwCPjA/edit#gid=0","__regex":"https:\\/\\/docs\\.google\\.com/spreadsheets\\/d\\/[0-9a-zA-Z\\-_]+\\/edit\\#gid=([0-9]+)"},"documentId":{"__rl":true,"mode":"url","value":"https://docs.google.com/spreadsheets/d/1dAau8ZknU4xSuMWyp9385yW-ffadEjSmsdxHrkwCPjA/edit#gid=0","__regex":"https:\\/\\/(?:drive|docs)\\.google\\.com\\/\\w+\\/d\\/([0-9a-zA-Z\\-_]+)(?:\\/.*|)"}},"credentials":{"googleSheetsOAuth2Api":{"id":"4","name":"Google Sheets account"}},"typeVersion":3},{"id":"2a21402d-100e-43a1-af6c-f2aed7a021f2","name":"sheetExistingAccount1","type":"n8n-nodes-base.googleSheets","position":[2720,-600],"parameters":{"options":{"handlingExtraData":"insertInNewColumn"},"dataMode":"autoMapInputData","operation":"append","sheetName":{"__rl":true,"mode":"url","value":"https://docs.google.com/spreadsheets/d/1dAau8ZknU4xSuMWyp9385yW-ffadEjSmsdxHrkwCPjA/edit#gid=0","__regex":"https:\\/\\/docs\\.google\\.com/spreadsheets\\/d\\/[0-9a-zA-Z\\-_]+\\/edit\\#gid=([0-9]+)"},"documentId":{"__rl":true,"mode":"url","value":"https://docs.google.com/spreadsheets/d/1dAau8ZknU4xSuMWyp9385yW-ffadEjSmsdxHrkwCPjA/edit#gid=0","__regex":"https:\\/\\/(?:drive|docs)\\.google\\.com\\/\\w+\\/d\\/([0-9a-zA-Z\\-_]+)(?:\\/.*|)"}},"credentials":{"googleSheetsOAuth2Api":{"id":"4","name":"Google Sheets account"}},"typeVersion":3},{"id":"f7fc9ad0-aabf-431f-9cff-304508369a59","name":"Lusha","type":"n8n-nodes-base.httpRequest","position":[460,-380],"parameters":{"url":"=https://modjotothemoon.app.n8n.cloud/webhook/Lusha","options":{},"requestMethod":"POST","queryParametersUi":{"parameter":[{"name":"Contact ID","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_contact_id\"] }}"},{"name":"Contact: Firstname","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_first_name\"] }}"},{"name":"Contact: Lastname","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_last_name\"] }}"},{"name":"Contact: Fullname","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_full_name\"] }}"},{"name":"Account: Linkedin Id","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_company_linkedin_id\"]}}"},{"name":"Account: Name","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_company_name\"]}}"}]}},"typeVersion":1},{"id":"d59e8e5c-267b-47e8-b0f9-53e5eb231868","name":"Set9","type":"n8n-nodes-base.set","position":[-1140,-80],"parameters":{"values":{"string":[{"name":"client_first_name","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_first_name\"] }}"},{"name":"client_last_name","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_last_name\"] }}"},{"name":"client_full_name","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_full_name\"] }}"},{"name":"client_linkedin_url","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_linkedin_url\"] }}"},{"name":"client_company_name","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_company_name\"] }}"},{"name":"client_email","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_email\"] }}"},{"name":"client_contact_id","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_contact_id\"] }}"},{"name":"client_account_id","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_account_id\"] }}"},{"name":"client_current_position","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_current_position\"] }}"},{"name":"client_location","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_location\"] }}"},{"name":"client_record_type","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_record_type\"] }}"},{"name":"client_linkedin_company_id","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_linkedin_company_id\"] }}"},{"name":"client_linkedin_company_url","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_linkedin_company_url\"] }}"},{"name":"client_sales_navigator_company_url","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_linkedin_company_url\"] }}"},{"name":"lonescale_company_name","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_company_name\"] }}"},{"name":"lonescale_full_name","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_full_name\"] }}"},{"name":"lonescale_job_title","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_job_title\"] }}"},{"name":"lonescale_location","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_location\"] }}"},{"name":"lonescale_linkedin_url","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_linkedin_url\"] }}"},{"name":"lonescale_change_company","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_change_company\"] }}"},{"name":"lonescale_change_job_title","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_change_job_title\"] }}"},{"name":"lonescale_company_linkedin_url","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_company_linkedin_url\"] }}"},{"name":"lonescale_company_linkedin_id","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_company_linkedin_id\"] }}"},{"name":"owner_name","value":"="},{"name":"owner_id"},{"name":"execution_id","value":"={{$execution.id}}"}]},"options":{},"keepOnlySet":true},"typeVersion":1},{"id":"4165c987-57cf-47dc-9dcd-f4dfd99970e2","name":"Set10","type":"n8n-nodes-base.set","position":[-1660,500],"parameters":{"values":{"string":[{"name":"client_first_name","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_first_name\"] }}"},{"name":"client_last_name","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_last_name\"] }}"},{"name":"client_full_name","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_full_name\"] }}"},{"name":"client_linkedin_url","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_linkedin_url\"] }}"},{"name":"client_company_name","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_company_name\"] }}"},{"name":"client_email","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_email\"] }}"},{"name":"client_contact_id","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_contact_id\"] }}"},{"name":"client_account_id","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_account_id\"] }}"},{"name":"client_current_position","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_current_position\"] }}"},{"name":"client_location","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_location\"] }}"},{"name":"client_record_type","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_record_type\"] }}"},{"name":"client_linkedin_company_id","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_linkedin_company_id\"] }}"},{"name":"client_linkedin_company_url","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_linkedin_company_url\"] }}"},{"name":"client_sales_navigator_company_url","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_linkedin_company_url\"] }}"},{"name":"lonescale_company_name","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_company_name\"] }}"},{"name":"lonescale_full_name","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_full_name\"] }}"},{"name":"lonescale_job_title","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_job_title\"] }}"},{"name":"lonescale_location","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_location\"] }}"},{"name":"lonescale_linkedin_url","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_linkedin_url\"] }}"},{"name":"lonescale_change_company","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_change_company\"] }}"},{"name":"lonescale_change_job_title","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_change_job_title\"] }}"},{"name":"lonescale_company_linkedin_url","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_company_linkedin_url\"] }}"},{"name":"lonescale_company_linkedin_id","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_company_linkedin_id\"] }}"},{"name":"owner_name","value":"="},{"name":"owner_id"},{"name":"intent_id","value":"={{ $node[\"CreateIntent4\"].json[\"id\"] }}"},{"name":"execution_id","value":"={{$execution.id}}"}]},"options":{},"keepOnlySet":true},"typeVersion":1},{"id":"28773b0c-da58-4928-971b-53003785c993","name":"Set11","type":"n8n-nodes-base.set","position":[-940,1140],"parameters":{"values":{"string":[{"name":"client_first_name","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_first_name\"] }}"},{"name":"client_last_name","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_last_name\"] }}"},{"name":"client_full_name","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_full_name\"] }}"},{"name":"client_linkedin_url","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_linkedin_url\"] }}"},{"name":"client_company_name","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_company_name\"] }}"},{"name":"client_email","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_email\"] }}"},{"name":"client_contact_id","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_contact_id\"] }}"},{"name":"client_account_id","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_account_id\"] }}"},{"name":"client_current_position","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_current_position\"] }}"},{"name":"client_location","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_location\"] }}"},{"name":"client_record_type","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_record_type\"] }}"},{"name":"client_linkedin_company_id","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_linkedin_company_id\"] }}"},{"name":"client_linkedin_company_url","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_linkedin_company_url\"] }}"},{"name":"client_sales_navigator_company_url","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_linkedin_company_url\"] }}"},{"name":"lonescale_company_name","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_company_name\"] }}"},{"name":"lonescale_full_name","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_full_name\"] }}"},{"name":"lonescale_job_title","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_job_title\"] }}"},{"name":"lonescale_location","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_location\"] }}"},{"name":"lonescale_linkedin_url","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_linkedin_url\"] }}"},{"name":"lonescale_change_company","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_change_company\"] }}"},{"name":"lonescale_change_job_title","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_change_job_title\"] }}"},{"name":"lonescale_company_linkedin_url","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_company_linkedin_url\"] }}"},{"name":"lonescale_company_linkedin_id","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_company_linkedin_id\"] }}"},{"name":"owner_name","value":"="},{"name":"owner_id"},{"name":"intent_id","value":"="},{"name":"execution_id","value":"={{$execution.id}}"}]},"options":{},"keepOnlySet":true},"typeVersion":1},{"id":"8349075e-5b34-4fbd-b97c-9e0008e299a4","name":"Set12","type":"n8n-nodes-base.set","position":[-380,880],"parameters":{"values":{"string":[{"name":"client_first_name","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_first_name\"] }}"},{"name":"client_last_name","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_last_name\"] }}"},{"name":"client_full_name","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_full_name\"] }}"},{"name":"client_linkedin_url","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_linkedin_url\"] }}"},{"name":"client_company_name","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_company_name\"] }}"},{"name":"client_email","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_email\"] }}"},{"name":"client_contact_id","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_contact_id\"] }}"},{"name":"client_account_id","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_account_id\"] }}"},{"name":"client_current_position","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_current_position\"] }}"},{"name":"client_location","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_location\"] }}"},{"name":"client_record_type","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_record_type\"] }}"},{"name":"client_linkedin_company_id","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_linkedin_company_id\"] }}"},{"name":"client_linkedin_company_url","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_linkedin_company_url\"] }}"},{"name":"client_sales_navigator_company_url","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_linkedin_company_url\"] }}"},{"name":"lonescale_company_name","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_company_name\"] }}"},{"name":"lonescale_full_name","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_full_name\"] }}"},{"name":"lonescale_job_title","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_job_title\"] }}"},{"name":"lonescale_location","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_location\"] }}"},{"name":"lonescale_linkedin_url","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_linkedin_url\"] }}"},{"name":"lonescale_change_company","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_change_company\"] }}"},{"name":"lonescale_change_job_title","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_change_job_title\"] }}"},{"name":"lonescale_company_linkedin_url","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_company_linkedin_url\"] }}"},{"name":"lonescale_company_linkedin_id","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_company_linkedin_id\"] }}"},{"name":"owner_name","value":"="},{"name":"owner_id"},{"name":"intent_id","value":"="},{"name":"execution_id","value":"={{$execution.id}}"}]},"options":{},"keepOnlySet":true},"typeVersion":1},{"id":"6aa34450-2957-48c5-942a-89e103bac536","name":"Set13","type":"n8n-nodes-base.set","position":[2720,-880],"parameters":{"values":{"string":[{"name":"client_first_name","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_first_name\"] }}"},{"name":"client_last_name","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_last_name\"] }}"},{"name":"client_full_name","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_full_name\"] }}"},{"name":"client_linkedin_url","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_linkedin_url\"] }}"},{"name":"client_company_name","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_company_name\"] }}"},{"name":"client_email","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_email\"] }}"},{"name":"client_contact_id","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_contact_id\"] }}"},{"name":"client_account_id","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_account_id\"] }}"},{"name":"client_current_position","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_current_position\"] }}"},{"name":"client_location","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_location\"] }}"},{"name":"client_record_type","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_record_type\"] }}"},{"name":"client_linkedin_company_id","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_linkedin_company_id\"] }}"},{"name":"client_linkedin_company_url","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_linkedin_company_url\"] }}"},{"name":"client_sales_navigator_company_url","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_linkedin_company_url\"] }}"},{"name":"lonescale_company_name","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_company_name\"] }}"},{"name":"lonescale_full_name","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_full_name\"] }}"},{"name":"lonescale_job_title","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_job_title\"] }}"},{"name":"lonescale_location","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_location\"] }}"},{"name":"lonescale_linkedin_url","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_linkedin_url\"] }}"},{"name":"lonescale_change_company","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_change_company\"] }}"},{"name":"lonescale_change_job_title","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_change_job_title\"] }}"},{"name":"lonescale_company_linkedin_url","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_company_linkedin_url\"] }}"},{"name":"lonescale_company_linkedin_id","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_company_linkedin_id\"] }}"},{"name":"owner_name","value":"={{ $node[\"ownerId\"].json[\"salesforceName\"] }}"},{"name":"owner_id","value":"={{ $node[\"ownerId\"].json[\"salesforceId\"] }}"},{"name":"intent_id","value":"={{ $node[\"CreateIntent\"].json[\"id\"] }}"},{"name":"execution_id","value":"={{$execution.id}}"}]},"options":{},"keepOnlySet":true},"typeVersion":1},{"id":"2a45fe04-1291-41d5-84a5-8c68e7c3ce84","name":"Set","type":"n8n-nodes-base.set","position":[2540,-600],"parameters":{"values":{"string":[{"name":"client_first_name","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_first_name\"] }}"},{"name":"client_last_name","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_last_name\"] }}"},{"name":"client_full_name","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_full_name\"] }}"},{"name":"client_linkedin_url","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_linkedin_url\"] }}"},{"name":"client_company_name","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_company_name\"] }}"},{"name":"client_email","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_email\"] }}"},{"name":"client_contact_id","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_contact_id\"] }}"},{"name":"client_account_id","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_account_id\"] }}"},{"name":"client_current_position","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_current_position\"] }}"},{"name":"client_location","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_location\"] }}"},{"name":"client_record_type","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_record_type\"] }}"},{"name":"client_linkedin_company_id","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_linkedin_company_id\"] }}"},{"name":"client_linkedin_company_url","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_linkedin_company_url\"] }}"},{"name":"client_sales_navigator_company_url","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_linkedin_company_url\"] }}"},{"name":"lonescale_company_name","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_company_name\"] }}"},{"name":"lonescale_full_name","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_full_name\"] }}"},{"name":"lonescale_job_title","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_job_title\"] }}"},{"name":"lonescale_location","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_location\"] }}"},{"name":"lonescale_linkedin_url","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_linkedin_url\"] }}"},{"name":"lonescale_change_company","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_change_company\"] }}"},{"name":"lonescale_change_job_title","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_change_job_title\"] }}"},{"name":"lonescale_company_linkedin_url","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_company_linkedin_url\"] }}"},{"name":"lonescale_company_linkedin_id","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_company_linkedin_id\"] }}"},{"name":"owner_name","value":"={{ $node[\"searchOwner1\"].json[\"Name\"] }}"},{"name":"owner_id","value":"={{ $node[\"searchOwner1\"].json[\"Id\"] }}"},{"name":"intent_id","value":"={{ $node[\"CreateIntent1\"].json[\"id\"] }}"},{"name":"execution_id","value":"={{$execution.id}}"}]},"options":{},"keepOnlySet":true},"typeVersion":1},{"id":"7bb2cb16-8ee5-4610-80d2-33b445a8b3f1","name":"bouncerLusha","type":"n8n-nodes-base.httpRequest","position":[940,-460],"parameters":{"url":"=https://api.usebouncer.com/v1/email/verify?email={{ $json[\"data\"][\"emailAddresses\"][0][\"email\"] }}&timeout=10","options":{},"authentication":"basicAuth"},"credentials":{"httpBasicAuth":{"id":"9","name":"Bouncer"}},"typeVersion":1},{"id":"c0d00bf6-93bc-476c-b792-5ebe26e2cc85","name":"dropcontactEmailExist","type":"n8n-nodes-base.if","position":[2220,-60],"parameters":{"conditions":{"string":[{"value1":"={{ $json[\"email\"][0][\"email\"] }}","operation":"isNotEmpty"}]}},"typeVersion":1},{"id":"7fd632a4-011c-4cd6-8307-bd0b98e5bcc2","name":"lushaEmailExist","type":"n8n-nodes-base.if","position":[700,-380],"parameters":{"conditions":{"string":[{"value1":"={{ $json[\"data\"][\"emailAddresses\"][0][\"email\"] }}","operation":"isNotEmpty"}]}},"typeVersion":1},{"id":"033dcebd-9d05-4dae-991d-a6572da58144","name":"lushaEmail","type":"n8n-nodes-base.if","position":[1120,-460],"parameters":{"conditions":{"string":[{"value1":"={{ $json[\"status\"] }}","value2":"undeliverable","operation":"notEqual"}]}},"typeVersion":1},{"id":"f5c862c0-b94f-4a08-b161-2a852a9f4a66","name":"Set4","type":"n8n-nodes-base.set","position":[2440,180],"parameters":{"values":{"string":[{"name":"client_first_name","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_first_name\"] }}"},{"name":"client_last_name","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_last_name\"] }}"},{"name":"client_full_name","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_full_name\"] }}"},{"name":"client_linkedin_url","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_linkedin_url\"] }}"},{"name":"client_company_name","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_company_name\"] }}"},{"name":"client_email","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_email\"] }}"},{"name":"client_contact_id","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_contact_id\"] }}"},{"name":"client_account_id","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_account_id\"] }}"},{"name":"client_current_position","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_current_position\"] }}"},{"name":"client_location","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_location\"] }}"},{"name":"client_record_type","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_record_type\"] }}"},{"name":"client_linkedin_company_id","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_linkedin_company_id\"] }}"},{"name":"client_linkedin_company_url","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_linkedin_company_url\"] }}"},{"name":"client_sales_navigator_company_url","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"client_linkedin_company_url\"] }}"},{"name":"lonescale_company_name","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_company_name\"] }}"},{"name":"lonescale_full_name","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_full_name\"] }}"},{"name":"lonescale_job_title","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_job_title\"] }}"},{"name":"lonescale_location","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_location\"] }}"},{"name":"lonescale_linkedin_url","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_linkedin_url\"] }}"},{"name":"lonescale_change_company","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_change_company\"] }}"},{"name":"lonescale_change_job_title","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_change_job_title\"] }}"},{"name":"lonescale_company_linkedin_url","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_company_linkedin_url\"] }}"},{"name":"lonescale_company_linkedin_id","value":"={{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_company_linkedin_id\"] }}"},{"name":"owner_name","value":"={{ $node[\"searchOwner3\"].json[\"Name\"] }}"},{"name":"owner_id","value":"={{ $node[\"searchOwner3\"].json[\"Id\"] }}"},{"name":"intent_id","value":"={{ $node[\"CreateIntent3\"].json[\"id\"] }}"},{"name":"execution_id","value":"={{$execution.id}}"}]},"options":{},"keepOnlySet":true},"typeVersion":1},{"id":"af67c2d9-f4fc-47b4-9bc2-006c1361ef09","name":"sheetMissingInfo","type":"n8n-nodes-base.googleSheets","position":[2600,180],"parameters":{"options":{},"operation":"append","sheetName":{"__rl":true,"mode":"id","value":"1001234205"},"documentId":{"__rl":true,"mode":"url","value":"https://docs.google.com/spreadsheets/d/1dAau8ZknU4xSuMWyp9385yW-ffadEjSmsdxHrkwCPjA/edit#gid=1001234205","__regex":"https:\\/\\/(?:drive|docs)\\.google\\.com\\/\\w+\\/d\\/([0-9a-zA-Z\\-_]+)(?:\\/.*|)"}},"credentials":{"googleSheetsOAuth2Api":{"id":"4","name":"Google Sheets account"}},"typeVersion":3},{"id":"f52ec33a-13b9-49ef-93dd-05cbe0881389","name":"searchAccountId","type":"n8n-nodes-base.salesforce","position":[-380,160],"parameters":{"query":"=SELECT Name, Id, Number_of_contacts__c, Account_path__c, RecordTypeId, OwnerId, Company_Tier__c, NB_of_Employee__c FROM Account WHERE Linkedin_Company_Id__c = '{{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_company_linkedin_id\"] }}' LIMIT 1","resource":"search"},"credentials":{"salesforceOAuth2Api":{"id":"8","name":"Salesforce account"}},"typeVersion":1},{"id":"32f461df-e9cb-4061-9706-0a59720a4394","name":"searchAccountURL","type":"n8n-nodes-base.salesforce","position":[-380,420],"parameters":{"query":"=SELECT Name, Id, Number_of_contacts__c, Account_path__c, RecordTypeId, OwnerId, Company_Tier__c, NB_of_Employee__c FROM Account WHERE Linkedin_Company_URL__c LIKE '%{{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_company_linkedin_url\"] }}%' LIMIT 1","resource":"search"},"credentials":{"salesforceOAuth2Api":{"id":"8","name":"Salesforce account"}},"typeVersion":1},{"id":"d029dc44-9165-4b02-9f8b-8de806f0229c","name":"newSalesforceAccount1","type":"n8n-nodes-base.if","position":[-180,420],"parameters":{"conditions":{"string":[{"value1":"={{ $json[\"Id\"] }}","operation":"isNotEmpty"}]}},"typeVersion":1},{"id":"76f77b41-6279-47e0-9c18-00fe545b3bd6","name":"newSalesforceAccount2","type":"n8n-nodes-base.if","position":[-180,640],"parameters":{"conditions":{"string":[{"value1":"={{ $json[\"Id\"] }}","operation":"isNotEmpty"}]}},"typeVersion":1},{"id":"845e89bf-9200-41a3-94ac-21c2f530b951","name":"searchAccountName","type":"n8n-nodes-base.salesforce","position":[-380,640],"parameters":{"query":"=SELECT Name, Id, Number_of_contacts__c, Account_path__c, RecordTypeId, OwnerId, Company_Tier__c, NB_of_Employee__c FROM Account WHERE Name LIKE '%{{ $node[\"LoneScale - GetJobChanges\"].json[\"body\"][\"lonescale_company_name\"] }}%' LIMIT 1","resource":"search"},"credentials":{"salesforceOAuth2Api":{"id":"8","name":"Salesforce account"}},"typeVersion":1},{"id":"ff51bf43-9edc-455a-86ff-a602d2b4b61c","name":"#salesforceAccountContact","type":"n8n-nodes-base.if","notes":"number of contact","position":[1040,-200],"parameters":{"conditions":{"number":[{"value1":"={{ $node[\"searchAccountId\"].json[\"Number_of_contacts__c\"] }}{{ $node[\"searchAccountURL\"].json[\"Number_of_contacts__c\"] }}{{ $node[\"searchAccountName\"].json[\"Number_of_contacts__c\"] }}","value2":1,"operation":"largerEqual"}]}},"notesInFlow":true,"typeVersion":1},{"id":"bcb88437-4b45-45bd-8af3-4409095b1e21","name":"openAIemailExist","type":"n8n-nodes-base.if","position":[2540,-340],"parameters":{"conditions":{"string":[{"value1":"={{ $json[\"email\"] }}","operation":"isNotEmpty"}]}},"typeVersion":1}],"connections":{"Set":{"main":[[{"node":"sheetExistingAccount1","type":"main","index":0}]]},"Set1":{"main":[[{"node":"personList","type":"main","index":0}]]},"Set4":{"main":[[{"node":"sheetMissingInfo","type":"main","index":0}]]},"Set9":{"main":[[{"node":"sheetAllControl","type":"main","index":0}]]},"Lusha":{"main":[[{"node":"lushaEmailExist","type":"main","index":0}]]},"Set10":{"main":[[{"node":"sheetNewPosition","type":"main","index":0}]]},"Set11":{"main":[[{"node":"sheetNoLInkedinId","type":"main","index":0}]]},"Set12":{"main":[[{"node":"sheetNotExistingAccount","type":"main","index":0}]]},"Set13":{"main":[[{"node":"sheetExistingAccount","type":"main","index":0}]]},"Gmail2":{"main":[[{"node":"ownerId","type":"main","index":0}]]},"Gmail3":{"main":[[{"node":"Set","type":"main","index":0}]]},"Slack1":{"main":[[{"node":"UpdateContact1","type":"main","index":0}]]},"Slack3":{"main":[[{"node":"UpdateContact1","type":"main","index":0}]]},"Slack4":{"main":[[{"node":"UpdateContact1","type":"main","index":0}]]},"Switch":{"main":[[{"node":"Slack1","type":"main","index":0}],[{"node":"Slack3","type":"main","index":0}],[{"node":"Slack4","type":"main","index":0}]]},"ownerId":{"main":[[{"node":"Set13","type":"main","index":0}]]},"intentType":{"main":[[{"node":"changedCompanyTrue","type":"main","index":0},{"node":"Set9","type":"main","index":0}]]},"lushaEmail":{"main":[[{"node":"prospectRecordType","type":"main","index":0}],[{"node":"searchValidContact","type":"main","index":0}]]},"personList":{"main":[[{"node":"openAIemailExist","type":"main","index":0}]]},"Dropcontact":{"main":[[{"node":"dropcontactEmailExist","type":"main","index":0}]]},"searchOwner":{"main":[[{"node":"Gmail2","type":"main","index":0}]]},"CreateIntent":{"main":[[{"node":"searchOwner","type":"main","index":0}]]},"bouncerLusha":{"main":[[{"node":"lushaEmail","type":"main","index":0}]]},"searchOwner1":{"main":[[{"node":"Gmail3","type":"main","index":0}]]},"CreateIntent1":{"main":[[{"node":"searchOwner1","type":"main","index":0}]]},"CreateIntent4":{"main":[[{"node":"Set10","type":"main","index":0}]]},"bouncerOpenAI":{"main":[[{"node":"emailFinderEmail","type":"main","index":0}]]},"searchAccount1":{"main":[[{"node":"CreateIntent4","type":"main","index":0}]]},"lushaEmailExist":{"main":[[{"node":"bouncerLusha","type":"main","index":0}],[{"node":"#salesforceAccountContact","type":"main","index":0}]]},"searchAccountId":{"main":[[{"node":"newSalesforceAccount","type":"main","index":0}]]},"dropcontactEmail":{"main":[[{"node":"prospectRecordType","type":"main","index":0}],[{"node":"Set4","type":"main","index":0}]]},"emailFinderEmail":{"main":[[{"node":"prospectRecordType","type":"main","index":0}],[{"node":"Dropcontact","type":"main","index":0}]]},"openAIemailExist":{"main":[[{"node":"bouncerOpenAI","type":"main","index":0}],[{"node":"Dropcontact","type":"main","index":0}]]},"searchAccountURL":{"main":[[{"node":"newSalesforceAccount1","type":"main","index":0}]]},"sheetNewPosition":{"main":[[{"node":"UpdateContact4","type":"main","index":0}]]},"companyLinkedinId":{"main":[[{"node":"searchAccountId","type":"main","index":0}],[{"node":"searchAccountURL","type":"main","index":0}]]},"contactValidEmail":{"main":[[{"node":"openAIemailfinder","type":"main","index":0}],[{"node":"Dropcontact","type":"main","index":0}]]},"openAIemailfinder":{"main":[[{"node":"Set1","type":"main","index":0}]]},"searchAccountName":{"main":[[{"node":"newSalesforceAccount2","type":"main","index":0}]]},"bouncerDropcontact":{"main":[[{"node":"dropcontactEmail","type":"main","index":0}]]},"changedCompanyTrue":{"main":[[{"node":"companyLinkedinId","type":"main","index":0}],[{"node":"changedPositionTrue","type":"main","index":0}]]},"prospectRecordType":{"main":[[{"node":"CreateIntent","type":"main","index":0}],[{"node":"CreateIntent1","type":"main","index":0}]]},"searchValidContact":{"main":[[{"node":"contactValidEmail","type":"main","index":0}]]},"changedPositionTrue":{"main":[[{"node":"searchAccount1","type":"main","index":0}]]},"newSalesforceAccount":{"main":[[{"node":"Lusha","type":"main","index":0}],[{"node":"searchAccountURL","type":"main","index":0}]]},"sheetExistingAccount":{"main":[[{"node":"Switch","type":"main","index":0}]]},"dropcontactEmailExist":{"main":[[{"node":"bouncerDropcontact","type":"main","index":0}],[{"node":"Set4","type":"main","index":0}]]},"newSalesforceAccount1":{"main":[[{"node":"Lusha","type":"main","index":0}],[{"node":"searchAccountName","type":"main","index":0}]]},"newSalesforceAccount2":{"main":[[{"node":"Lusha","type":"main","index":0}],[{"node":"Set12","type":"main","index":0}]]},"sheetExistingAccount1":{"main":[[{"node":"UpdateContact","type":"main","index":0}]]},"#salesforceAccountContact":{"main":[[{"node":"searchValidContact","type":"main","index":0}],[{"node":"Dropcontact","type":"main","index":0}]]},"LoneScale - GetJobChanges":{"main":[[{"node":"intentType","type":"main","index":0}]]}}}