An enterprise-grade, bi-directional RevOps integration middleware built with Node.js, Express, and HubSpot CRM API. Designed to automatically qualify incoming sales leads using a deterministic scoring rules engine and push priority scores back to HubSpot in real time.
- Bi-Directional HubSpot Sync: Dynamically queries HubSpot CRM via REST API to fetch lead properties and updates contact scoring upon qualification.
- Deterministic Rules Engine: Scores leads based on company domain validation, executive title hierarchy, employee headcount, target market geography, and lifecycle stage.
- Audit Trail Generation: Appends granular, point-by-point scoring breakdowns for full RevOps transparency and manual review routing.
- Automated Unit Testing: Fully covered by Jest test suites verifying edge cases, student/intern filters, and existing customer pipeline bypasses.
- Backend Environment: Node.js, Express.js
- CRM Integration: HubSpot CRM API v3 (REST, Axios)
- Testing Suite: Jest, Supertest
- Dev Tools & Versioning: Git, Postman, Dotenv
| Criteria | Condition | Score Impact |
|---|---|---|
| Email Domain | Corporate Domain Verified | +20 Points |
| Email Domain | Free Email Provider (Gmail, Yahoo) | +0 Points |
| Job Role | Executive / Decision Maker (C-Level, VP, Director) | +30 Points |
| Job Role | Non-Buyer Role (Student, Intern) | -20 Points |
| Geography | Primary Target Market (US, UK, CA) | +10 Points |
| Lifecycle | Existing Customer | -100 Points (Pipeline Bypass) |
- Node.js v18+
- HubSpot Private App Access Token (CRM Read & Write Scopes)
Create a .env file in the root directory:
PORT=5000
HUBSPOT_ACCESS_TOKEN=pat-na1-xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx