alisher1860
04/03/2025, 7:55 AMVapi Support Bot
04/03/2025, 7:57 AMjson
{
"results": [
{
"toolCallId": "X",
"result": "Y"
}
]
}
Your server might be returning a standard JSON response, but VAPI might be expecting this specific format.
### 2. Verify Output Parameter Configuration
Make sure your output parameters are correctly configured in the API Request task:
- **Key**: The exact path to the value in the JSON response
- **Target**: The variable name you want to use in subsequent nodes
- **Type**: The correct data type (boolean, number, etc.)
According to the [API Request documentation](https://docs.vapi.ai/workflows/tasks/api-request), these must be precisely defined to extract data from the API's JSON response.
### 3. Check Variable Access Syntax
When referencing variables in subsequent nodes, ensure you're using the correct syntax. You might need to use one of these formats:
- message.variableValues.variable_name
- messages.assistantOverrides.variableValues.variable_name
### 4. Troubleshoot Execution Order and Variable Scope
Several factors can affect variable access:Vapi Support Bot
04/03/2025, 7:57 AMasync parameter to true in your API request configuration
### 5. Check for Special Characters and Formatting Issues
Ensure there are no formatting issues in your JSON response and that special characters are properly escaped. The content-type should be set to application/json.
### 6. Test with a Simplified Response
Try simplifying your API response to just return one variable (like is_high_demand) to see if that works. If it does, gradually add back the other variables to identify which one might be causing issues.
Would you like me to elaborate on any of these potential solutions? Or do you have any other questions about accessing API response values in VAPI workflows?
Sources:
- [API Request documentation](https://docs.vapi.ai/workflows/tasks/api-request)
- [Discord thread about API response format](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1329542939160084624)
- [Discord thread about accessing variable values](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1329772290497318973)
- [Discord thread about troubleshooting variable access](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1315677399026765855)
- [Discord thread about asynchronous processing](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1333880245681393756)alisher1860
04/03/2025, 8:03 AMalisher1860
04/03/2025, 8:04 AMSarthak
04/06/2025, 9:15 AMalisher1860
04/07/2025, 2:53 AMSarthak
04/07/2025, 3:57 PM