ASh - Stoneink
11/23/2024, 10:23 PMASh - Stoneink
11/23/2024, 10:25 PMVapi
11/23/2024, 10:25 PMassistantOverrides
and variableValues
. However, if the dynamic variables are not being passed on as expected, here are a few things you might want to check:
1. **API Endpoint and Method**: Ensure you are sending the JSON payload to the correct API endpoint and using the correct HTTP method (usually POST for creating resources).
2. **Headers**: Check if you need to set specific headers, such as Content-Type: application/json
or any authentication headers required by the API.
3. **Variable Names**: Double-check that the variable names used in your API prompt exactly match the variable names expected by the voice application. They must be case-sensitive and spelled correctly.
4. **API Documentation**: Refer to the API documentation to ensure that the JSON structure aligns with what the API expects. There might be additional nesting or different field names required.
5. **API Version**: Make sure you are using the correct version of the API. Sometimes, APIs get updated, and the way to pass variables might change.
6. **Error Messages**: Look at the response from the API call for any error messages or codes that could give you a hint about what's going wrong.
7. **Testing Tools**: Use API testing tools like Postman to send your requests. These tools can help you debug by showing the raw request and response data.
8. **Logs**: Check the logs on the server-side (if accessible) to see if there's more detailed information about why the variables aren't being passed through.
If after checking these points you still face issues, it might be helpful to reach out to the API support team for further assistance. They can provide more specific guidance based on their system's requirements and behaviors.Vapi
11/23/2024, 10:26 PMVapi
11/23/2024, 10:26 PMVapi
11/23/2024, 10:26 PMShubham Bajaj
11/26/2024, 1:40 PMASh - Stoneink
12/01/2024, 1:00 AMShubham Bajaj
12/03/2024, 10:00 AMjson
curl -X POST https://api.vapi.ai/call \
-H "Authorization: Bearer " \
-H "Content-Type: application/json" \
-d '{
"squad": {
"members": [],
"membersOverrides": {},
"name": ""
},
"customer": {},
"phoneNumberId": ""
}'
**NOTE: **pass membersOverrides instead of assistantOverrides when same variables overridesShubham Bajaj
12/03/2024, 10:01 AM