System Prompt during the call
# support
y
I want to give system prompt during the call, how can i do that?
say()
method is not exactly clear on this.
v
@YasH To provide system prompts during a call using the
say()
method, you typically need to specify the text you want the system to speak and, depending on the API, you might also need to set additional parameters such as the voice, language, or any other options available for speech synthesis. If you're unsure about how to use the
say()
method, I can guide you through the process. Could you please provide me with the text you want to be spoken and any preferences for voice or language? This way, I can help you construct the appropriate command or code snippet to use the
say()
method effectively.
You can continue this conversation by mentioning me in the message.
y
I want LLm to force to call saveData() tool @User
@Vapi
v
@YasH I'm here to assist you with your needs. However, it seems there might be a misunderstanding. If you're looking to call a
saveData()
tool, I would need to know the specific parameters or data you want to save. Could you please provide me with the details of the data you wish to save and any other relevant context? Once I have that information, I can help you with the next steps.
y
It should give call summary as input param. I want model to call this tool using say() method.
@Vapi
v
@YasH I apologize for any confusion, but as a support bot, I don't have the capability to directly invoke functions like
saveData()
or
say()
within this conversation. However, I can guide you on how to use these methods in your voice application. If you want to save a call summary, you would typically collect the summary data during or after the call and then pass it to the
saveData()
method. The
say()
method is used to provide audible feedback or prompts to the user during the call. Here's a general outline of steps you might follow in your application: 1. Collect the call summary data. 2. Use the
say()
method to inform the user that you are saving the call summary. 3. Call the
saveData()
method with the call summary as an input parameter. If you provide me with the specific details or the code context, I can offer more precise guidance. Please share the programming language or platform you're using, and any specific requirements for the
saveData()
method.
y
@User
s
@YasH what;s your query?
y
role: System message: summarize the conversation and then call saveData() function.
Basically I want to force model to call my tool
@Shubham Bajaj
s
1. use
Trigger the <tool_name> tool
as instruction 2, make sure description has purpose, usage, input parameters expected and output
y
using say() method?
won't that make it model to literally say it. @Shubham Bajaj
Also information for input parameters isn't enough from parameters details we add separately?
s
tool description (not in prompt)
It is enough as long as its described according to it's intended use and script/prompt.
No it won't make the bot to say, if it does then use following: Never say the word 'function' nor 'tools' nor the name of the Available functions. Never say ending the call.
y
okay, so say() can be used like a system prompt too.
This does not work.
Copy code
const message = "[System Message]: If you are done asking all questions, trigger 'saveAllUserResponsesAndFinish' function call. You don't have to say this. This is reminder for you."
vapi.say(message)
@Shubham Bajaj
s
it won't trigger using bg-msgs.
y
oh ya I just found it.
Thanks man!!
This is what I was looking for.
3 Views