Team chat

From zoom/skills · View interactive version

Team chat is an AI agent skill from the GitHub repository zoom/skills. Zoom Team Chat - Build messaging integrations, chatbots with rich cards/buttons, and apps. Covers Team Chat API (user-level messaging) and Chatbot API (bot-level interactions with webhooks).

How to use this skill

Skill file

Zoom Team Chat Development

Build powerful messaging integrations and interactive chatbots for Zoom Team Chat. This skill covers two distinct APIs - make sure to choose the right one for your use case.

For agent-driven MCP tooling that sends/edits messages or manages Team Chat channels through

Zoom's hosted MCP server, use ../zoom-mcp/team-chat/SKILL.md.

Keep this skill as the default for deterministic REST API implementation, chatbot apps,

webhooks, retry logic, and production backend control.

Read This First (Critical)

There are two different integration types and they are not interchangeable:

  1. Team Chat API (user type)
  1. Chatbot API (bot type)

If you choose the wrong type early, auth/scopes/endpoints all mismatch and implementation fails.

Official Documentation: https://developers.zoom.us/docs/team-chat/

Chatbot Documentation: https://developers.zoom.us/docs/team-chat/chatbot/extend/

API Reference: https://developers.zoom.us/docs/api/rest/reference/chat/methods/#overview

Chatbot API Reference: https://developers.zoom.us/docs/api/rest/reference/chatbot/methods/#overview

The current Team Chat API Hub inventory contains 109 operations (verified 2026-07-10), including

channel-owner reassignment and channel-tab migration. Use

the generated Team Chat API reference for exact current

paths. For the separate 20-tool hosted MCP surface, use

Zoom Team Chat MCP.

Quick Links

New to Team Chat? Follow this path:

  1. Get Started - End-to-end fast path (user type vs bot type)
  2. Choose Your API - Team Chat API vs Chatbot API
  3. Environment Setup - Credentials, scopes, app configuration
  4. OAuth Setup - Complete authentication flow
  5. Send First Message - Working code to send messages

Reference:

Having issues?

OAuth endpoint sanity check:

Building Interactive Bots?

Quick Decision: Which API?

| Use Case | API to Use |

|----------|------------|

| Send notifications from scripts/CI/CD | Team Chat API |

| Automate messages as a user | Team Chat API |

| Build an interactive chatbot | Chatbot API |

| Respond to slash commands | Chatbot API |

| Create messages with buttons/forms | Chatbot API |

| Handle user interactions | Chatbot API |

Team Chat API (User-Level)

Chatbot API (Bot-Level)

Chatbot Message Rules (Non-Negotiable)

toJid, userJid, and accountId values:

{
  "robot_jid": "<configured Bot JID>",
  "to_jid": "<payload.toJid>",
  "user_jid": "<payload.userJid>",
  "account_id": "<payload.accountId>",
  "content": {
    "body": [{ "type": "message", "text": "Response text" }]
  }
}

chatbot reply succeeded. Log and inspect the outbound /im/chat/messages

HTTP status and response body, then verify the reply is visible in Team Chat.

credentials, a Bot JID from the wrong environment, or credentials and Bot

JID belonging to different Marketplace apps.

Prerequisites

System Requirements

Create Zoom App

  1. Go to Zoom App Marketplace
  2. Click Develop → Build App
  3. Select General App (OAuth)

⚠️ Do NOT use Server-to-Server OAuth for a chatbot. S2S apps cannot enable the

Team Chat chatbot/subscription feature. S2S can still call supported Team Chat admin REST APIs.

Need to create the General App by API or manifest? Use

Marketplace app management first. It covers

Team Chat manifest requirements such as imchat:bot, team_chat_subscription,

slash_command.development_message_url, shortcut action_types, and app-owned

client_credentials scopes. Select the user, admin, S2S, or chatbot variant from the

Marketplace template selector.

Required Credentials

From Zoom Marketplace → Your App:

