Assistant API doesn't answer what the User was asking through Retrieval

I’m running Python Anvil Platform. Instead of a question inside of an Assistant API thread, I want the question to come from a User Input GUI text box/area from my webpage. Then that ‘User input’ goes to Assistant API and finds the answer through Retrieval.
I can’t get the Assistant API to read my textbox/area, it prints text from the file, but doesn’t print what the User was asking. Is it possible for Assistant API to read user-input message through my webpage? Or does the question have to be in the message thread of the API?

The plain text of a user message can only be place programmatically by a create message API call.

You are free to obtain the text however you want in your own code, but you must send the message yourself to attach it to a thread, and then invoke a run.

1 Like