Working with google docs and PDF

Hi everyone, I currently have the task of making an assistant that will work with googledocs. The main task is for ChatGPT to make corrections to this document, correct errors, rework the tone of the document and give it to me in PDF format. It is important that inside the document the layout, all pictures and attached links are preserved, and only the content is changed. But ChatGPT says that it cannot interact with the document and give me the finished document at once.
Question: how to implement such an assistant, are there any suitable mechanics for today?