https://retellai.com/?utm_source=discord&utm_medium=seo logo
how do I remove background conversations so that i...
# ❓・ai-evy-support
s
@AI Evy how do I remove background conversations so that it does not confuse my agent?
a
Thanks for tagging me @snowskidude. I'll look through relevant sources and get back to you shortly.
### Answer To reduce background conversations from confusing your agent, you can use several approaches: Set Denoising Mode Use the more aggressive denoising mode that removes both background noise and background speech [(1) ]() . This mode has a $0.005/min surcharge but can handle loud background speech like TV or construction sites . Adjust Interruption Sensitivity Lower the interruption sensitivity to make your agent more resilient to background speech . You can set this to 0.8 or even lower values like 0.2-0.3 [(1) ]() [(2) ]() . This setting helps reduce false interruptions from background speech and noise [(1) ]() . Configure via API You can update these settings programmatically using the Update Agent API [(3) ]() :
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const agentResponse = await client.agent.retrieve('16b980523634a6dc504898cda492e939') ;
console.log(agentResponse.agent_id) ;
[(4) ]() The key parameters to adjust are: - `denoising_mode`: Set to handle background speech - `interruption_sensitivity`: Lower values make the agent less sensitive to interruptions [(4) ]() [(3) ]() Additional Recommendations For extremely noisy environments, you may need to experiment with even higher interruption sensitivity settings, though this will reduce the agent's ability to be interrupted [(1) ]() . You can also prompt the agent to ask users to speak louder to distinguish their voice from background speech .
​ To learn more, see the sources I considered: [[1] Handle background speech & noise](https://docs.retellai.com/build/handle-background-noise) [[2] Background interruption from user side during call](https://discord.com/channels/1186424376300679209/1367470646581268500) [[3] Update Agent](https://docs.retellai.com/api-references/update-agent) [[4] Get Agent](https://docs.retellai.com/api-references/get-agent) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
s
@User How do I set the more aggressive remove background speech mode to remove both background noise and background speech via the API?