how can i refer to the system prompt in the call e...
# support
i
how can i refer to the system prompt in the call evaluation prompt?
v
message has been deleted
@Irfan To refer to the system prompt in the call evaluation prompt, you can use the
successEvaluationPrompt
property. This property allows you to set a custom success evaluation prompt that will be used to determine if the call was successful based on the objectives inferred from the system prompt. If you need assistance with setting or using this property, please let me know, and I'd be happy to help!
You can continue this conversation by mentioning me in the message.
i
@Vapi i meant how do i use the system prompt in the success evalation prompt not the other way around
v
@Irfan I apologize for the confusion. To use the system prompt within the success evaluation prompt, you would typically reference the content or objectives of the system prompt directly in your success evaluation criteria. Since the system prompt sets the context for the call, you would ensure that the success evaluation prompt checks if the call's outcome aligns with the goals or questions raised in the system prompt. For example, if the system prompt is about resolving a technical issue, the success evaluation prompt might ask if the user's technical issue was resolved satisfactorily. If the system prompt involves providing information, the success evaluation prompt might confirm whether the information provided was accurate and helpful. If you need to dynamically include the actual text of the system prompt in the success evaluation, you would need a way to reference it programmatically, which typically involves using variables or placeholders that are replaced with the system prompt's content when the success evaluation is performed. If you have a specific use case or example in mind, please provide more details, and I'll assist you accordingly.
i
@Vapi how do i do this on vapi? 'If you need to dynamically include the actual text of the system prompt in the success evaluation, you would need a way to reference it programmatically, which typically involves using variables or placeholders that are replaced with the system prompt's content when the success evaluation is performed.'
v
@Irfan In VAPI, if you need to include the actual text of the system prompt in the success evaluation dynamically, you would typically use a predefined placeholder or variable within the success evaluation prompt configuration. However, the specific method to do this would depend on the features and capabilities provided by VAPI. If VAPI supports template variables or placeholders, you could set up your success evaluation prompt with a placeholder that gets replaced with the system prompt text when the evaluation is performed. For example, you might use a placeholder like
{system_prompt}
in your success evaluation configuration, and VAPI would replace it with the actual system prompt text during the evaluation process. Since I don't have the exact details of how VAPI handles this scenario, I would recommend checking the VAPI documentation or contacting support for more information on how to implement this feature. If VAPI provides a specific syntax or method for including the system prompt text in the success evaluation prompt, they will be able to guide you through the process. If you have access to the VAPI documentation or support resources, that would be the best place to find detailed instructions on how to achieve this. If you need further assistance, please ask support for more info on this.
i
@Shubham Bajaj
s
Hey @Irfan check this https://dump.sahilsuman.me/ocrjllmj.md documentation, and do let me know if you get blocked.
Because of no response closing this ticket.
3 Views