Controlling a Bot
Send chat messages, pause and resume recording, update metadata and retry transcription for a bot that is already running or finished
Once a bot is created you can keep steering it: post in the meeting chat, pause and resume the recording, change the extra metadata it carries, and re-run transcription after the meeting. All endpoints on this page take the bot's bot_id in the path and use the same x-meeting-baas-api-key header as the rest of the API.
| Action | Endpoint | Bot must be |
|---|---|---|
| Send a chat message | POST /v2/bots/{bot_id}/send-chat-message | In the meeting |
| Pause recording | POST /v2/bots/{bot_id}/pause-recording | Recording |
| Resume recording | POST /v2/bots/{bot_id}/resume-recording | Paused |
| Update metadata | PATCH /v2/bots/{bot_id}/update-config | Any status |
| Retry transcription | POST /v2/bots/{bot_id}/retranscribe | Finished, with audio |
To make a bot leave the meeting, see Removing a bot.
Send a chat message
Post a message in the meeting chat as the bot. Works on Google Meet, Microsoft Teams and Zoom.
curl -X POST "https://api.meetingbaas.com/v2/bots/BOT-ID/send-chat-message" \
-H "Content-Type: application/json" \
-H "x-meeting-baas-api-key: YOUR-API-KEY" \
-d '{ "message": "Recording has started. Reply STOP to pause it." }'Rules:
messageis required, cannot be empty or whitespace-only, and is limited to 4096 characters.- The bot must be in the meeting: status
in_call_not_recording,in_call_recording,recording_pausedorrecording_resumed. Any other status returns409(FST_ERR_BOT_STATUS). - If the host or the meeting policy has disabled chat, the request returns
422(FST_ERR_CHAT_DISABLED). This is detected on Zoom and Microsoft Teams. On Google Meet delivery is best-effort: the request can succeed even when the host restricts chat for external participants. - If the bot cannot be reached or the platform rejects the message, the request returns
500(FST_ERR_SEND_CHAT_MESSAGE_FAILED).
Messages the bot sends are stored in the chat messages artifact next to the messages it received. They do not trigger the bot.chat_message webhook, which only fires for messages from participants.
To know up front whether chat works in a meeting, listen for the bot.chat_status webhook. It is sent once shortly after the bot joins and tells you if the bot can send and receive chat.
To post a single message when the bot joins, you do not need this endpoint: set entry_message when creating the bot.
Pause and resume recording
Pause the recording while the bot stays in the meeting, then resume it later. You can pause and resume as many times as needed in one meeting.
# Pause
curl -X POST "https://api.meetingbaas.com/v2/bots/BOT-ID/pause-recording" \
-H "Content-Type: application/json" \
-H "x-meeting-baas-api-key: YOUR-API-KEY" \
-d '{ "chat_message": "Recording has been paused" }'
# Resume
curl -X POST "https://api.meetingbaas.com/v2/bots/BOT-ID/resume-recording" \
-H "Content-Type: application/json" \
-H "x-meeting-baas-api-key: YOUR-API-KEY" \
-d '{ "chat_message": "Recording has resumed" }'chat_message is optional on both endpoints. When set, the bot posts it in the meeting chat so participants know the recording state changed.
What a pause does:
- The paused portion is left out of the final recording, transcript and diarization.
- Timestamps in the final artifacts are continuous: the paused gap is collapsed, not represented as silence.
- If streaming output is enabled, the stream stops forwarding audio until you resume.
Status requirements:
| Endpoint | Allowed statuses | Status after the call |
|---|---|---|
pause-recording | in_call_recording, recording_resumed | recording_paused |
resume-recording | recording_paused | recording_resumed |
A bot that is already paused, still joining, or finished returns 409. Each change is also delivered as a bot.status_change webhook.
Update extra metadata
Change the extra object attached to a bot, even while it is running or after it has finished. Every webhook and API response sent after the update carries the new value.
curl -X PATCH "https://api.meetingbaas.com/v2/bots/BOT-ID/update-config" \
-H "Content-Type: application/json" \
-H "x-meeting-baas-api-key: YOUR-API-KEY" \
-d '{ "extra": { "session_id": "xyz", "order_id": "456" } }'The update is a shallow merge:
- New keys are added.
- Existing keys are overwritten.
- Keys you leave out are kept.
"extra": nullclears all metadata.
For example, a bot with { "customer_id": "123", "session_id": "abc" } updated with the request above ends up with { "customer_id": "123", "session_id": "xyz", "order_id": "456" }.
extra is the only field this endpoint changes today. To change the configuration of a bot that has not joined yet, update the scheduled bot or the calendar bot instead.
Retry transcription
Run transcription again for a bot that has an audio recording, for example after a TRANSCRIPTION_FAILED error or to try another provider.
# Retry with the bot's original transcription settings
curl -X POST "https://api.meetingbaas.com/v2/bots/BOT-ID/retranscribe" \
-H "x-meeting-baas-api-key: YOUR-API-KEY"
# Retry with a different provider
curl -X POST "https://api.meetingbaas.com/v2/bots/BOT-ID/retranscribe" \
-H "Content-Type: application/json" \
-H "x-meeting-baas-api-key: YOUR-API-KEY" \
-d '{ "transcription": { "provider": "deepgram" } }'The body is optional. Without it, the bot's original transcription configuration is reused. With a transcription object you can override provider (gladia, deepgram, assemblyai, speechmatics or soniox), api_key, region and custom_params, the same options described in Transcription.
The request returns 409 when the bot's status does not allow it.
Error responses
| Status | Code | Meaning |
|---|---|---|
404 | The bot does not exist or does not belong to your team. | |
409 | FST_ERR_BOT_STATUS | The bot's current status does not allow this action. |
422 | FST_ERR_CHAT_DISABLED | Chat is disabled in this meeting (send chat message only). |
500 | FST_ERR_SEND_CHAT_MESSAGE_FAILED | The message could not be delivered to the meeting. |