Detecting Other Bots & Automatically Leaving

Configure your bots to automatically leave when only bots are left on a meeting.

You may run into scenarios where all participants leave a call but there are still other bots or notetakers present.

Recall.ai has several automatic_leave settings you can configure to handle these situations, so your bots leave automatically when there are only other bots left on the call.

At a high level, these settings control when your bots leave when:

  • All participants remaining have names that look like a bot
  • All participant remaining one ever speaks or shares screen
  • The call has been silent for too long

The leaving behaviors for each of these can be configured in the automatic_leave object in your Create Bot requests, or any other bot creation endpoints such as the Schedule Bot For Calendar Event endpoint.


For the default settings, see Default timeout values.

Bot detection mechanisms

Using participant name matches

This is the most accurate way to detect bots, but is also the most explicit and requires the most configuration.

This bot detection mechanism works by case-insensitive substring matching on a set of known notetaker names you provide, so it's most effective when you provide a comprehensive list of known notetaker names.

Example Configuration:

"automatic_leave": {
  "bot_detection": {
    "using_participant_names": {
      "matches": ["notetaker", "recorder", "assistant", "copilot", "grain", "fellow", "tl;dv", "read.ai", "fathom", "agent"],
      "activate_after": 300, // 5 minutes
      "timeout": 5
    }
  }
}

Behavior:

  • For the first 5 minutes of the call, this automatic leave mechanism is not active.
  • After 5 minutes, if every remaining participant matches one of the strings in the matches array, start a 5s timer.
  • If the condition above remains true, the bot leaves after 5 seconds.
  • If the condition has not been met after the 5 minute activate_after period, the bot will continuously check until this condition is met, and leave after 5 seconds of this being true.

If you find new scenarios where bots take a long time to time out, we recommend adding to your list of matches to optimize this behavior and handle as many notetaker names as possible.

Using participant events

📘

Participant events and Google Meet

Google Meet can emit participant events for bots, which makes this detection method less reliable. Combine it with participant-name matching for better accuracy across meeting platforms.

This bot detection mechanism works by analyzing participant behavior, and assumes a participant is a bot if the participant both:

  • Does not speak (does not produce an Active Speaker Event) at any point in the call.
  • Does not share their screen at any point in the call.

Example configuration:

"automatic_leave": {
  "bot_detection": {
    "using_participant_events": {
      "activate_after": 300, // 5 minutes
      "timeout": 10
    }
  }
}

Behavior:

  • For the first 5 minutes, this automatic leave mechanism is not active.
  • After 5 minutes, this mechanism kicks in and begins checking if any participants have not had an active speaker event or shared their screen.
    • If any participants have had either an active speaker event or shared their screen: There are still "real" participants present, and the bot will not automatically leave.
    • If all remaining participants have not spoken during the call or shared their screen: There are only bots present and thus the bot will leave after 10 seconds.

Using silence detection

To use continuous silence as a fallback, see Silence Detection Timeout.

How to fine-tune your activate_after and timeout values

A simple way to think about this:

activate_after → How long should the bot wait before a given automatic leave mechanism kicks in?

For aggressive bot detection and minimizing the amount of time a bot waits, pick a low value like 120-300 seconds. Keep in mind that this may increase the number of false positives if your users ever join calls late and there are only bots present.

To be extra safe and minimize the chance of bots leaving when they shouldn't, choose a higher value like 600-1200 seconds.

timeout → Once the automatic leave condition is met, how long should the bot wait before leaving?

For a faster exit when only bots remain, choose a timeout of 10–30 seconds for participant-name or participant-event detection.

To reduce false positives, choose a longer timeout, such as 3–5 minutes.

📘

We recommend starting from the example configurations above, and adjusting based on how aggressive you want your bots to be about leaving and how safe you'd like to be about preventing false positives.

Behavior when recording is paused or stopped

Bot detection timers behave differently depending on whether recording is paused or stopped.

Pausing recording

When recording is paused, most automatic_leave timers are paused (frozen in place). When recording is resumed, each paused timer resumes from where it left off. For example, if a bot_detection.using_participant_events timer had 6 seconds remaining out of a 10 second timeout when recording was paused, it will resume with 6 seconds remaining when recording is resumed.

📘

The everyone_left_timeout and in_call_not_recording_timeout timers are not paused when recording is paused.

Stopping recording

When recording stops, the participant-name and participant-event timers continue running. If only bots remain on the call, these timers can still cause the bot to leave. See Stopping recording for the other automatic leave timers.


Did this page help you?