---
title: "Zoom Team Chat アプリを作る（エージェント用スキル） | Orchestor"
description: "Zoom Team Chat 向けのメッセージ連携やチャットボットを構築するためのリファレンスです。ユーザー単位のメッセージ操作、リッチカード、ボタン、スラッシュコマンド、Webhook を扱います。anthropics/knowledge-work-plugins が公開している「Zoom Team Chat アプリを作る」の使い方を確認できます。"
canonical_url: "https://www.orchestor.io/ja/skills/anthropics/knowledge-work-plugins/team-chat"
markdown_url: "https://www.orchestor.io/ja/skills/anthropics/knowledge-work-plugins/team-chat.md"
---

[0f94653](https://github.com/anthropics/knowledge-work-plugins/commit/0f9465302d18cc503f46846404d270678dc2e971)[原文を開く](https://github.com/anthropics/knowledge-work-plugins/blob/0f9465302d18cc503f46846404d270678dc2e971/partner-built/zoom-plugin/skills/team-chat/SKILL.md)

jordanecker-ant2026/12/01

原文 (選択中)

未翻訳

プレビュー (選択中)

687 行（空行を除く 534 行） · 23.22 KB原文

```yaml
name: build-zoom-team-chat-app
description: "Reference skill for Zoom Team Chat. Use after routing to a chat workflow when building user-scoped messaging integrations, chatbot experiences, rich cards, buttons, slash commands, or chat webhooks."
triggers:
  - "zoom team chat"
  - "zoom chatbot"
  - "zoom messaging"
  - "team chat api"
  - "chatbot api"
  - "zoom slash commands"
  - "zoom chat integration"
```

# /build-zoom-team-chat-app

Background reference for Zoom Team Chat integrations. Use this after the workflow is clear, especially when the Team Chat API versus Chatbot API distinction matters.

## Read This First (Critical)

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

1. **Team Chat API (user type)**

  * Sends messages as a real authenticated user
  * Uses **User OAuth** (`authorization_code`)
  * Endpoint family: ...
2. **Chatbot API (bot type)**

  * Sends messages as your bot identity
  * Uses **Client Credentials** (`client_credentials`)
  * Endpoint family: /v2/im/chat/messages

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/chatbot/>

## Quick Links

**New to Team Chat? Follow this path:**

1. **get-started.md** \- End-to-end fast path (user type vs bot type)
2. **api-selection.md** \- Team Chat API vs Chatbot API
3. **environment-setup.md** \- Credentials, scopes, app configuration
4. **oauth-setup.md** \- Complete authentication flow
5. **send-message.md** \- Working code to send messages

**Reference:**

* **message-cards.md** \- Complete card component reference
* **webhook-events.md** \- All webhook event types
* **api-reference.md** \- Endpoints, methods, parameters
* **samples.md** \- 10+ official sample apps
* **Integrated Index** \- see the section below in this file

**Having issues?**

* Authentication errors → oauth-issues.md
* Webhook not receiving events → webhook-issues.md
* Messages not sending → common-issues.md
* Start with quick checks → RUNBOOK.md

**OAuth endpoint sanity check:**

* Authorize URL: `https://zoom.us/oauth/authorize`
* Token URL: `https://zoom.us/oauth/token`
* If /oauth/token returns 404/HTML, use `https://zoom.us/oauth/token`.

**Building Interactive Bots?**

* button-actions.md \- Handle button clicks
* form-submissions.md \- Process form data
* slash-commands.md \- Create custom commands

## 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)

* Messages appear as sent by **authenticated user**
* Requires **User OAuth** (authorization\_code flow)
* Endpoint: `POST https://api.zoom.us/v2/chat/users/me/messages`
* Scopes: `chat_message:write`, `chat_channel:read`

### Chatbot API (Bot-Level)

* Messages appear as sent by your **bot**
* Requires **Client Credentials** grant
* Endpoint: `POST https://api.zoom.us/v2/im/chat/messages`
* Scopes: `imchat:bot` (auto-added)
* **Rich cards**: buttons, forms, dropdowns, images

## Prerequisites

### System Requirements

* Zoom account
* Account owner, admin, or **Zoom for developers** role enabled  
  * To enable: **User Management** → **Roles** → **Role Settings** → **Advanced features** → Enable **Zoom for developers**

### Create Zoom App

1. Go to [Zoom App Marketplace](https://marketplace.zoom.us/)
2. Click **Develop** → **Build App**
3. Select **General App** (OAuth)

> ⚠️ **Do NOT use Server-to-Server OAuth** \- S2S apps don't have the Chatbot/Team Chat feature. Only General App (OAuth) supports chatbots.

### 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.md for complete configuration steps.

## Quick Start: Team Chat API

Send a message as a user:

```javascript
// 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.md

## Quick Start: Chatbot API

Build an interactive chatbot:

```javascript
// 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
    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' }
          ]
        }
      ]
    }
  })
});
```

**Complete example**: chatbot-setup.md

## 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.md

## 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.md 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

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

**See**: llm-integration.md

## Sample Applications

| Sample                 | Description                           | Link                                                         |
| ---------------------- | ------------------------------------- | ------------------------------------------------------------ |
| **Chatbot Quickstart** | Official tutorial (recommended start) | [GitHub](https://github.com/zoom/chatbot-nodejs-quickstart)  |
| **Claude Chatbot**     | AI chatbot with Anthropic Claude      | [GitHub](https://github.com/zoom/zoom-chatbot-claude-sample) |
| **Unsplash Chatbot**   | Image search with database            | [GitHub](https://github.com/zoom/unsplash-chatbot)           |
| **ERP Chatbot**        | Oracle ERP with scheduled alerts      | [GitHub](https://github.com/zoom/zoom-erp-chatbot-sample)    |
| **Task Manager**       | Full CRUD app                         | [GitHub](https://github.com/zoom/task-manager-sample)        |

**See**: samples.md for analysis of all 10 samples

## Common Operations

### Send Message to Channel

```javascript
// 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

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

