Hi!
I currently have a site that uses Bubble API connector to display an Open AI assistant. I would like to create or retrieve a specific Open AI assistant per user.
My question is: has anyone done this? Any suggestion how to approach it?
I also would like to understand more how functions - is it by IP session and wouldn’t persist if someone used a new computer or incognito? Is there a way to do this by logged-in user if so?
Hi @ljvb1144, in a typical case you only create one assistant and you will create “threads” for your users that engage with the assistant. The Thread can contain your user/specific information… such as details/messages and files that relate to that thread or conversation. That way, your assistant can give you information relevant to that user only, within the context of your Thread and for other users it can do the same without needing to invoke an Assistant per user.
What’s your thinking behind creating one per user?
The thread/conversation is persistent and you could save and associate it with the User so that only that user can access it and check it again later.
So the idea is that I want to create a “context” for each user during onboarding that I can embed in the Assistant’s prompt.
Otherwise the Assistant will lose that context over time as the thread gets longer and longer.
I know I can Create an Assistant using the Bubble API Connector, but what I’m struggling with is how can I display a unique assistant to each user in the frontend?
You might send the existing/new context for each new Thread where it’s relevant?
However, if you have decided you need to create a unique assistant per user then you could store the assistant ID against the user and make that a parameter in your API call.