Help with Creating Assistant with SystemPrompt
# support
l
I'm trying to use transient assistants throught the Server Messages and VapiSDK for JS. Using the SDK I'm not able to pass the systemPrompt property when creating the assistant. How can I attach my prompt when creating the assistant ?
s
@Leo can you record a loom video of the error response your getting and also the process your following to create the assistant.
l
I'm not receiving error. But the property is not available in the SDK. I tried to check the docs and its not available as well. Usually we have the
systemPrompt
property available within
model
object
Using the VapiSDK the systemPrompt isn't available at all
s
@Leo Click on play you will see the property role with list of options/enums with System as part of it.
s
There is no such property called system prompt instead you have to look for property named as messages and then click on add new item.
After that select role as system and then pass the system prompt.
l
Hmm, this is so weird, because using assistant on demand, I can provide a payload like this
Copy code
model: {
      temperature,
      systemPrompt: prompt, <- Here is my prompt
      tools,
      ...otherModelProperties
    },
    ...otherAssistantRequestProperties
c
No Leo, I don't see have this field named
systemPrompt
to pass the assistant's prompt. Can you help me with the source of this?
l
Yes, we have this setup for a while (almost 1 year we). But I couldn't find anything in changelogs mentioning this property (maybe was deprecated without announcement?)
c
Hey Leo, yes its deprecated can you messages array please.
l
Sure, I already have a ticket created to update this property. Can you confirm please if there are impact/issues by using the systemPrompt while we don't migrate?
c
We no longer support this property so all of your requests/calls will eventually fail.
2 Views