Overlapping responses within a single conversation
# support
n
It looks like my voice assistant answers the same question in multiple streams and combines them in one, resulting in repetitive and overlapping responses within a single conversation. Here's an example. It doesn't happen each time, but most likely after I interrupt it. Model: gpt4o The one in the screenshot happened today. Yesterday had a similar experience with tool calls: an agent tried to call the same tool from different streams. I could clearly see it from the request headers: one had user-agent : axios/1.6.8 another one user agent : Slackbot-LinkExpanding 1.0 https://cdn.discordapp.com/attachments/1247482159695003658/1247482159833284719/image.png?ex=66602fcc&is=665ede4c&hm=9984b8077695d02b5b3de3555da75fa7b2ad7ba587662a2bc4522e574f456c3a&
v
Hi @Nadia, I'm an AI assistant for Vapi. I'll analyze available sources and get back to you shortly.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Orchestration Models]() * [Create Assistant]() * [Update Assistant]() * [List Assistants]() -----------------------------
### Answer It sounds like you're experiencing issues with overlapping responses and multiple activations of tool calls within a single conversation session. This could be related to the interruption handling and the management of concurrent API calls in your voice assistant's configuration. To address this, consider reviewing the settings related to interruptions and concurrency in your assistant's configuration. Vapi offers detailed control over managing interruptions, such as through the
numWordsToInterruptAssistant
setting, which specifies how many words to wait for before interrupting the assistant. Additionally, ensure that the response delay (
responseDelaySeconds
) and request delay (
llmRequestDelaySeconds
) settings are configured to prevent the assistant from responding too quickly or frequently, which might be causing overlapping responses [(1)]() . Another aspect to check is the integration with third-party services, such as Slack or other tools being called by the assistant. Ensure that these integrations are managed uniquely per session to prevent multiple instances from being triggered by concurrent requests. If these adjustments do not resolve the issue, it may be helpful to review the specific logs and request headers when the issue occurs to identify any patterns or misconfigurations leading to these overlaps. For further details on managing interruptions and concurrency, you might find the sections related to endpointing and interruption handling in the Vapi documentation helpful.
n
just tried to modify the settings, but it didn't help much. I'm concerned about the duplicated tool call from the Slackbot-LinkExpanding 1.0 agent which happened again
v
Got it. Tagging @User for additional help.
s
@Nadia can you send me the latest call_id?
n
0a03b926-6716-4b0e-a726-aba692ebc33a at the end of the call it messed up, and I received 2 GET requests on my tool's webhook at that time
s
A couple of things, first of all, don't use any tools now because it is a work in progress (WIP). Apart from that, can you test without the keyboard (KB) and let me know the result? I have noticed that in most of the call_id, the hallucination issue only occurs when the keyboard is present.
n
just tried without keyboard, no luck. Before any function calls and no interruptions it streamed duplicate responses. Can you please take a look? call id: c60a7a4c-36ad-453d-bbdb-56b845ef579f
s
Looking into it.