How do you give system messages to an Assistant?

Hey there,

I am building an app where I need to pass information about the current thread to the assistant. I am using OpenAI’s Assistant API. Previously I did it manually by adding a to the user’s message whenever I had some information to give it, but that sometimes resulted in weird results. I recently tried switching to using additional_instructions on the runs, but it seems that information is not retained for the entire thread, but only that one run.

So how do you do it?

1 Like

Hi Schenk
I am working with an API assistant that can “see” the whole state of the user interface controls for an application at a given instant to help users to learn how to use it. I use Function call to provide the assistant with a mean to ask for a JSON file with this information, which is generated by the application itself. The application, then, upload this file to the assistant’s vector store, using the corresponding API, so the assistant can use File search tool to read the file.
Maybe you can use a simmilar approach to provide updated infomation to the assistant vector store, and just give it a message asking it to read the upated document to perform its task. You can delete the old file version and then upload the new one, so there is always a single file.
Assistants tell me they prefer JSON structured files instead of plain text, but I’m already investigating whether that is true or not.

1 Like

I see. Annoying that they don’t just allow messages from the role system or something like that, but I like your workaround.