| Credential | Location | Used By |

|------------|----------|---------|

| Client ID | App Credentials → Development | Both APIs |

| Client Secret | App Credentials → Development | Both APIs |

| Account ID | App Credentials → Development | Chatbot API |

| Bot JID | Features → Chatbot → Bot Credentials | Chatbot API |

| Secret Token | Features → Team Chat Subscriptions | Chatbot API |

See: Environment Setup Guide for complete configuration steps.

Quick Start: Team Chat API

Send a message as a user:

// 1. Get access token via OAuth
const accessToken = await getOAuthToken(); // See examples/oauth-setup.md

// 2. Send message to channel
const response = await fetch('https://api.zoom.us/v2/chat/users/me/messages', {
  method: 'POST',
  headers: {
    'Authorization': `Bearer ${accessToken}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    message: 'Hello from CI/CD pipeline!',
    to_channel: 'CHANNEL_ID'
  })
});

const data = await response.json();
// { "id": "msg_abc123", "date_time": "2024-01-15T10:30:00Z" }

Complete example: Send Message Guide

Quick Start: Chatbot API

Build an interactive chatbot:

// 1. Get chatbot token (client_credentials)
async function getChatbotToken() {
  const credentials = Buffer.from(
    `${CLIENT_ID}:${CLIENT_SECRET}`
  ).toString('base64');
  
  const response = await fetch('https://zoom.us/oauth/token', {
    method: 'POST',
    headers: {
      'Authorization': `Basic ${credentials}`,
      'Content-Type': 'application/x-www-form-urlencoded'
    },
    body: 'grant_type=client_credentials'
  });
  
  return (await response.json()).access_token;
}

// 2. Send chatbot message with buttons
const response = await fetch('https://api.zoom.us/v2/im/chat/messages', {
  method: 'POST',
  headers: {
    'Authorization': `Bearer ${accessToken}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    robot_jid: process.env.ZOOM_BOT_JID,
    to_jid: payload.toJid,           // From webhook
    user_jid: payload.userJid,       // From webhook
    account_id: payload.accountId,   // From webhook
    content: {
      head: {
        text: 'Build Notification',
        sub_head: { text: 'CI/CD Pipeline' }
      },
      body: [
        { type: 'message', text: 'Deployment successful!' },
        {
          type: 'fields',
          items: [
            { key: 'Branch', value: 'main' },
            { key: 'Commit', value: 'abc123' }
          ]
        },
        {
          type: 'actions',
          items: [
            { text: 'View Logs', value: 'view_logs', style: 'Primary' },
            { text: 'Dismiss', value: 'dismiss', style: 'Default' }
          ]
        }
      ]
    }
  })
});

const responseBody = await response.text();
console.log('Chatbot API response:', response.status, responseBody);
if (!response.ok) {
  throw new Error(`Chatbot reply failed (${response.status}): ${responseBody}`);
}

The webhook response is separate from this outbound API response. Treat the

chatbot flow as successful only after this request is accepted and the message

is visible in Team Chat.

Complete example: Chatbot Setup Guide

Key Features

Team Chat API

| Feature | Description |

|---------|-------------|

| Send Messages | Post messages to channels or direct messages |

| List Channels | Get user's channels with metadata |

| Create Channels | Create public/private channels programmatically |

| Threaded Replies | Reply to specific messages in threads |

| Edit/Delete | Modify or remove messages |

Chatbot API

| Feature | Description |

|---------|-------------|

| Rich Message Cards | Headers, images, fields, buttons, forms |

| Slash Commands | Custom /commands trigger webhooks |

| Button Actions | Interactive buttons with webhook callbacks |

| Form Submissions | Collect user input with forms |

| Dropdown Selects | Channel, member, date/time pickers |

| LLM Integration | Easy integration with Claude, GPT, etc. |

Webhook Events (Chatbot API)

| Event | Trigger | Use Case |

|-------|---------|----------|

