Welcome to the community!
A Custom GPT is easier to set-up, but you do lose control over the process. You might search around for other solutions, but I’m not sure if it’s able to accurately grab the page number and document name with 100% accuracy.
Hopefully others chime in.