I have found a couple of posts of the json payload needed in a workflow in order to invoke an agent but this payload only includes text content and I also need to send a file in base64 format. I have seen something like this in another post
Thank you for reaching out to the Retool community.
You should be able to send these information to a Workflow, no problem. What I think might be happening here is your JSON is not formatted completely. All JSON keys need to be in double quotes — type, text, filename, and file_data were missing them.
I went ahead and remade it for you to try and copy and paste and see if this fixes it.
Thank you for your reply. I actually got the solution from another community member MiguelOrtiz, the issue was that I had to stringify the content property.