rajen
02/13/2025, 7:18 AMChiranjeet Mishra
02/13/2025, 1:59 PMuserId to the webhook, you can use the assistantOverrides parameter when starting the Vapi instance. Include the userId in the variableValues object. Here's a quick example:
javascript
vapiInstance = vapiSDK.run({
apiKey: apiKey,
assistant: assistant,
config: buttonConfig,
assistantOverrides: {
variableValues: {
userId: "yourUserIdHere"
}
}
});
This way, the userId will be available when Vapi calls the webhook. Let me know if you need more help.