### Verify Webhook Signature

```javascript
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

```bash
# 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.md for:

* Nginx reverse proxy setup
* Base path configuration
* OAuth redirect URI setup

## 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.md

## Complete Documentation Library

### Core Concepts (Start Here!)

* **api-selection.md** \- Choose Team Chat API vs Chatbot API
* **environment-setup.md** \- Complete credentials guide
* **authentication.md** \- OAuth vs Client Credentials
* **webhooks.md** \- How webhooks work
* **message-structure.md** \- Card component hierarchy

### Complete Examples

* **oauth-setup.md** \- Full OAuth implementation
* **send-message.md** \- Team Chat API message sending
* **chatbot-setup.md** \- Complete chatbot with webhooks
* **button-actions.md** \- Handle interactive buttons
* **form-submissions.md** \- Process form data
* **slash-commands.md** \- Create custom commands
* **llm-integration.md** \- Claude/GPT integration
* **scheduled-alerts.md** \- Cron + incoming webhooks
* **channel-management.md** \- Create/manage channels

### References

* **api-reference.md** \- All endpoints and methods
* **webhook-events.md** \- Complete event reference
* **message-cards.md** \- All card components
* **samples.md** \- Analysis of 10 official samples
* **error-codes.md** \- Error handling guide

### Troubleshooting

* **oauth-issues.md** \- Authentication failures
* **webhook-issues.md** \- Webhook debugging
* **common-issues.md** \- Quick diagnostics

## Resources

* **Official Docs**: <https://developers.zoom.us/docs/team-chat/>
* **API Reference**: <https://developers.zoom.us/docs/api/rest/reference/chatbot/>
* **Dev Forum**: <https://devforum.zoom.us/>
* **App Marketplace**: <https://marketplace.zoom.us/>

---

**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

* Start here: get-started.md
* Fast troubleshooting first: RUNBOOK.md

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

For sending messages as a user account.

1. api-selection.md \- Confirm Team Chat API is right
2. environment-setup.md \- Get credentials
3. oauth-setup.md \- Implement authentication
4. send-message.md \- Send your first message

### Path 2: Chatbot API (Interactive Bots)

For building interactive chatbots with rich messages.

