Assign Best Technician
assign_best_technicianSelect the most suitable technician for a work order by filtering candidates by territory and required skills, then assigning the least-loaded match.
Instructions
Pick the most suitable technician for a Work Order and assign them. Technicians are filtered by territory and (optionally) required skills, then the least-loaded match is selected. Returns the chosen technician and the updated work order.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| territory_id | No | Restrict candidates to this territory ID. | |
| work_order_id | Yes | Work Order to staff. | |
| required_skills | No | Skill names a candidate must have (matched against the Skills field). |