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:
- Immediate: The bot joins the meeting right away
- 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 imagesbot_image_config: Optional. Controls how several images are shown. Only relevant whenbot_imageis 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 pauseimage_duration: Seconds each image is shown in"auto"mode (default: 30, min: 10, max: 120)
Transcription
transcription_enabled: Set totrueto enable transcriptiontranscription_config: Required iftranscription_enabledistrue: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 totrueto enable callbacks for this botcallback_config: Required ifcallback_enabledistrue:url: The URL to receive callback notificationsmethod:"POST"(default) or"PUT"secret: Optional. Secret key included inx-mb-secretheader 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 withALL_PARTICIPANTS_LEFT(default: 30, min: 10, max: 1800). Participants listed inignored_participant_namesare 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 hoursbot_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 calltimeout: Seconds that only bots must remain before the bot leaves (default: 30, min: 10, max: 1800). A human joining resets itdetect_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:gongmatchesGong Recorderbut notGongora Smith, andnotetakerdoes not matchNote 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_timeoutapplies, because other notetakers often join before people do. - A participant counts as a bot when their name matches
participant_names, is listed inignored_participant_names, or, withdetect_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 passingnullleaves it off.
Advanced Options
allow_multiple_bots:true(default) to allow multiple bots in the same meeting,falseto prevent duplicatesignored_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 botentry_message: Optional message the bot posts in the meeting chat when it joins (max 4096 characters). To send more messages later, see Controlling a botextra: Optional custom metadata (included in webhooks and callbacks)streaming_enabled: Enable audio streamingstreaming_config: Required ifstreaming_enabledistrue
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
- Get meeting data
- Set up webhooks for real-time notifications
- Control a running bot: send chat messages, pause and resume recording
- Remove a bot