API v2

Sending a bot

Learn how to send bots to meetings using the Meeting BaaS v2 API

You can send a bot to a meeting in two ways:

  1. Immediate: The bot joins the meeting right away
  2. Scheduled: The bot joins at a specific time in the future

Immediate Bot

Send a POST request to https://api.meetingbaas.com/v2/bots:

curl -X POST "https://api.meetingbaas.com/v2/bots" \
     -H "Content-Type: application/json" \
     -H "x-meeting-baas-api-key: YOUR-API-KEY" \
     -d '{
           "meeting_url": "https://meet.google.com/abc-defg-hij",
           "bot_name": "AI Notetaker",
           "recording_mode": "speaker_view",
           "transcription_enabled": true,
           "transcription_config": {
             "provider": "gladia"
           }
         }'
import requests

url = "https://api.meetingbaas.com/v2/bots"
headers = {
    "Content-Type": "application/json",
    "x-meeting-baas-api-key": "YOUR-API-KEY",
}
data = {
    "meeting_url": "https://meet.google.com/abc-defg-hij",
    "bot_name": "AI Notetaker",
    "recording_mode": "speaker_view",
    "transcription_enabled": true,
    "transcription_config": {
        "provider": "gladia"
    }
}
response = requests.post(url, json=data, headers=headers)
print(response.json())
fetch("https://api.meetingbaas.com/v2/bots", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "x-meeting-baas-api-key": "YOUR-API-KEY",
  },
  body: JSON.stringify({
    meeting_url: "https://meet.google.com/abc-defg-hij",
    bot_name: "AI Notetaker",
    recording_mode: "speaker_view",
    transcription_enabled: true,
    transcription_config: {
      provider: "gladia"
    }
  }),
})
  .then((response) => response.json())
  .then((data) => console.log(data.data.bot_id))
  .catch((error) => console.error("Error:", error));

Scheduled Bot

To schedule a bot to join at a specific time, use POST /v2/bots/scheduled:

curl -X POST "https://api.meetingbaas.com/v2/bots/scheduled" \
     -H "Content-Type: application/json" \
     -H "x-meeting-baas-api-key: YOUR-API-KEY" \
     -d '{
           "meeting_url": "https://meet.google.com/abc-defg-hij",
           "bot_name": "AI Notetaker",
           "recording_mode": "speaker_view",
           "join_at": "2025-01-20T14:00:00Z"
         }'
import requests
from datetime import datetime

url = "https://api.meetingbaas.com/v2/bots/scheduled"
headers = {
    "Content-Type": "application/json",
    "x-meeting-baas-api-key": "YOUR-API-KEY",
}
data = {
    "meeting_url": "https://meet.google.com/abc-defg-hij",
    "bot_name": "AI Notetaker",
    "recording_mode": "speaker_view",
    "join_at": "2025-01-20T14:00:00Z"  # ISO 8601 format
}
response = requests.post(url, json=data, headers=headers)
print(response.json())
fetch("https://api.meetingbaas.com/v2/bots/scheduled", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "x-meeting-baas-api-key": "YOUR-API-KEY",
  },
  body: JSON.stringify({
    meeting_url: "https://meet.google.com/abc-defg-hij",
    bot_name: "AI Notetaker",
    recording_mode: "speaker_view",
    join_at: "2025-01-20T14:00:00Z"  // ISO 8601 format
  }),
})
  .then((response) => response.json())
  .then((data) => console.log(data.data.bot_id))
  .catch((error) => console.error("Error:", error));

Request Parameters

Required Parameters

  • meeting_url: The meeting URL (Google Meet, Microsoft Teams, or Zoom)
  • bot_name: The display name of the bot

Recording Options

  • recording_mode: One of:
    • "speaker_view" (default): Shows only the active speaker
    • "gallery_view": Shows all participants
    • "audio_only": Audio recording only (MP3)

Bot Appearance

  • bot_image: Optional. HTTPS URL to the bot's avatar image (JPEG, PNG or WebP), or an array of up to 5 URLs to show several images
  • bot_image_config: Optional. Controls how several images are shown. Only relevant when bot_image is an array:
    • loop_mode: "auto" (default) cycles through the images. "bot_status" shows the first image when the bot joins, the second when recording starts and the third while recording is paused. Only the first three images are used in this mode, and without a third image the bot keeps the recording image during a pause
    • image_duration: Seconds each image is shown in "auto" mode (default: 30, min: 10, max: 120)

Transcription

  • transcription_enabled: Set to true to enable transcription
  • transcription_config: Required if transcription_enabled is true:
    • provider: "gladia" (default), "deepgram", "assemblyai", "speechmatics", or "soniox" (plus "elevenlabs" for real-time streaming)
    • api_key: Optional. Your transcription provider API key (for BYOK transcription)
    • custom_params: Optional. Custom parameters for the transcription provider

