Ramy
04/26/2025, 11:13 AMVapi Support Bot
04/26/2025, 11:14 AMjavascript
// Example of testing dynamic variables with the chat endpoint
$.ajax({
url: 'https://api.vapi.ai/chat', // Use chat endpoint for testing
type: 'POST',
contentType: 'application/json',
data: JSON.stringify({
assistantId: "your-assistant-id",
assistantOverrides: {
variableValues: {
name: "TestUser" // Your dynamic variable
}
}
})
});
Additional information about the chat endpoint can be found at: https://staging-api.vapi.ai/api-extended#/
Sources:
- [Discord](https://discord.com/channels/1211482211119796234/1333853589965377587)
- [Dynamic Variables](https://docs.vapi.ai/assistants/dynamic-variables)Kings_big💫
04/26/2025, 2:17 PMKings_big💫
04/26/2025, 2:18 PM