I want to make a study app

I want to a app that if I input the question the
Test paper will be suffle and also a ocr scanner that scan text book and out the question using openai chat.and add to test paper

You can use Marco's OCR extension, or you can follow TIMAI2's tutorial on using Google Docs' OCR capabilities:

I did not understand exactly what you want to do.