Callbacks

  • callback_enabled: Set to true to enable callbacks for this bot
  • callback_config: Required if callback_enabled is true:
    • url: The URL to receive callback notifications
    • method: "POST" (default) or "PUT"
    • secret: Optional. Secret key included in x-mb-secret header for verification

Timeouts

  • timeout_config: Optional object:
    • waiting_room_timeout: Seconds to wait in waiting room (default: 600, min: 120, max: 1800)
    • no_one_joined_timeout: Seconds to wait if no one joins (default: 600, min: 120, max: 1800)
    • silence_timeout: Once a participant has been identified, no_one_joined_timeout stops and silence_timeout kicks in. When there is continued silence for the seconds provided, the bot leaves the meeting (default: 600, min: 300, max: 3600)
    • everyone_left_timeout: Seconds the bot stays once every other participant has left, then it leaves with ALL_PARTICIPANTS_LEFT (default: 30, min: 10, max: 1800). Participants listed in ignored_participant_names are not counted. The bot starts checking for an empty meeting 5 minutes into the recording.
    • grace_period: Seconds at the start of the meeting during which no timeout (waiting room, no participants, silence) can trigger (default: 0, max: 600)
    • max_recording_duration: Hard cap on the recording length in seconds. The bot ends the recording after this time whatever is happening in the meeting (min: 7200, max: 43200, which is 2 to 12 hours). When omitted, recordings stop after 4 hours
    • bot_detection: Leave sooner when every other participant is a bot. See Leaving when only bots remain

Zoom bots that join with Zoom credentials (zoom_config) use waiting_room_timeout, no_one_joined_timeout (only when nobody else ever joins) and everyone_left_timeout, but not silence_timeout. Zoom bots that join without credentials cannot see who is in the meeting, so they ignore everyone_left_timeout and leave an empty meeting through silence_timeout.

Leaving when only bots remain

When the humans leave a meeting but other notetakers stay, a bot normally waits for silence_timeout. Set timeout_config.bot_detection to make it leave sooner:

{
  "timeout_config": {
    "bot_detection": {
      "activate_after": 120,
      "timeout": 30,
      "detect_same_account_bots": true,
      "participant_names": {
        "matches": ["fireflies", "otter", "note taker"]
      }
    }
  }
}
  • activate_after: Seconds after recording starts before the bot may leave for this reason (default: 300, min: 60, max: 3600). Participant lists can be wrong in the first minutes of a call
  • timeout: Seconds that only bots must remain before the bot leaves (default: 30, min: 10, max: 1800). A human joining resets it
  • detect_same_account_bots: Treat your team's other bots in the same meeting as bots (default: false)
  • participant_names.matches: Up to 50 names or keywords that mark a participant as a bot, for example other notetakers. Matching is case-insensitive and on whole words: gong matches Gong Recorder but not Gongora Smith, and notetaker does not match Note Taker

With the example above, if the last human leaves 10 minutes into the call, the bot leaves about 30 seconds later.

Good to know:

  • A human must have been in the call first. Until then no_one_joined_timeout applies, because other notetakers often join before people do.
  • A participant counts as a bot when their name matches participant_names, is listed in ignored_participant_names, or, with detect_same_account_bots, belongs to another bot from your team.
  • On Google Meet and Microsoft Teams the call must also stay silent during timeout, and anyone speaking resets the wait.
  • Supported on Google Meet, Microsoft Teams, and Zoom bots that join with Zoom credentials. Zoom bots that join without credentials still leave through silence_timeout.
  • "bot_detection": {} turns it on with the defaults. Omitting it or passing null leaves it off.

Advanced Options

  • allow_multiple_bots: true (default) to allow multiple bots in the same meeting, false to prevent duplicates
  • ignored_participant_names: Optional list of participant names to ignore when evaluating auto-leave conditions. Useful when multiple bots may join the same meeting (e.g., sandbox and staging bots) - each bot can then correctly detect when human participants have left instead of staying because it sees the other bot
  • entry_message: Optional message the bot posts in the meeting chat when it joins (max 4096 characters). To send more messages later, see Controlling a bot
  • extra: Optional custom metadata (included in webhooks and callbacks)
  • streaming_enabled: Enable audio streaming
  • streaming_config: Required if streaming_enabled is true

Scheduled Bot Specific

  • join_at: Required for scheduled bots. ISO 8601 timestamp when the bot should join

Response

The API returns the bot ID:

{
  "success": true,
  "data": {
    "bot_id": "123e4567-e89b-12d3-a456-426614174000"
  }
}

For scheduled bots, the bot_id is returned immediately and will be reused when the bot actually joins the meeting.

Next Steps

On this page