send_chat_message
Enable bot-to-attendee communication in meetings by sending chat messages with specified text. Use bot ID and message content to facilitate interaction.
Instructions
Send a chat message from the bot to the meeting
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bot_id | Yes | ID of the bot that should send the message | |
| message | Yes | Message text to send |
Implementation Reference
- src/index.ts:563-587 (handler)The handler function for 'send_chat_message'. Validates bot_id and message parameters, sends a POST request to the API endpoint `/api/v1/bots/${bot_id}/send_chat_message` with the message, and returns a success confirmation.private async sendChatMessage(args: Record<string, unknown>) { const bot_id = args.bot_id as string; const message = args.message as string; if (!bot_id || typeof bot_id !== 'string') { throw new Error("Missing or invalid required parameter: bot_id"); } if (!message || typeof message !== 'string') { throw new Error("Missing or invalid required parameter: message"); } await this.makeApiRequest(`/api/v1/bots/${bot_id}/send_chat_message`, "POST", { message }); return { content: [ { type: "text", text: `✅ Chat message sent from bot ${bot_id}: "${message}"`, }, ], }; }
- src/index.ts:294-311 (schema)The tool registration including name, description, and input schema definition for 'send_chat_message' in the listTools response.{ name: "send_chat_message", description: "Send a chat message from the bot to the meeting", inputSchema: { type: "object", properties: { bot_id: { type: "string", description: "ID of the bot that should send the message", }, message: { type: "string", description: "Message text to send", }, }, required: ["bot_id", "message"], }, },
- src/index.ts:413-414 (registration)The switch case that registers and dispatches calls to the 'send_chat_message' handler.case "send_chat_message": return await this.sendChatMessage(args);