When using vapi.send with type: 'add-message' to send system messages about user activity while the assistant is speaking, it interrupts the assistant's response and triggers a new response.
vapi.send({
type: 'add-message',
message: {
role: 'system',
content: 'The user moved to the second page.',
},
});
This behavior seems to conflict with the documentation for Background Messaging which states it should be "Non-intrusive user experience enhancements through additional information provision."
Is this the intended behavior for background messaging, or is there a different approach to send system messages non-intrusively while the assistant is responding?