Hi there, I am trying to override the assistant's initial prompt when launching it from my application, but it doesn't work, any advice? I am inserting a topic (as a variable) into the prompt.
Here is the code! Thanks everyone for your support!
assistantOverrides: {
systemPrompt: "You are a helpful assistant. The topic for this conversation is " + topic + ". Please discuss this topic with the user, providing guidance, asking relevant questions, and offering constructive feedback related to the topic."
},
config: {
mode: "call",
call: {
config: {
showCallControls: true,
enableVideo: true, // Enable video for full experience
parentElement: "#vapi-container" // Specify container for the widget
}
},
initialMessage: "My name is Amy, and I see you would like to talk about " + topic + "... let's get into it."
}
};