Matheus Furlanes
04/11/2025, 1:10 AMVapi Support Bot
04/11/2025, 1:12 AM"transcript"
in the serverMessages
configuration to receive real-time transcriptions via webhooks. For example:
json
{
"serverMessages": [
"transcript",
"end-of-call-report"
]
}
2. **Use assistantOverrides**: When starting a Vapi instance, you can use the assistantOverrides
parameter with the variableValues
object to send data to your webhook:
javascript
vapiInstance = vapiSDK.run({
apiKey: apiKey,
assistant: assistant,
config: buttonConfig,
assistantOverrides: {
variableValues: {
userId: "yourUserIdHere"
}
}
});
## 4. Implement Real-time Handling
During the call, you can use the .send()
method in the Vapi Web SDK to send intermediate messages:Vapi Support Bot
04/11/2025, 1:12 AMjavascript
vapi.send({
type: "add-message",
message: {
role: "system",
content: "Your real-time data here",
},
});
## 5. Troubleshooting Tips
If your webhook isn't receiving data in real-time, check:
- Connection issues between Vapi and your webhook
- Incorrect webhook URL configuration
- Data format mismatches
- Missing headers or authentication tokens
- Function call parameter errors
Is there anything specific about your "Agendamento" function implementation that you'd like me to help with?
Sources:
- [Vapi documentation](https://docs.vapi.ai/tools/default-tools)
- [Discord thread about real-time transcripts](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1341440757189578782)
- [Discord thread about assistantOverrides](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1339495894801711186)
- [Discord thread about webhook configuration](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336345690393149452)
- [Vapi Web SDK documentation](https://docs.vapi.ai/sdk/web)Vapi
04/11/2025, 7:52 PM