1. api-selection.md \- Confirm Chatbot API is right
2. environment-setup.md \- Get credentials (including Bot JID)
3. webhooks.md \- Understand webhook events
4. chatbot-setup.md \- Build your first bot
5. message-cards.md \- Create rich messages

## Core Concepts

Essential understanding for both APIs.

| Document             | Description                                |
| -------------------- | ------------------------------------------ |
| api-selection.md     | Choose Team Chat API vs Chatbot API        |
| environment-setup.md | Complete credentials and app configuration |
| authentication.md    | OAuth vs Client Credentials                |
| webhooks.md          | How webhooks work (Chatbot API)            |
| message-structure.md | Card component hierarchy                   |
| deployment.md        | Production deployment strategies           |
| security.md          | Secure your integration                    |

## Complete Examples

Working code for common scenarios.

### Authentication

| Example             | Description                         |
| ------------------- | ----------------------------------- |
| oauth-setup.md      | User OAuth flow implementation      |
| token-management.md | Refresh tokens, expiration handling |

### Basic Operations

| Example               | Description                    |
| --------------------- | ------------------------------ |
| send-message.md       | Team Chat API message sending  |
| chatbot-setup.md      | Complete chatbot with webhooks |
| channel-management.md | Get user's channels            |
| channel-management.md | Create public/private channels |

### Interactive Features (Chatbot API)

| Example             | Description            |
| ------------------- | ---------------------- |
| button-actions.md   | Handle button clicks   |
| form-submissions.md | Process form data      |
| slash-commands.md   | Create custom commands |
| dropdown-selects.md | Channel/member pickers |

### Advanced Integration

| Example                 | Description               |
| ----------------------- | ------------------------- |
| llm-integration.md      | Integrate Claude/GPT      |
| scheduled-alerts.md     | Cron + incoming webhooks  |
| database-integration.md | Store conversation state  |
| multi-step-workflows.md | Complex user interactions |

## References

### API Documentation

| Reference         | Description                        |
| ----------------- | ---------------------------------- |
| api-reference.md  | Pointers and common endpoints      |
| webhook-events.md | Event types and handling checklist |
| message-cards.md  | All card components                |
| error-codes.md    | Error handling guide               |

### Sample Applications

| Reference  | Description            |
| ---------- | ---------------------- |
| samples.md | Sample app index/notes |

### Field Guides

| Reference      | Description                   |
| -------------- | ----------------------------- |
| jid-formats.md | Understanding JID identifiers |
| scopes.md      | Common scopes                 |
| rate-limits.md | Throttling guidance           |

## Troubleshooting

| Guide                | Description                     |
| -------------------- | ------------------------------- |
| common-issues.md     | Quick diagnostics and solutions |
| oauth-issues.md      | Authentication failures         |
| webhook-issues.md    | Webhook debugging               |
| message-issues.md    | Message sending problems        |
| deployment-issues.md | 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

* CI/CD build notifications
* Server monitoring alerts
* Scheduled reports
* System health checks

### Workflows

* Approval requests
* Task assignment
* Status updates
* Form submissions

### Integrations

* LLM-powered assistants
* Database queries
* External API integration
* File/image sharing

### Automation

* Scheduled messages
* Auto-responses
* Data collection
* Report generation

## Resource Links

### Official Documentation

