Manuel
09/22/2025, 10:35 AMVapi Support Bot
09/22/2025, 10:36 AMsession_uuid variable is extracted and available before the API request node runs. In your workflow, add a variable extraction step or validation prompt prior to the API request, and confirm in your Call Logs that session_uuid is present in the variables list at that point.
Example node prompt for extraction:
yaml
Extract the session UUID from the server response and store it as `session_uuid` before the API request node.
Then, use the URL:
https://your-endpoint/answer/{{session_uuid}}
Check the Call Logs to verify the variable is set before the API call—if not, adjust the workflow order accordingly.
[See debugging steps](https://docs.vapi.ai/debugging#check-logs)
Source:
- [Debugging voice agents](https://docs.vapi.ai/debugging)Manuel
09/22/2025, 10:38 AMChiranjeet Mishra
09/24/2025, 11:12 AM{{name}}. Here's a quick guide on how to include dynamic variables in API requests:
1. Prepare Your JSON Payload:
- Include these key-value pairs:
json
{
"assistantId": "your-assistant-id",
"assistantOverrides": {
"variableValues": {
"name": "John"
}
},
"customer": {
"number": "+1xxxxxxxxxx"
},
"phoneNumberId": "your-phone-id"
}
- Replace "your-assistant-id", "+1xxxxxxxxxx", and "your-phone-id" with your actual assistant ID, customer's phone number, and registered phone number ID.
2. Send the Request:
- Use the JSON payload to make a call to the /call/phone endpoint through your preferred method, like an HTTP POST request. Ensure that you set the necessary headers for authorization.
You can find detailed instructions in the [Vapi Documentation on using dynamic variables](https://docs.vapi.ai/assistants/dynamic-variables).
Let me know if you need further clarification or assistance with specific issues in your setup.