
Right now the SharePoint “Create file” action expects proper binary file content, but when you’re just passing text from your GenAI agent it doesn’t become a valid Word file. That’s why the action keeps asking you to upload something.
You need to create a Power Automate flow.
Your agent produces text (or HTML).
Power Automate receives that text as input.
In the flow, you either: Convert the text/HTML into a real .docx (e.g., with the OneDrive “Convert file” step) or use the Word Online (Business) connector with a template that has content controls, then populate it.
Finally, use SharePoint - Create file action to place the finished .docx into your document library.
The practical way to do what you want is: GenAI → Power Automate flow → SharePoint.
Let me know if you have already tried this and let me know if you are new to Power Automate and need help.