This article describes the operation of a weekly script designed to assign students among coaches. The aim is to ensure that each student is paired with the most suitable trainer, based on specific criteria and logistical considerations.


Setting up Coach and Student Schedule


Eligibility Criteria for Students

Students are considered eligible for assignment to a coach if they meet either of the following conditions:

  • They have an Active status, but don’t have an assigned coach.
  • They have an Active status, but their schedule no longer aligns with their current coach’s availability.
  • They have a Registered status and their first lesson at TUMO is scheduled within the next seven days. 

Coach Assignment Process

The script operates as follows:

  • Identifying Eligible Students: The system first selects eligible students who need to be assigned to coaches, based on their schedules.
  • Coach Selection and Assignment: It assigns students to coaches based on schedule accordance. If multiple coaches are available for a student, the script assigns the student to the coach with the fewest students in that session, promoting an equitable distribution.
  • Managing Overloads: The script also monitors if any coach exceeds the maximum allowed student count per session. In such cases, it reassigns the students who have been with the overloaded coach the longest to another suitable coach with a smaller student load.

Distribution Logic for “New Students”

  • New Student Definition: New students are those who have just started their learning journey at TUMO and require the assignment of their first coach.
  • Script Adaptation for New Students: In centers handling 'New Students', the script is tailored to distribute these students among designated coaches.
  • Maximum Assignment Capacity: For new students, the maximum assignment per coach per session is capped at 10. This means if there are 11 new students, the system assigns 10 to the coach with the fewest students and 1 to another coach.
  • Purpose: This distribution strategy is designed to limit the number of new students assigned to each coach in a single session, ensuring effective follow-up and personalized attention.

Handling Common Issues

No other frequent issues have been identified for this workflow. If you encounter a problem, please

contact TUMO Product Support.