A lightweight, client-side qualification system for solar cases that integrates seamlessly with GoHighLevel landing pages. This tool helps you automatically score and qualify solar leads based on specific criteria, routing them appropriately within your CRM.
- Client-Side Scoring: All scoring logic runs in the browser - no backend required
- GoHighLevel Integration: Direct API integration for seamless lead capture
- Customizable Scoring: Easy-to-modify scoring rules via configuration
- Responsive Design: Works perfectly on desktop and mobile devices
- No Build Tools: Copy-paste ready for GoHighLevel custom code blocks
- Presents a pre-qualification form to potential solar case leads
- Collects contact information and qualification questions
- Uses conditional logic to show/hide relevant questions based on responses
- Calculates a deterministic score based on answers
- Determines qualification status (qualified/unqualified)
- Submits lead data to GoHighLevel with:
- All survey answers
- Calculated score
- Qualification status
- Routing tag
- Redirects to appropriate result page:
- High-score page for qualified leads
- Low-score page for unqualified leads
- Open
index.html - Replace these values in the
CONFIGobject:GHL_API_KEY: 'your_actual_api_key', GHL_LOCATION_ID: 'your_location_id',
- Copy the entire file contents
- Paste into a GoHighLevel Custom Code element
- Publish your page
- Edit
js/config.jswith your GoHighLevel credentials - Upload all files to your web hosting
- Link to
index-modular.html
See SETUP.md for detailed instructions.
The system calculates a qualification score based on conditional questions that appear when the installer is not responsive.
| Question | Answer | Points |
|---|---|---|
| Panels covered in shade? | Yes | +30 |
| Panels covered in shade? | No | 0 |
| Inverter installed outside? | Yes | +20 |
| Inverter installed outside? | No | 0 |
| Electricity costs | Paying more after installation | +50 |
| Electricity costs | Breaking even | +25 |
| Electricity costs | Saving money | 0 |
Qualification Threshold: 60 points
- Score ≥ 60 → Qualified (redirects to high-score result page)
- Score < 60 → Not Qualified (redirects to low-score result page)
Note: Scoring only applies when users follow the conditional path where installer status = "No".
Edit the CONFIG.SCORING object:
SCORING: {
payingMoreYes: 50, // Adjust point values
shadeYes: 30,
inverterOutsideYes: 20,
threshold: 60 // Change qualification threshold
}- Add HTML form field to
index.html - Collect value in form submission handler
- Add scoring logic in
calculateScore()function - Add custom field to API payload
See SCORING_GUIDE.md for detailed examples.
Edit the CONFIG.TAGS object:
TAGS: {
qualified: 'your_qualified_tag',
unqualified: 'your_unqualified_tag'
}solar-case-scoring/
├── index.html # All-in-one version (recommended for GHL)
├── ghl-embed.html # GoHighLevel embed version (copy-paste ready)
├── result-high-score.html # Qualified leads result page
├── result-low-score.html # Unqualified leads result page
├── index-modular.html # Modular version
├── css/
│ └── styles.css # Separated styles
├── js/
│ ├── config.js # Configuration
│ ├── scoring.js # Scoring logic
│ └── api.js # API integration
├── examples/
│ ├── basic-form.html # Minimal example
│ └── advanced-form.html # Advanced features
├── README.md # This file
├── SETUP.md # Detailed setup guide
├── SCORING_GUIDE.md # Scoring customization guide
└── CONFIGURATION.md # Configuration reference
- Internal tools
- Low-volume applications
- Development/testing
For production environments, consider:
- Using GoHighLevel form webhooks instead of direct API calls
- Implementing a backend proxy (Cloudflare Workers, AWS Lambda)
- Using environment variables and server-side rendering
See CONFIGURATION.md for secure deployment options.
- GoHighLevel account with API access
- Modern web browser (Chrome, Firefox, Safari, Edge)
- GoHighLevel custom fields configured
- Tags created in GoHighLevel tag library
- Setup Guide - Step-by-step setup instructions
- Scoring Guide - Customize scoring logic
- Configuration Reference - All configuration options
- Chrome/Edge (latest)
- Firefox (latest)
- Safari (latest)
- Mobile browsers (iOS Safari, Chrome Mobile)
MIT License - see LICENSE file for details
Contributions are welcome! Please feel free to submit a Pull Request.
For issues or questions:
- Open an issue on GitHub
- Check the documentation files
- Review GoHighLevel API documentation
- Backend proxy implementation example
- Webhook-based alternative
- Multi-step form wizard
- Analytics dashboard integration
- A/B testing framework
- Predictive ML scoring model
- Salesforce integration
- Zapier/Make.com templates
Built for solar case qualification and lead routing optimization.
Version: 1.0.0 Last Updated: November 2024