I have created a tool that analyzes legal contracts and I am looking for a way to provide the report in Word and if possible, have OPENAI API pass formatting instructions for Word. Are there any escape sequences or perhaps I should view them as HTML and use some funky coding to perform things like bolding, headings, and so on? I perform a lot of post formatting, but I was hoping there was a better way to somehow provide the output from OPENAI in a “formatted manner” like happens in ChatGPT.
Hi @markj.davenport - have you considered using a Python script for the Word document creation?
I’ve just very recently implemented sth along those lines. I consolidate all GPT outputs in a JSON and then pass the JSON as input for the document creation/python script via HTTP request.
Happy to share more details.