OpenAI assistant instructions override
I want to pass user related information to the assistant and I thought doing it through the instructions made sense. The issue I have is that when I do it, instructions from the playground get overriden. Any idea on how to avoid that? (You can see in the screenshots that the assistant forgot his name when I add the instructions)
Solution:Jump to solution
Is it possible to add this dynamically in the assistant node by using a datasource or tool? For example, where is you're user information coming from? A database or externally? https://docs.buildship.com/ai-assistant/openai-assistant#adding-nodes-to-the-assistant
OpenAI Assistant Node – BuildShip
The OpenAI Assistant Node allows you to integrate the OpenAI Assistant API into your BuildShip workflows.
9 Replies
AI Support Bot Information
<@970511721393426463> you can react on the relevant answer (message) with a ✅ in this thread when you think it has been solved, by the bot or by a human!
Anyone can react on this message with a ❌ if the GPT bot is unhelpful or hallucinating answers.
Please note: Team members will review and answer the questions on best efforts basis.
AI Response
It seems like you're trying to customize instructions for an AI assistant while preserving the assistant's predefined capabilities, such as its name and other settings from the playground. In the BuildShip platform, instructions you pass via the API can override what's set up in the OpenAI playground, which can lead to the assistant forgetting or ignoring certain details like its name.
Here are some strategies to avoid this issue and ensure the assistant retains its default instructions while incorporating additional information in a balanced way:
1. Additive Instructions: Instead of replacing the existing instructions, you can append the new information to the existing playground settings. This can help in retaining the original settings while including the user-specific data.
2. Dynamic Parameters: Use dynamic parameters for portions of the instructions that need to change, like user-specific information, rather than overwriting the entire instruction block.
3. Modular Instructions: Break down the instructions into blocks where there can be a standard setup and a customizable block. Ensure the core instructions that define the assistant’s identity and capabilities are retained at all times.
4. API Field Management: If using the API, ensure that fields where you pass data do not fully replace existing content unless intended. Test parameters or consider modifying the specific part of the instruction that you aim to update.
5. Review Documentation: Consult the BuildShip guide to see if there's a specific setting that can be leveraged to prevent full instruction override, likely by controlling how new instructions are merged with existing ones.
6. Environment Testing: Try different environments or templates in BuildShip where managing instructions may differ, allowing for more robust customization without overrides.
If you have further questions on implementing these strategies, I'd recommend reaching out to BuildShip support for more tailored assistance regarding the functioning of the playground vs. API parameters.
BuildShip AI Support
How can I do the append thing within Buildship?
Problem is that I am not really accessing it so I am not sure how to append. I only access it by not specifying it...
Hey @Benoît Devilliers, is there any reason why you're unable specify the information as well in the instructions of the node? The node's instructions is desinged to override that of the playground.
Hey @Luis I don't want to override the instructions. Instructions have been specified in the playground and I want to add user related information (age interests and so on) to the call.
Ideally I would want to append it to the instructions of the playground or use some other way to give that additional context
I would also be interested in a way to retrieve instructions from the playground in Buildship and append them to the additional ones if this is possible.
I'm wondering if I can access it since it uses it when no instructions are specified
Solution
Is it possible to add this dynamically in the assistant node by using a datasource or tool? For example, where is you're user information coming from? A database or externally? https://docs.buildship.com/ai-assistant/openai-assistant#adding-nodes-to-the-assistant
OpenAI Assistant Node – BuildShip
The OpenAI Assistant Node allows you to integrate the OpenAI Assistant API into your BuildShip workflows.
I am adding the dynamic data from Bubble
Directly in the Post request
Ok thanks for the clarification. Let me think on this for a bit and I'll get back to you.
Also, are you able to open an in-app support request for your workflow?
I just sent an in app support request, tagged it as issue. Let me know if I can do anything else