Scenario: Created an Assistant for a web-based (wordpress custom plugin) product using the Beta API. Am I correct in understanding we must create a new assistant and give “new” instructions every time we use it?
I know it’s still Beta but want to make sure I’m not missing something. Thanks all.
you do not need to give it new instruction. you can use the original instruction in every thread you make. however, you can also extend its instruction to append “new instruction” depending on the circumstances (e.g. append current datetime, user profile, etc.). you can use the assistant like a stand-alone API endpoint (1 call 1 result) or as normal chatbot. you can make an assistant with base instruction, base knowledge files and just extend it per user.
1 Like
Thank you for the quick response, @supershaneski . I understand the instructions span threads. However, from a website perspective unless you share sessions across users and clients, you need to create a new assistant for each user and session right? There is no way to call an existing assistant through the API right?
Said another way, I cannot create an assistant and call that assist by key / ID every time from every session, can I ?
Sorry if I’m missing something obvious here.
you can use one assistant to serve many users. you just need to make 1 thread per user.
2 Likes
Thanks. Trying that now. Likely my lack of coding skills, but previous attempts to access an existing assistant ID always seemed to fail.
Thanks @supershaneski - obviously you were right. Not sure what I was doing wrong the first time when it would not work. However, now it’s fine. For anyone stumbling on this question, the documentation is right in this.
- Create the assistant
- Instruct it
- Copy the assistant key
- Use your API key and Assistant key
- Create a thread
- Add messages to thread
- Etc.