* **[Team Chat Docs](https://developers.zoom.us/docs/team-chat/)** \- Official overview
* **[Chatbot Docs](https://developers.zoom.us/docs/team-chat/chatbot/extend/)** \- Chatbot guide
* **[API Reference](https://developers.zoom.us/docs/api/rest/reference/chatbot/)** \- REST API docs
* **[App Marketplace](https://marketplace.zoom.us/)** \- Create and manage apps

### Sample Code

* **[Chatbot Quickstart](https://github.com/zoom/chatbot-nodejs-quickstart)** \- Official tutorial
* **[Claude Chatbot](https://github.com/zoom/zoom-chatbot-claude-sample)** \- AI integration
* **[Unsplash Chatbot](https://github.com/zoom/unsplash-chatbot)** \- Image search bot
* **[ERP Chatbot](https://github.com/zoom/zoom-erp-chatbot-sample)** \- Enterprise integration
* **[Task Manager](https://github.com/zoom/task-manager-sample)** \- Full CRUD app

### Tools

* **[App Card Builder](https://appssdk.zoom.us/cardbuilder/)** \- Visual card designer
* **[ngrok](https://ngrok.com/)** \- Local webhook testing
* **[Postman](https://www.postman.com/)** \- API testing

### Community

* **[Developer Forum](https://devforum.zoom.us/)** \- Ask questions
* **[GitHub Discussions](https://github.com/zoom)** \- Community support
* **[Developer Support](https://devsupport.zoom.us/)** \- Official support

## Documentation Status

### ✅ Complete

* Main skill.md entry point
* API Selection Guide
* Environment Setup
* Webhook Architecture
* Chatbot Setup Example (complete working code)
* Message Cards Reference
* Common Issues Troubleshooting

### 📝 Pending (High Priority)

* OAuth Setup Example
* Send Message Example
* Button Actions Example
* LLM Integration Example
* Webhook Events Reference
* API Reference
* Sample Applications Analysis

### 📋 Planned (Lower Priority)

* Form Submissions Example
* Channel Management Examples
* Database Integration Example
* Error Codes Reference
* Rate Limits Guide
* Deployment troubleshooting

## Getting Started Checklist

### For Team Chat API

* Read api-selection.md
* Complete environment-setup.md
* Obtain Client ID, Client Secret
* Add required scopes
* Implement OAuth flow
* Send first message

### For Chatbot API

* Read api-selection.md
* Complete environment-setup.md
* Obtain Client ID, Client Secret, Bot JID, Secret Token, Account ID
* Enable Team Chat in Features
* Configure Bot Endpoint URL and Slash Command
* Set up ngrok for local testing
* Implement webhook handler
* Send first chatbot message

## Version History

* **v1.0** (2026-02-09) - Initial comprehensive documentation  
  * Core concepts (API selection, environment setup, webhooks)
  * Complete chatbot setup example
  * Message cards reference
  * Common issues troubleshooting

## Support

Use this SKILL.md as the navigation hub for Team Chat API selection, setup, examples, and troubleshooting.

## Environment Variables

* See environment-variables.md for standardized `.env` keys and where to find each value.

## Structured data

```json
[
  [
    {
      "@context": "https://schema.org",
      "@type": "Organization",
      "name": "Orchestor",
      "url": "https://www.orchestor.io",
      "sameAs": [
        "https://orchestor.io",
        "https://www.orchestor.io",
        "https://docs.orchestor.io"
      ],
      "@id": "https://www.orchestor.io/#organization",
      "alternateName": [
        "オーケスター"
      ],
      "logo": "https://www.orchestor.io/images/common/ogp/orchestor-ogp.png",
      "parentOrganization": {
        "@type": "Organization",
        "name": "ドットメディア株式会社",
        "url": "https://www.dotmedia.co.jp"
      }
    },
    {
      "@context": "https://schema.org",
      "@type": "WebSite",
      "url": "https://www.orchestor.io",
      "name": "Orchestor",
      "description": "Orchestor で画像・動画・音声を作り、参照素材を Remix できます。",
      "@id": "https://www.orchestor.io/#website",
      "alternateName": [
        "オーケスター"
      ],
      "inLanguage": "ja",
      "publisher": {
        "@id": "https://www.orchestor.io/#organization"
      }
    }
  ],
  {
    "@context": "https://schema.org",
    "@type": "BreadcrumbList",
    "@id": "https://www.orchestor.io/skills/anthropics/knowledge-work-plugins/team-chat#breadcrumb",
    "itemListElement": [
      {
        "@type": "ListItem",
        "position": 1,
        "name": "Orchestor",
        "item": "https://www.orchestor.io/"
      },
      {
        "@type": "ListItem",
        "position": 2,
        "name": "スキル",
        "item": "https://www.orchestor.io/skills"
      },
      {
        "@type": "ListItem",
        "position": 3,
        "name": "Zoom Team Chat アプリを作る",
        "item": "https://www.orchestor.io/skills/anthropics/knowledge-work-plugins/team-chat"
      }
    ]
  }
]
```

---

[Documentation index](https://www.orchestor.io/llms.txt)
