Before you start
Use an authorized workspace and a small file with stable source IDs. Have source access and your team’s acceptance policy available. This guide describes customer-authored logic, not an automatically enabled product policy.1. Understand the decision
Routing applies business policy to accepted identity and qualification evidence. Enrichment does not define territories or commercial ownership. Test this fictional sample before calling providers:2. Inspect supported operations
deepline describe <returned-id> --json.
Compare required identifiers, outputs, access mode, and price.
A similar title does not establish that a contract fits.
3. Implement the bounded workflow
Ask your agent to authorinbound-lead-routing.play.ts using Write Plays.
Have it declare the CSV input and preserve source IDs.
Reuse existing contracts when they fit the transformation.
Implement these rules explicitly:
- Define eligibility, territory rules, fallback behavior, and protected ownership.
- Resolve person and account identity before evaluating routing inputs.
- Return the proposed owner and exact rule reason. Keep unknown inputs unresolved.
- Test repeated events and conflicting ownership before enabling destination writes.
4. Check and pilot
Preparepilot.csv using CSV-safe selection.
Then check the source:
5. Verify the outcome
Compare proposed owners with a labeled decision table. Count unresolved leads separately from assignments and request failures.Every source ID has a result or explicit exception. The fictional cases follow
the stated policy, and actual results retain their evidence.