| bot_notification | User messages bot or uses slash command | Process commands, integrate LLM |

| bot_installed | Bot added to account | Initialize bot state |

| interactive_message_actions | Button clicked | Handle button actions |

| chat_message.submit | Form submitted | Process form data |

| app_deauthorized | Bot removed | Cleanup |

See: Webhook Events Reference

Message Card Components

Build rich interactive messages with these components:

| Component | Description |

|-----------|-------------|

| header | Title and subtitle |

| message | Plain text |

| fields | Key-value pairs |

| actions | Buttons (Primary, Danger, Default styles) |

| section | Colored sidebar grouping |

| attachments | Images with links |

| divider | Horizontal line |

| form_field | Text input |

| dropdown | Select menu |

| date_picker | Date selection |

See: Message Cards Reference for complete component catalog

Architecture Patterns

Chatbot Lifecycle

User types /command → Webhook receives bot_notification
                            ↓
                     payload.cmd = "user's input"
                            ↓
                     Process command
                            ↓
                     Send response via sendChatbotMessage()

LLM Integration Pattern

case 'bot_notification': {
  const { toJid, userJid, cmd, accountId } = payload;
  
  // 1. Call your LLM
  const llmResponse = await callClaude(cmd);
  
  // 2. Send response back
  await sendChatbotMessage(toJid, userJid, accountId, {
    body: [{ type: 'message', text: llmResponse }]
  });
}

See: LLM Integration Guide

Sample Applications

| Sample | Description | Link |

|--------|-------------|------|

| Chatbot Quickstart | Official tutorial (recommended start) | GitHub |

| Claude Chatbot | AI chatbot with Anthropic Claude | GitHub |

| Unsplash Chatbot | Image search with database | GitHub |

| ERP Chatbot | Oracle ERP with scheduled alerts | GitHub |

| Task Manager | Full CRUD app | GitHub |

See: Sample Applications Guide for analysis of all 10 samples

Common Operations

Send Message to Channel

// Team Chat API
await fetch('https://api.zoom.us/v2/chat/users/me/messages', {
  method: 'POST',
  headers: { 'Authorization': `Bearer ${token}` },
  body: JSON.stringify({
    message: 'Hello!',
    to_channel: 'CHANNEL_ID'
  })
});

Handle Button Click

// Webhook handler
case 'interactive_message_actions': {
  const { actionItem, toJid, userJid, accountId } = payload;
  
  if (actionItem.value === 'approve') {
    await sendChatbotMessage(toJid, userJid, accountId, {
      body: [{ type: 'message', text: '✅ Approved!' }]
    });
  }
}

Verify Webhook Signature

function verifyWebhook(req) {
  const message = `v0:${req.headers['x-zm-request-timestamp']}:${JSON.stringify(req.body)}`;
  const hash = crypto.createHmac('sha256', process.env.ZOOM_VERIFICATION_TOKEN)
    .update(message)
    .digest('hex');
  return req.headers['x-zm-signature'] === `v0=${hash}`;
}

Deployment

ngrok for Local Development

# Install ngrok
npm install -g ngrok

# Expose local server
ngrok http 4000

# Use HTTPS URL as Bot Endpoint URL in Zoom Marketplace
# Example: https://abc123.ngrok.io/webhook

Production Deployment

See: Deployment Guide for:

Limitations

| Limit | Value |

|-------|-------|

| Message length | 4,096 characters |

| File size | 512 MB |

| Members per channel | 10,000 |

| Channels per user | 500 |

Security Best Practices

  1. Verify webhook signatures - Always validate using x-zm-signature header
  2. Sanitize messages - Limit to 4096 chars, remove control characters
  3. Validate JIDs - Check format: user@domain or channel@domain
  4. Environment variables - Never hardcode credentials
  5. Use HTTPS - Required for production webhooks

See: Security Best Practices

Complete Documentation Library

Core Concepts (Start Here!)

