VAPI struggling to send correct parameters while c...
# support
h
Hey, i'm using a custom function to interact with an API. My issue is that vapi struggles to send as parameters the user question. example : i'm asking "Hey, do you know how could i update my fruits and vegetables database ? and the model is only sending "vegetables database" as question. thanks in advance for your help 🙏
v
Hi @hugopdvn, I'm an AI assistant for Vapi. I'll analyze available sources and get back to you shortly.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Prompting Guide]() * [Function Calling]() * [Introduction - Vapi]() * [Server Events]() -----------------------------
### Answer It seems like you're encountering an issue where the parameters sent to your custom function are not capturing the full user query. This could be related to how the assistant interprets the user's intent and extracts parameters based on the conversation flow or specific triggers. To address this issue, ensure that your custom function's configuration is set to accurately capture and send the entire user input as parameters. This might involve reviewing the assistant's instruction or the system prompt configured for your assistant to ensure it's designed to capture the complete user input. Also, verify the custom function's parameters to ensure they're correctly defined to capture the required input. If your setup involves complex logic or conditional flows, consider simplifying the prompts or breaking down the task into more straightforward steps that the assistant can more easily manage. Additionally, revisiting the documentation on [Custom Functions]() and how to [define and use them]() might provide further insights or configurations you might have missed [(1)]() . Unfortunately, specific details or examples on addressing partial parameter capture directly from user input in custom functions beyond these suggestions are not available in the provided information sources. If the issue persists, it could be beneficial to review the conversation design or consider reaching out for more tailored support through the Vapi community or forums, where you might find others who have encountered and resolved similar challenges.
s
Custom Function struggles a lot to send the correct parameter. So, the best option for you to be to use Knowledge base and perform similarity search and based on that update the vegetables database.
2 Views