Skip to content

vapi.send with 'add-message' interrupts assistant response #100

@naveengovind

Description

@naveengovind

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions