Lead scoring
lead-scoringScores people, and optionally companies, under a tenant-editable score model. Each record's columns, enrichment status, segments and mail opens, clicks and replies feed the model, and the record is scored again when any of them change.
Growth & engagementmanagedcustom
Install
The command also installs updated-at, tenant, access, parties, rules, scores, the modules it needs.
npx better-supabase add lead-scoringConfigure
The blocks entries in your config, with the default mode.
import { defineConfig } from "better-supabase/config";
export default defineConfig({
blocks: {
// Required by lead-scoring; add installs them too.
"updated-at": {},
tenant: {},
access: {},
parties: {},
rules: {},
scores: {},
// Modes: "managed", "custom". The default is "managed".
"lead-scoring": { mode: "managed" },
},
});Migrations
The files
npx better-supabase add lead-scoring writes into your declarative schema with the default layout.Client
This block has no React entry yet. Its TypeScript side is in better-supabase/blocks/lead-scoring, which runs on the server.
Events
With the outbox installed, the module writes these in the same transaction as the change.
This module writes no outbox events.
Dependencies
Recipes
No UI recipe uses it yet. See all recipes.
More in Growth & engagement
- Feature flagsflagsFeature flags with variants, targeting rules over tenant, user, plan, role and custom contexts such as brand, overrides and a percentage rollout bucketed by SHA-256. flag_enabled() goes in policies; createFlagsProvider() evaluates the same way for OpenFeature and the Flags SDK.
- OnboardingonboardingOnboarding checklists per user or organization, run as enrollment programs: the completed steps, completed by hand or by an outbox event type. Organization checklists check onboarding.read and onboarding.complete.React hooks
- Waitlist and invite codeswaitlistA waitlist with positions and approvals, and hashed invite codes with a use limit, an expiry and an optional organization and role. waitlist_admit() backs a before-user-created hook that only lets approved addresses or valid codes sign up.
- AnnouncementsannouncementsIn-app announcements for everyone, tenants, roles or plans within a time window, with per-user dismissals and a Realtime broadcast when they change. Staff manage them with announcements.manage on the platform.React hooks
- ScoresscoresTenant-editable scoring models: rules (a filter tree over the rules field catalog worth points) and metrics (a number times a weight, or a record's vote score) that write versioned scores with bands to any subject. Lead scoring and health scoring are models.