In the new dynamic discipline code suggestion feature, Focus uses Artificial Intelligence via ChatGPT API to analyze the referral description entered by the referral reporter and suggest up to 3 relevant discipline codes. The user can click a suggestion and populate the Discipline Code field on the referral.
See Dynamic Discipline Code Suggestions Using AI for an overview video of this new feature.
In order to use this feature, the referral field that is used for the referral description (such as custom_61) must have the "AI Accessible" toggle enabled in Discipline > Referral Fields. The "AI Accessible" toggle can be enabled on any "Long Text" field. Focus will use AI to suggest discipline codes based on the text entered in this field. Discipline codes are set up in Discipline > Referral Codes & Actions > Codes tab.
1. In the Discipline menu, click Referral Fields.
![Referral Fields](https://media.screensteps.com/image_assets/assets/008/044/882/original/75017cc2-1984-4f36-98d3-129aaa762365.png)
2. Click the Fields tab.
3. Locate the Long Text field that is used for the referral description, and click Edit Field next to the field.
4. Select the AI Accessible toggle.
5. Click Save.
When a user adds a referral for a student and enters a description in the designated "AI accessible" field, up to 3 AI-generated suggestions will display above the Discipline Code field. Clicking a suggestion will populate the Discipline Code field.
This functionality is also available for teachers when both the Discipline Code and "AI accessible" description fields are included on the Add Referral screen for teachers, and teachers have permissions to edit these fields.
1. In the Discipline menu, click Add Referral.
![Add Referral](https://media.screensteps.com/image_assets/assets/008/045/006/original/84554d18-adf5-4642-a902-b43c8cf16c27.png)
2. On the Search Screen, enter search criteria to locate the student, and click Search.
See Searching for Students for more information on the various ways to search for students.
3. In the search results, click the appropriate student.
4. Enter the referral description in the designated "AI accessible" description field.
![Add Referral](https://media.screensteps.com/image_assets/assets/008/045/018/original/7457743e-34f8-4a5a-b065-f2d5e11db537.png)
5. When you pause typing, up to 3 discipline code suggestions will display above the Discipline Code field on the referral. Click the desired discipline code.
The code will populate the Discipline Code field.
6. Complete the rest of the referral and click Save.
When an administrator reviews a submitted referral, up to 3 AI-generated suggestions will display above the Discipline Code field based on the description entered in the designated"AI accessible" field by the reporter.
1. In the Discipline menu, click Referrals.
![Referrals](https://media.screensteps.com/image_assets/assets/008/048/303/original/c7a4d4f3-a0ba-4ce4-b114-5727390ac803.png)
2. On the Search Screen, enter search criteria to locate the student, and click Search.
See Searching for Students for more information on the various ways to search for students.
3. Click the referral to view.
4. Up to 3 discipline code suggestions will display above the Discipline Code field on the referral, based on the description entered by the reporter. Click the desired discipline code.
![](https://media.screensteps.com/image_assets/assets/008/048/493/original/ecb9e773-d7d1-4b27-8ff9-44f77e8597c2.png)
The code will populate the Discipline Code field.
5. Complete the referral as needed, including adding an action record and marking the referral as reviewed. Click Save when finished.