{
  "meta": {
    "instanceId": "workflow-65ec25e6",
    "versionId": "1.0.0",
    "createdAt": "2025-09-29T07:07:51.862821",
    "updatedAt": "2025-09-29T07:07:51.862833",
    "owner": "n8n-user",
    "license": "MIT",
    "category": "automation",
    "status": "active",
    "priority": "high",
    "environment": "production"
  },
  "nodes": [
    {
      "id": "8b2dad6b-9771-4351-bddc-819746cb04c1",
      "name": "Get leads created last 5 minutes",
      "type": "n8n-nodes-base.hubspot",
      "position": [
        160,
        500
      ],
      "parameters": {
        "resource": "company",
        "operation": "getRecentlyCreatedUpdated",
        "returnAll": true,
        "authentication": "{{ $credentials.oAuth2 }}",
        "additionalFields": {
          "since": "={{ $now.minus({ \"minutes\": 5 }) }}"
        }
      },
      "credentials": {
        "hubspotOAuth2Api": {
          "id": "KTv7XIF0qMaGfg8O",
          "name": "HubSpot account"
        }
      },
      "typeVersion": 2,
      "notes": "This hubspot node performs automated tasks as part of the workflow."
    },
    {
      "id": "63db576a-6bb7-4215-88f3-98e304081b3e",
      "name": "Notify sales rep",
      "type": "n8n-nodes-base.slack",
      "position": [
        700,
        500
      ],
      "parameters": {
        "text": "=New high-quality lead 🤑\n*Company Name*: {{ $json.properties.name.value }} \n*Website*: {{ $json.properties.website.value }}\n*Revenue*: {{ $json.properties.annualrevenue.value }}\n*Number of employees*: {{ $json.properties.numberofemployees.value }}",
        "user": {
          "__rl": true,
          "mode": "list",
          "value": "U0361884CU9",
          "cachedResultName": "ricardo"
        },
        "select": "user",
        "otherOptions": {},
        "authentication": "{{ $credentials.oAuth2 }}"
      },
      "credentials": {
        "slackOAuth2Api": {
          "id": "wpCG1E4YH2xiwWxK",
          "name": "Slack account"
        }
      },
      "typeVersion": 2.1,
      "notes": "This slack node performs automated tasks as part of the workflow."
    },
    {
      "id": "2b12fb75-ec81-4d2c-a8bb-12ff2bb7e935",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -420,
        460
      ],
      "parameters": {
        "width": 257.64008049230523,
        "height": 176.97404402400312,
        "content": "## Setup\n1. Add `Hubspot` and `Slack` credentials.\n2. Adjust polling time.\n3. Enable the workflow."
      },
      "typeVersion": 1,
      "notes": "This stickyNote node performs automated tasks as part of the workflow."
    },
    {
      "id": "5c4235de-c7fe-43fc-a351-69e928ba2673",
      "name": "Trigger every 5 minutes",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -100,
        500
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "minutes"
            }
          ]
        }
      },
      "typeVersion": 1.1,
      "notes": "This scheduleTrigger node performs automated tasks as part of the workflow."
    },
    {
      "id": "7af59e19-893a-477a-ba21-4c1c151ffea4",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        100,
        400
      ],
      "parameters": {
        "color": 7,
        "width": 225.41119920533646,
        "height": 282.2830454675093,
        "content": "`Since` parameter should match the polling time."
      },
      "typeVersion": 1,
      "notes": "This stickyNote node performs automated tasks as part of the workflow."
    },
    {
      "id": "123ad2e5-f4f2-4411-bf03-5668124b8757",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        380,
        400
      ],
      "parameters": {
        "color": 7,
        "width": 223.7628185364029,
        "height": 276.3308728978709,
        "content": "Adjust condition to filter leads by your desire condition. e.g, revenue, number of employees, etc."
      },
      "typeVersion": 1,
      "notes": "This stickyNote node performs automated tasks as part of the workflow."
    },
    {
      "id": "4263cd25-dcf3-4521-b716-0ce48d3b2c26",
      "name": "Keep the ones that make more than $5M in revenue",
      "type": "n8n-nodes-base.filter",
      "position": [
        440,
        500
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "1b31b826-e87d-425f-a65d-370b4b20f7e1",
              "operator": {
                "type": "number",
                "operation": "gt"
              },
              "leftValue": "={{ $json.properties.annualrevenue.value.toInt() }}",
              "rightValue": 5000000
            }
          ]
        }
      },
      "typeVersion": 2,
      "notes": "This filter node performs automated tasks as part of the workflow."
    },
    {
      "id": "ba1a4a6c-a734-45c7-bb05-df0810a2253b",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        640,
        400
      ],
      "parameters": {
        "color": 7,
        "width": 223.7628185364029,
        "height": 276.3308728978709,
        "content": "Send notification to slack with the desired information."
      },
      "typeVersion": 1,
      "notes": "This stickyNote node performs automated tasks as part of the workflow."
    },
    {
      "id": "error-182f140a",
      "name": "Error Handler",
      "type": "n8n-nodes-base.stopAndError",
      "typeVersion": 1,
      "position": [
        1000,
        400
      ],
      "parameters": {
        "message": "Workflow execution error",
        "options": {}
      }
    }
  ],
  "pinData": {},
  "connections": {
    "63db576a-6bb7-4215-88f3-98e304081b3e": {
      "main": [
        [
          {
            "node": "error-handler-63db576a-6bb7-4215-88f3-98e304081b3e-caa0d41d",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "name": "Hubspot Workflow",
  "settings": {
    "executionOrder": "v1",
    "saveManualExecutions": true,
    "callerPolicy": "workflowsFromSameOwner",
    "errorWorkflow": null,
    "timezone": "UTC",
    "executionTimeout": 3600,
    "maxExecutions": 1000,
    "retryOnFail": true,
    "retryCount": 3,
    "retryDelay": 1000
  },
  "description": "Automated workflow: Hubspot Workflow. This workflow integrates 6 different services: stickyNote, filter, hubspot, scheduleTrigger, stopAndError. It contains 9 nodes and follows best practices for error handling and security.",
  "tags": [
    "automation",
    "n8n",
    "production-ready",
    "excellent",
    "optimized"
  ],
  "notes": "Excellent quality workflow: Hubspot Workflow. This workflow has been optimized for production use with comprehensive error handling, security, and documentation."
}