Open kit · No signup required
Give every enquiry
a clear next step.
Route a sales question to the right team. Keep missing information and repeated submissions out of automatic assignment. This small local example shows the decision behind each outcome.
Offline Node.js example. No accounts, network requests, emails or CRM changes. Requires Node.js 20 or later; tested with Node.js 26.4.0 on 20 November 2026.
Run it in three steps
- Download and unzip the kit. Open a terminal in the extracted folder.
- Run the verification command, then print the routing decisions:
node verify.mjs
node route-leads.mjs sample-leads.json rules.json- Change an owner or the sales-size threshold in
rules.json, then run the router again. Update expected results deliberately when you change the policy.
The runner prints JSON and leaves the input unchanged. The verification command compares all 24 sample decisions with the included expected results.
The decisions are explicit
- Declared support and billing requests go to their respective teams.
- Sales requests below 100 employees go to Founder sales; 100 or more go to Account team.
- Missing or invalid details, unsupported request types and repeated IDs go to Human review.
The threshold and team names are sample business choices. The declared request category wins over words in the message. That input can be wrong: the example does not understand language, run AI or verify the truth of an answer.
Every file, available separately
Setup, routing policy, limitations and an integration checklist
The runnable router and a simple keyword baseline
Editable team names and the sales-size threshold
Fictional inputs covering ordinary and difficult cases
Expected assignments and review decisions
Checks the sample against the expected decisions
Reproducible comparison results and limitations
What we checked—and what comes next
We executed the router, checked invalid inputs and duplicate handling, compared all fixture decisions and extracted the ZIP to run its own verifier. The sample was authored to exercise this policy; it is not a real-world accuracy benchmark.
Before connecting real leads, agree queue ownership and test the actual form mapping, credentials, persistent deduplication, retries and alerts. This kit detects duplicates within one batch only. It does not create a workflow in TinyCommand, Make or n8n.
Read the lead-intake recipe for the wider process, or get the optional weekly brief. The download stays open either way.