Chat GPT and Power Automate Desktop

I have error when using the OpenAI API with power automate desktop it is a json parsing error it works with short prompts but I am trying to feed it a bunch of text from a document for it to summarize. The text has alll sorts of things like numbers etc and just comes from a text file. I keep getting this error though. Is there a certain format the text needs to be in?