Complete Examples

References

Troubleshooting

Resources


Need help? Start with Integrated Index section below for complete navigation.


Integrated Index

_This section was migrated from SKILL.md._

Complete navigation guide for the Zoom Team Chat skill.

Quick Start Paths

Path 1: Team Chat API (User-Level Messaging)

For sending messages as a user account.

  1. API Selection Guide - Confirm Team Chat API is right
  2. Environment Setup - Get credentials
  3. OAuth Setup Example - Implement authentication
  4. Send Message Example - Send your first message

Path 2: Chatbot API (Interactive Bots)

For building interactive chatbots with rich messages.

  1. API Selection Guide - Confirm Chatbot API is right
  2. Environment Setup - Get credentials (including Bot JID)
  3. Webhook Architecture - Understand webhook events
  4. Chatbot Setup Example - Build your first bot
  5. Message Cards Reference - Create rich messages

Core Concepts

Essential understanding for both APIs.

| Document | Description |

|----------|-------------|

| API Selection Guide | Choose Team Chat API vs Chatbot API |

| Environment Setup | Complete credentials and app configuration |

| Authentication Flows | OAuth vs Client Credentials |

| Webhook Architecture | How webhooks work (Chatbot API) |

| Message Card Structure | Card component hierarchy |

| Deployment Guide | Production deployment strategies |

| Security Best Practices | Secure your integration |

Complete Examples

Working code for common scenarios.

Authentication

| Example | Description |

|---------|-------------|

| OAuth Setup | User OAuth flow implementation |

| Token Management | Refresh tokens, expiration handling |

Basic Operations

| Example | Description |

|---------|-------------|

| Send Message | Team Chat API message sending |

| Chatbot Setup | Complete chatbot with webhooks |

| List Channels | Get user's channels |

| Create Channel | Create public/private channels |

Interactive Features (Chatbot API)

| Example | Description |

|---------|-------------|

| Button Actions | Handle button clicks |

| Form Submissions | Process form data |

| Slash Commands | Create custom commands |

| Dropdown Selects | Channel/member pickers |

Advanced Integration

| Example | Description |

|---------|-------------|

| LLM Integration | Integrate Claude/GPT |

| Scheduled Alerts | Cron + incoming webhooks |

| Database Integration | Store conversation state |

| Multi-Step Workflows | Complex user interactions |

References

API Documentation

| Reference | Description |

|-----------|-------------|

| API Reference | Pointers and common endpoints |

| Webhook Events | Event types and handling checklist |

| Message Cards | All card components |

| Error Codes | Error handling guide |

Sample Applications

| Reference | Description |

|-----------|-------------|

| Sample Applications | Sample app index/notes |

Field Guides

| Reference | Description |

|-----------|-------------|

| JID Formats | Understanding JID identifiers |

| Scopes Reference | Common scopes |

| Rate Limits | Throttling guidance |

Troubleshooting

| Guide | Description |

|-------|-------------|

| Common Issues | Quick diagnostics and solutions |

| OAuth Issues | Authentication failures |

| Webhook Issues | Webhook debugging |

| Message Issues | Message sending problems |

| Deployment Issues | Production problems |

Architecture Patterns

Chatbot Lifecycle

User Action → Webhook → Process → Response

LLM Integration Pattern

User Input → Chatbot receives → Call LLM → Send response

Approval Workflow Pattern

Request → Send card with buttons → User clicks → Update status → Notify

Common Use Cases

Notifications

Workflows

Integrations

Automation

Resource Links

Official Documentation

Sample Code

Tools

Community

Documentation Status

✅ Complete

📝 Pending (High Priority)

📋 Planned (Lower Priority)

Getting Started Checklist

For Team Chat API

For Chatbot API

Version History

Contributing

This skill is part of the zoom-skills repository. Improvements welcome!

Support

For skill-related questions or improvements, please reference this SKILL.md for navigation.

Environment Variables

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.