Elixir library and Mix task. Give it a CSV of leads with a yes, no or unknown answer for each of the four BANT questions (budget, authority, need, timeline) and it scores every lead and prints a verdict, best leads first.
Scoring: each letter is worth yes = 2, unknown = 1, no = 0, so the total runs from 0 to 8. The values true and false are accepted as yes and no. Verdict thresholds: 7 to 8 is qualified, 4 to 6 is nurture, 0 to 3 is disqualify. Leads are sorted by score (highest first), then by lead name. The letters are shown as Y (yes), N (no) and ? (unknown). Any other value in a letter column stops the run with an error naming the line.
Part of the OneGTMLab free GTM tools. Background on the idea: lead qualification.
Install
{:bant_score, "~> 1.0"} # in mix.exs depsUse
CSV columns: lead, budget, authority, need, timeline. Values: yes, no, unknown (true and false also accepted).
$ mix bant.score sample.csv
lead B A N T score verdict
Acme Y Y Y Y 8 qualified
Birch Y Y Y ? 7 qualified
Juniper ? Y Y Y 7 qualified
Cedar Y N Y Y 6 nurture
Delta ? ? Y Y 6 nurture
Granite Y Y N Y 6 nurture
Ivy Y Y ? ? 6 nurture
Echo N N Y ? 3 disqualify
Fjord Y ? N N 3 disqualify
Harbor N N N N 0 disqualify
qualified: 3
nurture: 4
disqualify: 3
Test
mix testOffline, no network calls, no dependencies beyond the language runtime. MIT licensed.