Adding a background message is causing issues
# support
a
I'm adding a background message, but when i do that (even though im not setting the enabled thing to true), the voice bot just gets cut off while it's talking. Am i doing somethign wrong? How do i resolve this?
v
Try isolating your background message logic to ensure it only sends system messages and does not trigger any other side effects. For example:
Copy code
js
vapi.send({
  type: "add-message",
  message: { role: "system", content: "Background event logged." }
});
If the issue persists, it may be a platform bug—consider reaching out to [Vapi support](https://docs.vapi.ai/support) with your code snippet and call logs for further assistance. According to the documentation, background messages should not interrupt the voice bot's speech or flow. Sources: - [Background messages documentation](https://docs.vapi.ai/assistants/background-messages) - [Vapi Web SDK documentation](https://docs.vapi.ai/sdk/web)
Try isolating your background message logic to ensure it only sends system messages and does not trigger any other side effects. For example:
Copy code
js
vapi.send({
  type: "add-message",
  message: { role: "system", content: "Background event logged." }
});
If the issue persists, it may be a platform bug—consider reaching out to [Vapi support](https://docs.vapi.ai/support) with your code snippet and call logs for further assistance. According to the documentation, background messages should not interrupt the voice bot's speech or flow. Sources: - [Background messages documentation](https://docs.vapi.ai/assistants/background-messages) - [Vapi Web SDK documentation](https://docs.vapi.ai/sdk/web)
a
it isnt
v
Since your background message logic is not triggering any other side effects and the issue persists, the next best step is to collect a minimal code example and your call logs, then contact Vapi support for direct assistance. You can reach them at [Vapi Support](https://docs.vapi.ai/support). According to the documentation, background messages should not interrupt the voice bot's speech, so this may be a platform issue that requires their attention. Sources: - [Background messages documentation](https://docs.vapi.ai/assistants/background-messages) - [Vapi Web SDK documentation](https://docs.vapi.ai/sdk/web) - [Vapi Support](https://docs.vapi.ai/support)
Since your background message logic is not triggering any other side effects and the issue persists, the next best step is to collect a minimal code example and your call logs, then contact Vapi support for direct assistance. You can reach them at [Vapi Support](https://docs.vapi.ai/support). According to the documentation, background messages should not interrupt the voice bot's speech, so this may be a platform issue that requires their attention. Sources: - [Background messages documentation](https://docs.vapi.ai/assistants/background-messages) - [Vapi Web SDK documentation](https://docs.vapi.ai/sdk/web) - [Vapi Support](https://docs.vapi.ai/support)
a
hi @Kings_big💫 after you're done helping out the issue from before, do you have a moment to answer this? thank you
v
Thanks for your patience! Since your background message logic is already isolated and the issue persists, could you please share the exact code snippet you use to add the background message? This will help identify if there’s anything unusual in the implementation or if it’s likely a platform issue. If you’ve already tried the recommended approach and still see the bot’s speech being cut off, collecting a minimal code example and your call logs will be helpful for Vapi support to investigate further ([Vapi Support](https://docs.vapi.ai/support)). Sources: - [Background messages documentation](https://docs.vapi.ai/assistants/background-messages) - [Vapi Web SDK documentation](https://docs.vapi.ai/sdk/web) - [Vapi Support](https://docs.vapi.ai/support)
Thanks for your patience! Since your background message logic is already isolated and the issue persists, could you please share the exact code snippet you use to add the background message? This will help identify if there’s anything unusual in the implementation or if it’s likely a platform issue. If you’ve already tried the recommended approach and still see the bot’s speech being cut off, collecting a minimal code example and your call logs will be helpful for Vapi support to investigate further ([Vapi Support](https://docs.vapi.ai/support)). Sources: - [Background messages documentation](https://docs.vapi.ai/assistants/background-messages) - [Vapi Web SDK documentation](https://docs.vapi.ai/sdk/web) - [Vapi Support](https://docs.vapi.ai/support)
k
Try explicitly setting "backgroundSound": "off", adjust the stopSpeakingPlan settings, and ensure your audio file is properly formatted..