OMILI PRIMARY SCHOOL AI ASSISTANT — CPANEL PACKAGE
Subdomain: https://chatai.omiliprimary.edu.pg
Main site: https://omiliprimary.edu.pg

This is a deployable PHP application package, not a live hosted service. Configure it on your cPanel server before use.
Requirements: PHP 8.1+, cURL, mbstring, HTTPS, an OpenAI API key (API billing is separate from ChatGPT).

Install:
1. Create chatai.omiliprimary.edu.pg in cPanel and enable SSL.
2. Recommended: set its document root to this package's public/ directory; keep config.php, api/, admin/, data/ and logs/ outside the public root.
3. Copy config.sample.php to config.php and add your OpenAI API key, password hash and long random refresh token.
4. Ensure data/ and logs/ are writable by PHP (750/770, never 777).
5. Visit /admin/, sign in and click Refresh Omili School Knowledge.
6. Add the script in docs/WEBSITE_EMBED.txt to the shared footer/template or every page of the main school website.
7. Test on Android, iPhone and desktop.

The crawler indexes only publicly accessible pages on omiliprimary.edu.pg. The assistant is instructed not to invent unpublished fees, policies, enrolment availability, dates, results or staff details. No assistant can know all site information until pages and documents are successfully indexed and verified. Refresh after updates.
Never expose API keys in JavaScript. Do not add private student records, grades, health details or confidential school data to the public knowledge base. Restrict admin access further using cPanel Directory Privacy/IP allowlisting if available.
