Relational Database - Auto records assignment / linking

Dear Experts,

We have two Airtables for teachers and students. For each new student record added, we need to assign the student to a teacher based on the student info (language, age, …). We have linked both tables using name field but now want to make this automation of assigning students to teacher. Each teacher will have max capacity of students to be assigned.

Appreciate your advice for the best way to do that.

Thanks
Ahmed

hi @Ahmed,
I have dealt a few times with the challenge of linking two different sets of people according to a specific condition (teachers with students, consultants with clients, mentors with mentees, etc.). I have generally adopted two different approaches, both triggered whenever a new student is created as when a student is created, you need to assign a teacher to him/her.

  1. Easy to implement but limited → Using Airtable/Zapier automations to perform the matching by using find automations which you can set to look for the relevant teacher record (for example look for all teachers with spare capacity)
  2. Harded to implement but extremely flexible → Using an Airtable script triggered whenever a new student is created. The script should go into the teachers’ table and look for a teacher with spare capacity and then assign the student to the teacher found. I prefer this implementation as down the line you might want to add additional logic (like making the choice of the teacher among the teachers with spare capacity randomized, adding to the choice relevancy scores based on common interests between teachers and students and much more)

Hope this was helpful!

Website: alessiomonino.com
Calendly: Calendly - Alessio Monino
Email: alessio.monino@gmail.com

1 Like

This topic was solved and automatically closed 3 days after the last reply. New replies are no longer allowed.