sending system prompt during call doesn't seem to ...
# support
s
I got it to work once, but now it's not working anymore. Do i need to construct the assistant from the back end if I want to start it off with a system prompt? The reason I do not do it on the dashboard is because my system prompt relies on dynamic data from the users. It's part of a flow, where users answer questions and that eventually gets blended into the system prompt to control behavior. https://cdn.discordapp.com/attachments/1271758897178476604/1271758897622810664/image.png?ex=66b88145&is=66b72fc5&hm=0804e00f969638ceba962bdcaed1faaed0ca6890d8cde6f2f92e5f971e733c36&
v
@SlaviSavanovic It sounds like you're implementing a dynamic system prompt that adjusts based on user input, which is a great way to personalize the experience. You don't necessarily need to construct the assistant from the backend, but you do need to ensure that the dynamic data from the users is correctly formatted and injected into the system prompt. If you're encountering issues where it worked once but not anymore, it could be due to a variety of reasons such as formatting errors, data not being passed correctly, or a logic error in the flow that generates the system prompt. To troubleshoot this, you can: 1. Check the data flow to ensure that user inputs are being captured and stored correctly. 2. Verify that the dynamic data is being formatted into the system prompt in the correct manner. 3. Review any recent changes that might have affected how the system prompt is generated or used. 4. Test the system with static data to ensure that the basic functionality is working, then gradually reintroduce dynamic elements to isolate the issue. If you need more specific assistance, please provide additional details or error messages you're encountering, and I'll do my best to help you resolve the issue. If the problem persists, you may need to consult with the support team for more in-depth troubleshooting.
You can continue this conversation by mentioning me in the message.
s
@Vapi Yes, it worked before and literally nothing changed, it seems inconsistent. Sometimes it applies the system prompt when i send it, sometimes it does not. I tried adding a timeout incase the vapi server was still setting stuff up but that didn't seem to work either.
v
@SlaviSavanovic I understand that dealing with inconsistencies can be quite frustrating, especially when the system has worked correctly before. Here are a few steps you can take to try and resolve the issue: 1. **Logs Review**: Check the server logs to see if there are any errors or warnings that occur when the system prompt is not applied. This might give you insights into what is happening. 2. **Configuration Check**: Double-check the configuration settings for the system prompt to ensure they are correct and consistent. 3. **Concurrency Issues**: If there are multiple requests being sent to the VAPI server, ensure that they are not causing race conditions or conflicts. 4. **Network Stability**: Verify that the network connection between your backend and the VAPI server is stable and reliable. 5. **Server Health**: Check the health of the VAPI server to ensure it's not experiencing any downtime or performance issues. 6. **Timeouts and Retries**: Implementing a retry mechanism with exponential backoff might be more effective than a simple timeout, as it can handle transient issues more gracefully. 7. **Version Control**: If you're using version control, review recent commits to ensure that no changes have been made that could affect the system prompt functionality. 8. **Support Team**: If none of these steps resolve the issue, it might be time to reach out to the support team with detailed information about the problem, including any logs or patterns you've noticed. Remember, it's important to make changes one at a time and test thoroughly after each change to isolate the cause of the inconsistency. If you need further assistance, please don't hesitate to reach out.
s
@Vapi you might not be able to see images but let the support team know I sent system prompt before anything was said in hopes that it was a cost adjustment issue. But that didn't seem to work either https://cdn.discordapp.com/attachments/1271758897178476604/1271760076473897013/image.png?ex=66b8825e&is=66b730de&hm=0cec901f76fd0823472fe943840298fa3d87c6733841e91c053d029654cce169&
v
@SlaviSavanovic I understand that you've attempted to send the system prompt before any user input to address a potential cost adjustment issue, but it seems that didn't resolve the problem. While I can't view images or directly contact the support team, I can guide you on how to proceed. Please reach out to the support team with the following information: 1. A detailed description of the issue, including the steps you've taken to troubleshoot so far. 2. Any relevant logs or error messages that you've encountered. 3. Mention that you've tried sending the system prompt before any user input and that it didn't resolve the issue. 4. If possible, include the timestamps of when the issue occurred to help the support team pinpoint the problem. You can contact the support team through the official support channels provided by VAPI. They will be able to assist you further and investigate the inconsistency you're experiencing. If you need help with anything else, feel free to ask.
s
Do i just tag them here ?
@Vapi
v
@SlaviSavanovic I apologize for any confusion, but as a support bot, I don't have the capability to tag or directly notify the support team. You'll need to contact them through the official support channels provided by VAPI, such as their support email, helpdesk, or customer portal. Here's what you can do: 1. Visit the official website or user dashboard of VAPI and look for a 'Support' or 'Contact Us' section. 2. Use the provided contact method (email, support ticket form, live chat, etc.) to reach out to the support team. 3. Provide all the relevant information, including a detailed description of the issue, any steps you've taken, and the fact that you've tried sending the system prompt before any user input. The support team will be able to assist you further with the issue you're facing. If you have any other questions or need further guidance, please let me know!
s
@User pls help
s
instead you can use server-event request-assistant. vapi will send request to your server for the assistant and then your return assistant config. check following docs: [1] https://docs.vapi.ai/server-url/events#retrieving-assistants [2] https://api.vapi.ai/api-json# goto: components > schemas > serverMessageAssistantRequest
2 Views