Generate comprehensive referral strategy reports for your neXco chapter in minutes.
This tool automatically creates a referral strategy document for your neXco chapter by:
- Scraping your chapter's member directory
- Extracting member profiles and contact information
- Generating a structured report with:
- Member profiles and services
- Ideal referral profiles (templates to customize)
- Trigger events to monitor
- Referral language suggestions
- Automation criteria for tracking
See an example: NOVA Core Referral Strategy
# Install dependencies
npm install
# Install browser
npx playwright install chromiumnpx tsx scripts/generate-referral-strategy.ts https://members.nexconational.com/your-chapter/ output.mdExample:
npx tsx scripts/generate-referral-strategy.ts https://members.nexconational.com/loudoun-b2b/ loudoun-strategy.mdOpen the generated .md file and fill in the template sections with details about each member's:
- Ideal referral profile
- Trigger events to monitor
- Referral language
- INSTALL.md - Complete installation and usage guide
- BLUEPRINT.md - Future features and architecture (not implemented yet)
- Node.js 20 or higher
- Internet connection
- Your chapter's neXco member directory URL
src/
├── api/ # REST API endpoints
├── cli/ # Command-line interface
├── config/ # Configuration management
├── db/ # Database schemas and connections
├── domain/ # Domain models (member, contact, opportunity, tracking)
├── jobs/ # Scheduled background jobs
├── services/ # Business logic services
│ ├── alerts/
│ ├── detection/
│ ├── import/
│ ├── matching/
│ ├── notifications/
│ ├── opportunities/
│ ├── reporting/
│ ├── rules/
│ └── scraper/
└── utils/ # Utility functions
Key environment variables:
| Variable | Description | Default |
|---|---|---|
DATABASE_URL |
SQLite database path | ./data/referrals.db |
NODE_ENV |
Environment | development |
LOG_LEVEL |
Logging level | info |
RESEND_API_KEY |
Resend API key for email | - |
EMAIL_FROM |
Sender email address | - |
EMAIL_TO |
Recipient email address | - |
EMAIL_ENABLED |
Enable email sending | false |
# Run tests
npm test
# Run tests in watch mode
npm run test:watch
# Lint code
npm run lint
# Format code
npm run format
# Development mode
npm run devPrivate - All rights reserved
Built for the NOVA Core neXco chapter