# FAQ: Staff Priority Order with AI Planning (Potential Staff)

### What is this feature for?

When you use **AI Scheduling** with **potential staff**, Yoplanning automatically assigns sessions to available staff members. The assignment order follows a hierarchical ranking that you define yourself. This allows you to prioritize certain staff members when booking a session from AI Scheduling.

***

### How to define the order of priority?

1. **Access the staff list**
   * Log in to Yoplanning.pro.
   * Go to **Menu > Administration > Staffs**.
2. **Open sort mode**
   * Click on the **"Three small dots"** menu at the top right.
   * Select **"Sort"**.
3. **Set the order**
   * Reorder staff rows by dragging and dropping, from highest priority (top) to lowest priority (bottom).
   * The order defined here will be used for assigning sessions in the AI Schedule.

***

### Best practices

* **Check Context**: Sorting only works if the **Context** filter is set to **"Current Team"**.
* **Update regularly**: Adjust the order based on seasonal availability and skills.
* **Use Tags**: Combine sorting with skill tags to optimize distribution.

***

### Common Problems and Solutions

| Issue                        | Possible cause                                    | Solution                                         |
| ---------------------------- | ------------------------------------------------- | ------------------------------------------------ |
| The order does not apply     | The "Context" filter is not set to "Current Team" | Select "Current Team" and start sorting again    |
| Inconsistent attribution     | Sorting not updated for a long time               | Reorganize staff according to current priorities |
| Staff ignored in attribution | Staff not defined as "potential" in the product   | Check the associated product settings            |

***

**In summary**: The order you define in the staff list is the order Yoplanning follows to automatically assign sessions when a staff is potentially available in the AI Planning.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.yoplanning.support/en/faq/faq-generale/faq-ordre-de-priorite-des-staffs-avec-le-planning-ia-staffs-potentiels.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
