What is the recommended framework and/or model to use for providing direct and appropriate feedback for self-help and therapeutic exercises?(PHP)

You are looking for a recommendation for a framework and/or model to use in an existing project (PHP).
The purpose of the framework/model is to provide direct and appropriate feedback for self-help and therapeutic exercises and questionnaires.
You are seeking advice on which framework/model would be best suited for this purpose.
I thought it would be easier to integrate AI in a project. It is for my
graduation assignment as a software developer (PHP)