Evan Mendenhall - Founder
04/27/2025, 2:13 AMVapi Support Bot
04/27/2025, 2:15 AMtypescript
const assistant = {
monitorPlan: {
listenEnabled: true,
controlEnabled: true
}
};
Then send messages to the control URL that you receive when initiating a call:
typescript
await fetch(call.monitor.controlUrl, {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
type: 'add-message',
message: {
role: 'tool',
content: 'Your message here'
}
})
});
Sources:
- [Discord post about control URL](https://discord.com/channels/1211482211119796234/1340737584309211136)
- [Discord post about live call control](https://discord.com/channels/1211482211119796234/1339634926248525935)Kings_bigđź’«
04/27/2025, 10:35 AMEvan Mendenhall - Founder
04/30/2025, 6:57 PMKings_bigđź’«
04/30/2025, 7:39 PM