{
  "id": "2mnztdp4yL2YfnUZ",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "Social Warming Flow",
  "tags": [
    {
      "id": "VG35LXv8rfSoEd8Z",
      "name": "social listening",
      "createdAt": "2025-03-28T17:04:59.782Z",
      "updatedAt": "2025-03-28T17:04:59.782Z"
    }
  ],
  "nodes": [
    {
      "id": "5df779cd-4b8f-48f1-99eb-7f35857733ff",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -500,
        -160
      ],
      "parameters": {
        "path": "f3245b39-6f22-4a0e-a198-2488da8aa01e",
        "options": {},
        "httpMethod": "POST"
      },
      "typeVersion": 2
    },
    {
      "id": "18783096-48f5-4997-8a20-de41da5a10c5",
      "name": "Edit Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        -280,
        -380
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "8d9f73f9-68ac-4a1c-8427-c09ddb10eb95",
              "name": "body.linkedin_engagement[0].linkedin_post.post_url",
              "type": "string",
              "value": "={{ $json.body.linkedin_engagement[0].linkedin_post.post_url }}"
            },
            {
              "id": "eced7491-4821-45d6-a7a8-065656eec0c7",
              "name": "body.linkedin_engagement[0].linkedin_post.posted_date",
              "type": "string",
              "value": "={{ $json.body.linkedin_engagement[0].linkedin_post.posted_date }}"
            },
            {
              "id": "25ec3fb4-4562-49ff-8f53-d3bcfde8cd58",
              "name": "body.linkedin_engagement[0].linkedin_post.text",
              "type": "string",
              "value": "={{ $json.body.linkedin_engagement[0].linkedin_post.text }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "e8e4aaa0-7749-400a-a7fb-85f3cff44d11",
      "name": "Edit Fields1",
      "type": "n8n-nodes-base.set",
      "position": [
        -300,
        80
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "db52c858-cbf0-4755-a376-3d2ab14a0e53",
              "name": "body.prospect.first_name",
              "type": "string",
              "value": "={{ $json.body.prospect.first_name }}"
            },
            {
              "id": "0fcaf40a-3854-42bf-bd7a-741aa9903cf7",
              "name": "body.prospect.last_name",
              "type": "string",
              "value": "={{ $json.body.prospect.last_name }}"
            },
            {
              "id": "1ac42218-3393-4de0-b6f0-484b867573c2",
              "name": "body.prospect.job_title",
              "type": "string",
              "value": "={{ $json.body.prospect.job_title }}"
            },
            {
              "id": "114098e3-374a-4083-80af-a7198fea3039",
              "name": "body.prospect.linkedin_url",
              "type": "string",
              "value": "={{ $json.body.prospect.linkedin_url }}"
            },
            {
              "id": "eca9901b-bffe-4542-ad4e-5b75391a4ef9",
              "name": "body.prospect.location_name",
              "type": "string",
              "value": "={{ $json.body.prospect.location_name }}"
            },
            {
              "id": "ecfc204b-531c-409b-96e0-8b059744553a",
              "name": "body.company.name",
              "type": "string",
              "value": "={{ $json.body.company.name }}"
            },
            {
              "id": "557953fb-ba8e-4499-9caf-190aa3db7601",
              "name": "body.company.size",
              "type": "string",
              "value": "={{ $json.body.company.size }}"
            },
            {
              "id": "f9fd0689-22b3-404e-8dc1-69a8834869af",
              "name": "body.company.industry",
              "type": "string",
              "value": "={{ $json.body.company.industry }}"
            },
            {
              "id": "d5b83eaa-deb6-4aa1-b2f9-b25661c43173",
              "name": "body.company.linkedin_url",
              "type": "string",
              "value": "={{ $json.body.company.linkedin_url }}"
            },
            {
              "id": "ae780ddb-b2b1-45ed-ab13-cef3c2f5c4d4",
              "name": "body.company.domain",
              "type": "string",
              "value": "={{ $json.body.company.domain }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "9680c2f0-fcda-4206-8828-1cddf3979ca2",
      "name": "Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        400,
        -380
      ],
      "parameters": {
        "columns": {
          "value": {
            "Post URL": "={{ $('Edit Fields').item.json.body.linkedin_engagement[0].linkedin_post.post_url }}",
            "Post Text": "={{ $('Edit Fields').item.json.body.linkedin_engagement[0].linkedin_post.text }}",
            "Posted Date": "={{ $('Edit Fields').item.json.body.linkedin_engagement[0].linkedin_post.posted_date }}"
          },
          "schema": [
            {
              "id": "Post URL",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "Post URL",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Post Text",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "Post Text",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Posted Date",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "Posted Date",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Author",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Author",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            }
          ],
          "mappingMode": "defineBelow",
          "matchingColumns": [
            "Post URL"
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {},
        "operation": "append",
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": "gid=0",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1U73FHlwrhp64-ZdPGMRIpUnQe3hbDE7UOBvL0z25G7o/edit#gid=0",
          "cachedResultName": "Sheet1"
        },
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": "1U73FHlwrhp64-ZdPGMRIpUnQe3hbDE7UOBvL0z25G7o",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1U73FHlwrhp64-ZdPGMRIpUnQe3hbDE7UOBvL0z25G7o/edit?usp=drivesdk",
          "cachedResultName": "Social Warming"
        }
      },
      "credentials": {
        "googleSheetsOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 4.6
    },
    {
      "id": "554cf89f-d46d-40d0-a9ad-e1d0fad699f2",
      "name": "Google Sheets1",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -60,
        -380
      ],
      "parameters": {
        "options": {},
        "filtersUI": {
          "values": [
            {
              "lookupValue": "={{ $json.body.linkedin_engagement[0].linkedin_post.post_url }}",
              "lookupColumn": "Post URL"
            }
          ]
        },
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": "gid=0",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1U73FHlwrhp64-ZdPGMRIpUnQe3hbDE7UOBvL0z25G7o/edit#gid=0",
          "cachedResultName": "Sheet1"
        },
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": "1U73FHlwrhp64-ZdPGMRIpUnQe3hbDE7UOBvL0z25G7o",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1U73FHlwrhp64-ZdPGMRIpUnQe3hbDE7UOBvL0z25G7o/edit?usp=drivesdk",
          "cachedResultName": "Social Warming"
        }
      },
      "credentials": {
        "googleSheetsOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 4.6,
      "alwaysOutputData": true
    },
    {
      "id": "bdcdabb3-3d4d-4570-b9aa-133e9c824aa0",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        160,
        -380
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "b5ebe86c-282e-4042-816d-28b6ad72b5f2",
              "operator": {
                "type": "string",
                "operation": "notEmpty",
                "singleValue": true
              },
              "leftValue": "={{ $json[\"Post URL\"] }}",
              "rightValue": ""
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "21907ad2-aae0-4d47-8044-525b27500fb1",
      "name": "Slack",
      "type": "n8n-nodes-base.slack",
      "position": [
        620,
        -380
      ],
      "parameters": {
        "text": "Thought Leader Post",
        "select": "channel",
        "blocksUi": "={\n\t\"blocks\": [\n\t\t{\n\t\t\t\"type\": \"section\",\n\t\t\t\"text\": {\n\t\t\t\t\"type\": \"mrkdwn\",\n\t\t\t\t\"text\": \"\ud83d\udea8 *Thought Leader Alert*\\n\\nOne of your tracked thought leaders just posted new content!\\n\\n*Stay ahead of the conversation*\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"type\": \"divider\"\n\t\t},\n\t\t{\n\t\t\t\"type\": \"section\",\n\t\t\t\"text\": {\n\t\t\t\t\"type\": \"mrkdwn\",\n\t\t\t\t\"text\": \"*New LinkedIn Post*\\n:link: <{{ $json['Post URL'] }}|View Original Post>\\n:calendar: Posted: {{ $json['Posted Date'] }}\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"type\": \"section\",\n\t\t\t\"text\": {\n\t\t\t\t\"type\": \"mrkdwn\",\n\t\t\t\t\"text\": \"*Post Content:*\\n{{ $json['Post Text'] }}\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"type\": \"divider\"\n\t\t},\n\t\t{\n\t\t\t\"type\": \"actions\",\n\t\t\t\"elements\": [\n\t\t\t\t{\n\t\t\t\t\t\"type\": \"button\",\n\t\t\t\t\t\"text\": {\n\t\t\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\t\t\"text\": \"View Post\",\n\t\t\t\t\t\t\"emoji\": true\n\t\t\t\t\t},\n\t\t\t\t\t\"value\": \"view_post\",\n\t\t\t\t\t\"url\": \"{{ $json['Post URL'] }}\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"type\": \"button\",\n\t\t\t\t\t\"text\": {\n\t\t\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\t\t\"text\": \"Engage Now\",\n\t\t\t\t\t\t\"emoji\": true\n\t\t\t\t\t},\n\t\t\t\t\t\"value\": \"engage_now\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"type\": \"button\",\n\t\t\t\t\t\"text\": {\n\t\t\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\t\t\"text\": \"Save for Later\",\n\t\t\t\t\t\t\"emoji\": true\n\t\t\t\t\t},\n\t\t\t\t\t\"value\": \"save_later\"\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t]\n}",
        "channelId": {
          "__rl": true,
          "mode": "list",
          "value": "C097896SD3P",
          "cachedResultName": "comment-strategy"
        },
        "messageType": "block",
        "otherOptions": {
          "includeLinkToWorkflow": false
        }
      },
      "credentials": {
        "slackApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2.3
    },
    {
      "id": "704638cf-b139-4e54-8e48-898f0ef3cc8c",
      "name": "Google Sheets2",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        340,
        100
      ],
      "parameters": {
        "columns": {
          "value": {
            "Size": "={{ $json.body.company.size }}",
            "Domain": "={{ $json.body.company.domain }}",
            "Industry": "={{ $json.body.company.industry }}",
            "Location": "={{ $json.body.prospect.location_name }}",
            "Job Title": "={{ $json.body.prospect.job_title }}",
            "Last Name": "={{ $json.body.prospect.last_name }}",
            "First Name": "={{ $json.body.prospect.first_name }}",
            "Company Name": "={{ $json.body.company.name }}",
            "LinkedIn URL": "={{ $json.body.prospect.linkedin_url }}",
            "Company LinkedIn URL": "={{ $json.body.company.linkedin_url }}"
          },
          "schema": [
            {
              "id": "First Name",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "First Name",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Last Name",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Last Name",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Job Title",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Job Title",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "LinkedIn URL",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "LinkedIn URL",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Location",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Location",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Company Name",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Company Name",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Domain",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Domain",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Company LinkedIn URL",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "Company LinkedIn URL",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Size",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Size",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Industry",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Industry",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            }
          ],
          "mappingMode": "defineBelow",
          "matchingColumns": [],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {},
        "operation": "append",
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": 671966577,
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1U73FHlwrhp64-ZdPGMRIpUnQe3hbDE7UOBvL0z25G7o/edit#gid=671966577",
          "cachedResultName": "Engagers"
        },
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": "1U73FHlwrhp64-ZdPGMRIpUnQe3hbDE7UOBvL0z25G7o",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1U73FHlwrhp64-ZdPGMRIpUnQe3hbDE7UOBvL0z25G7o/edit?usp=drivesdk",
          "cachedResultName": "Social Warming"
        }
      },
      "credentials": {
        "googleSheetsOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 4.6
    },
    {
      "id": "9b084b47-1783-4b5a-8752-8b137eb4713b",
      "name": "If1",
      "type": "n8n-nodes-base.if",
      "position": [
        -80,
        80
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "8e53e613-e5b3-4f7d-a824-ddf3a26ac7ab",
              "operator": {
                "type": "string",
                "operation": "contains"
              },
              "leftValue": "={{ $json.body.prospect.job_title }}",
              "rightValue": "marketing"
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "a2de7f1e-dff7-4f8b-8e7b-cf88403b9644",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -660,
        -420
      ],
      "parameters": {
        "content": "## Being alerted to new Thought Leader post from Trigify.io"
      },
      "typeVersion": 1
    },
    {
      "id": "a7f81174-864d-4cbf-bf9e-a232230ffce1",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -660,
        20
      ],
      "parameters": {
        "width": 260,
        "height": 200,
        "content": "## Being alerted to new engagers on that post from the Thought Leader from Trigify.io."
      },
      "typeVersion": 1
    },
    {
      "id": "d9780777-69c1-48b6-88ae-0ca1d6a8a3a1",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -140,
        20
      ],
      "parameters": {
        "color": 5,
        "width": 260,
        "height": 200,
        "content": "Edit this IF for your ICP."
      },
      "typeVersion": 1
    },
    {
      "id": "09072558-0f1e-4ab8-8c3b-d873a445a9cb",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -140,
        -480
      ],
      "parameters": {
        "color": 6,
        "width": 700,
        "height": 300,
        "content": "This is stopping duplicate posts being added here."
      },
      "typeVersion": 1
    },
    {
      "id": "9f198075-800c-4043-a836-dc55a9d7dd9d",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        240,
        0
      ],
      "parameters": {
        "color": 2,
        "width": 320,
        "height": 260,
        "content": "You could use a CRM here instead or send this data through to an outreach tool."
      },
      "typeVersion": 1
    }
  ],
  "active": true,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "21da05e6-74c9-4d28-a77c-ab60264ad9c3",
  "connections": {
    "If": {
      "main": [
        [],
        [
          {
            "node": "Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If1": {
      "main": [
        [
          {
            "node": "Google Sheets2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          },
          {
            "node": "Edit Fields1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "Google Sheets1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields1": {
      "main": [
        [
          {
            "node": "If1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Sheets": {
      "main": [
        [
          {
            "node": "Slack",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Sheets1": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}