{
  "id": "{{WORKFLOW_ID}}",
  "meta": {
    "instanceId": "{{YOUR_INSTANCE_ID}}",
    "templateCredsSetupCompleted": true
  },
  "name": "23 - Priority Lead Flow",
  "tags": [
    {
      "id": "{{TAG_ID}}",
      "name": "Production",
      "createdAt": "2025-01-01T00:00:00.000Z",
      "updatedAt": "2025-01-01T00:00:00.000Z"
    }
  ],
  "nodes": [
    {
      "id": "057ccab0-2bdb-4879-9610-2bfa4e021468",
      "name": "📋 Typeform Submission Trigger",
      "type": "n8n-nodes-base.typeformTrigger",
      "position": [
        -1800,
        80
      ],
      "webhookId": "{{WEBHOOK_ID}}",
      "parameters": {
        "formId": "{{YOUR_TYPEFORM_ID}}"
      },
      "credentials": {
        "typeformApi": {
          "id": "credential-id",
          "name": "typeformApi Credential"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "1b3b1d53-8152-4df7-8201-ae28aa3032c5",
      "name": "💰 Check High-Budget Lead",
      "type": "n8n-nodes-base.if",
      "position": [
        -1580,
        80
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 1,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "or",
          "conditions": [
            {
              "id": "high-priority-budget",
              "operator": {
                "type": "number",
                "operation": "gt"
              },
              "leftValue": "={{ $json['What is your Budget'] }}",
              "rightValue": 5000
            }
          ]
        }
      },
      "typeVersion": 2
    },
    {
      "id": "48467950-8ff6-4964-87ce-e5a19e6f8ed5",
      "name": "👤 HubSpot — Create/Update Contact",
      "type": "n8n-nodes-base.hubspot",
      "position": [
        -1360,
        80
      ],
      "parameters": {
        "email": "={{ $json.Email }}",
        "options": {},
        "authentication": "appToken",
        "additionalFields": {
          "firstName": "={{ $json.Name }}",
          "phoneNumber": "={{ $json['Phone Number'] }}",
          "customPropertiesUi": {
            "customPropertiesValues": [
              {
                "value": "={{ $json['What is your Budget'] }}",
                "property": "Budget"
              }
            ]
          }
        }
      },
      "credentials": {
        "hubspotAppToken": {
          "id": "credential-id",
          "name": "hubspotAppToken Credential"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "cd15aeb2-9ba1-4338-9b0f-e72e52ba4898",
      "name": "📝 HubSpot — Add Priority Task",
      "type": "n8n-nodes-base.hubspot",
      "position": [
        -1140,
        80
      ],
      "parameters": {
        "type": "task",
        "metadata": {
          "body": "=Priority - High (Budget - {{ $json['What is your Budget'] }})"
        },
        "resource": "engagement",
        "authentication": "appToken",
        "additionalFields": {}
      },
      "credentials": {
        "hubspotAppToken": {
          "id": "credential-id",
          "name": "hubspotAppToken Credential"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "bd2126da-2541-476c-a8a6-576668690116",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1860,
        -220
      ],
      "parameters": {
        "color": 5,
        "width": 440,
        "height": 600,
        "content": "## 📋 Form Intake & Lead Qualification\n\n**📋 Typeform Submission Trigger → 💰 Check High-Budget Lead**\n\n*This section captures new lead data from the Typeform submission. It immediately evaluates the budget field to determine whether the lead is high priority (budget > $5,000), allowing the workflow to route premium leads for faster follow-up.*"
      },
      "typeVersion": 1
    },
    {
      "id": "099f0557-71d3-470a-9239-4a7e0f0297fe",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1400,
        -220
      ],
      "parameters": {
        "width": 400,
        "height": 600,
        "content": "## 👤 CRM Integration & Priority Handling\n\n**👤 HubSpot — Create/Update Contact → 📝 HubSpot — Add Priority Task**\n\n*For high-priority leads, the workflow automatically creates or updates the corresponding contact in HubSpot, adding their budget and other details. It then logs a priority follow-up task in HubSpot to ensure the sales team responds promptly.*"
      },
      "typeVersion": 1
    },
    {
      "id": "bd3507b6-d280-45f0-86bf-d8faa5f6dfee",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -980,
        -340
      ],
      "parameters": {
        "color": 4,
        "width": 220,
        "height": 720,
        "content": "## 📘/📊 Lead Source Routing & Storage\n\n**📘 Check if Facebook Lead or SurveyMonkey Lead \n\n*This section routes leads based on their source. Facebook leads are logged in Google Sheets for marketing analysis, while SurveyMonkey leads are also stored in google sheets for structured data management and campaign tracking.*"
      },
      "typeVersion": 1
    },
    {
      "id": "b7001b24-8146-4582-b5f6-8868da8524c5",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -740,
        -220
      ],
      "parameters": {
        "color": 3,
        "width": 480,
        "height": 600,
        "content": "## 📧 Automated Lead Acknowledgment\n\n**📄 Log Lead to Google Sheet\n📦 Sends Message to Slack**\n\n*After the lead's data is stored in the appropriate system, the workflow sends an automated acknowledgment message via Slack*"
      },
      "typeVersion": 1
    },
    {
      "id": "770b4057-9feb-46f5-a9ef-87dec40d561f",
      "name": "📘 Check if Lead is of (Facebook/SurveyMonkey)",
      "type": "n8n-nodes-base.if",
      "position": [
        -920,
        80
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 1,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "or",
          "conditions": [
            {
              "id": "facebook-source",
              "operator": {
                "type": "string",
                "operation": "contains"
              },
              "leftValue": "={{ $json.lead_source || $json.source }}",
              "rightValue": "Facebook"
            },
            {
              "id": "638ead15-f5e9-4cc4-b02d-3bb2087710ec",
              "operator": {
                "name": "filter.operator.equals",
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $json.lead_source || $json.source }}",
              "rightValue": "SurveyMonkey"
            }
          ]
        }
      },
      "typeVersion": 2
    },
    {
      "id": "47c5e42f-ede4-47d8-851c-0fa55157ae97",
      "name": "📄 Log Lead to Google Sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -680,
        80
      ],
      "parameters": {
        "columns": {
          "value": {},
          "schema": [],
          "mappingMode": "defineBelow",
          "matchingColumns": [],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {},
        "operation": "append",
        "sheetName": {
          "__rl": true,
          "mode": "id",
          "value": "{{YOUR_SHEET_NAME}}"
        },
        "documentId": {
          "__rl": true,
          "mode": "id",
          "value": "{{YOUR_GOOGLE_SHEET_ID}}"
        }
      },
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "credential-id",
          "name": "googleSheetsOAuth2Api Credential"
        }
      },
      "typeVersion": 4
    },
    {
      "id": "968120e7-e094-41e1-9832-9ec6aec16e07",
      "name": "😊Sends Message to Slack",
      "type": "n8n-nodes-base.slack",
      "position": [
        -460,
        80
      ],
      "webhookId": "{{WEBHOOK_ID}}",
      "parameters": {
        "text": "=New High Priority Lead:\nName: {{ $json.name }}\nEmail: {{ $json.email }}\nNumber: {{ $json.number }}\nBudget: {{ $json.budget }}\nLead of: {{ $json.leadof }}",
        "select": "channel",
        "channelId": {
          "__rl": true,
          "mode": "list",
          "value": "{{YOUR_SLACK_CHANNEL_ID}}",
          "cachedResultName": "{{YOUR_SLACK_CHANNEL_NAME}}"
        },
        "otherOptions": {}
      },
      "credentials": {
        "slackApi": {
          "id": "credential-id",
          "name": "slackApi Credential"
        }
      },
      "typeVersion": 2.3
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "{{WORKFLOW_VERSION_ID}}",
  "connections": {
    "💰 Check High-Budget Lead": {
      "main": [
        [
          {
            "node": "👤 HubSpot — Create/Update Contact",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📄 Log Lead to Google Sheet": {
      "main": [
        [
          {
            "node": "😊Sends Message to Slack",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📋 Typeform Submission Trigger": {
      "main": [
        [
          {
            "node": "💰 Check High-Budget Lead",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📝 HubSpot — Add Priority Task": {
      "main": [
        [
          {
            "node": "📘 Check if Lead is of (Facebook/SurveyMonkey)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "👤 HubSpot — Create/Update Contact": {
      "main": [
        [
          {
            "node": "📝 HubSpot — Add Priority Task",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📘 Check if Lead is of (Facebook/SurveyMonkey)": {
      "main": [
        [
          {
            "node": "📄 Log Lead to Google Sheet",
            "type": "main",
            "index": 0
          }
        ],
        []
      ]
    }
  }
}