Lead assignment script

Assign leads to agents if they're available

Setup & Running script

  • Install npm dependencies npm i
  • Run script by using ts-node leadassign.ts leads.csv agents.csv
  • You will see leads and their agents assigned and also the current weight of each agent