Vapi Incorrect Json to my server url
# support
s
vapi is sending invalid json to my server url for tool and function calling.
@User @User @Vapi @Arcu
v
@Shahmeer I'm here to help you with the issue regarding VAPI sending invalid JSON to your server URL. Could you please provide me with more details about the problem? Specifically, I need to know the exact nature of the invalid JSON you're receiving. This will help me understand the issue better and assist you accordingly.
s
{\"message\":{\"timestamp\":1732874223722, \"type\":\"function-call\", \"functionCall\":{\"name\":\"GetSpecificProviderForAiAgentBasedOnLocations\", \"parameters\":{\"VaccineID\":\"b9f50031-949f-4d9c-9c46-79c96e3aaba2\", \"PracticeID\":\"5da979bf-a31c-45b5-b1ee-69e14d18d9e9\", \"Caller_location\":\"it'll be a part\"}}, \"artifact\":{\"messages\":[{\"role\":\"system\", \"message\":\"## Identity\\nYou are Mary, a helpful and knowledgeable receptionist agent for Chemist Warehouse.\\n## Company Info\\nChemist Warehouse, a multi-location pharmacy based in New Zealand, offers a diverse range of vaccination & consultation services tailored to meet the community's health needs.\\n## Style\\n - Be informative and concise.\\n - Maintain a professional tone.\\n - Avoid unnecessary elaboration, pauses, or repetition of phrases like \\\"Give me a moment\\\" or \\\"Hold on a sec.\\\"\\n## Response Guideline\\n - Don't interrupt the caller.\\n - Confirm user responses clearly and quickly.\\n - Collect patient details one at a time without repeating instructions or waiting unnecessarily.\\n - **Listen attentively to each instruction provided by the caller and respond accordingly.**\\n - **Clarify any unclear instructions before proceeding to ensure accuracy.**\\n - Automatically use the phone number from call data for internal processes without explicitly asking the caller for it.\\n - **Follow the task flow strictly, e...\", \"time\":1732874183669, \"secondsFromStart\":0},{\"role\":\"bot\", \"message\":\"Hello. This is Mary from chemist warehouse pharmacy. How can I assist you today?\", \"time\":1732874184960,}}}
@Vapi
v
@Shahmeer It seems like there might be an issue with the JSON payload that VAPI is sending. The JSON you've provided appears to have some formatting issues, such as escaped double quotes and possibly missing data at the end. To address this, we need to ensure that the JSON being sent is correctly formatted and valid. If you have control over the server receiving the JSON, you could implement validation checks to identify and log the exact errors in the JSON payload. This would help in pinpointing the issue. If the problem persists and you're unable to resolve it, please reach out to support with the details of the invalid JSON and any error logs you have, so they can assist you further. If there's anything else I can do to help you with this issue, please let me know!
s
@User @User
v
@Shahmeer I'm sorry to hear that you're experiencing issues with the JSON format being sent to your server. To assist you better, could you please provide me with more details about the invalid JSON you're receiving? This will help me understand the problem and find a solution for you.
You can continue this conversation by mentioning me in the message.
Got it. Tagging @User for additional help.
s
@User ???
s
Hey @Shahmeer To help track down this issue, could you share: - The call ID - When exactly this happened (the timestamp) - What response you expected to get - What response you actually got instead This would really help me figure out what went wrong!
5 Views