> ## Documentation Index
> Fetch the complete documentation index at: https://docs.langbot.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Integrating KOOK Bot

## Create a Bot

Visit the [KOOK Developer Center](https://developer.kookapp.cn/), log in and access the console.

<img src="https://mintcdn.com/langbot/BZuGA47SaPPwv_j7/images/zh/deploy/bots/kook/01-dashboard.png?fit=max&auto=format&n=BZuGA47SaPPwv_j7&q=85&s=b9f48c962e79300208eb515ac0b7696c" alt="KOOK Developer Console" width="1870" height="880" data-path="images/zh/deploy/bots/kook/01-dashboard.png" />

Click "Create Application" and fill in the application information.

<img src="https://mintcdn.com/langbot/BZuGA47SaPPwv_j7/images/zh/deploy/bots/kook/02-create-app.png?fit=max&auto=format&n=BZuGA47SaPPwv_j7&q=85&s=7fc1aab37586ecc1fb2f9c8c9cb5d84d" alt="Create Application" width="1870" height="880" data-path="images/zh/deploy/bots/kook/02-create-app.png" />

After the application is created, enter the application details page.

<img src="https://mintcdn.com/langbot/BZuGA47SaPPwv_j7/images/zh/deploy/bots/kook/03-app-created.png?fit=max&auto=format&n=BZuGA47SaPPwv_j7&q=85&s=2d61d4029de188568e7a986209390b92" alt="Application Created" width="1870" height="880" data-path="images/zh/deploy/bots/kook/03-app-created.png" />

You can view the basic information of the application on the application overview page.

<img src="https://mintcdn.com/langbot/BZuGA47SaPPwv_j7/images/zh/deploy/bots/kook/04-app-overview.png?fit=max&auto=format&n=BZuGA47SaPPwv_j7&q=85&s=b79e3734f2964f4c01da3b8966ec8c3c" alt="Application Overview" width="1870" height="880" data-path="images/zh/deploy/bots/kook/04-app-overview.png" />

## Get Bot Token

In the application page, click the "Bot" tab, copy the Bot Token and save it securely. You will need it later.

<img src="https://mintcdn.com/langbot/BZuGA47SaPPwv_j7/images/zh/deploy/bots/kook/05-bot-token.png?fit=max&auto=format&n=BZuGA47SaPPwv_j7&q=85&s=138880f229d23a684572edf9a5208a13" alt="Get Bot Token" width="1870" height="880" data-path="images/zh/deploy/bots/kook/05-bot-token.png" />

## Configure Bot Permissions

**Important:** In the "Bot" settings, find the "Message Filtering" option and click to configure.

<img src="https://mintcdn.com/langbot/BZuGA47SaPPwv_j7/images/zh/deploy/bots/kook/07-message-filters.png?fit=max&auto=format&n=BZuGA47SaPPwv_j7&q=85&s=833b424680f41e068dcdaf90e2b8bc38" alt="Message Filter Settings" width="1870" height="880" data-path="images/zh/deploy/bots/kook/07-message-filters.png" />

Enable all message-related event permissions, including channel messages and private message events. Otherwise, the bot will not be able to receive messages.

<img src="https://mintcdn.com/langbot/BZuGA47SaPPwv_j7/images/zh/deploy/bots/kook/08-permissions-enabled.png?fit=max&auto=format&n=BZuGA47SaPPwv_j7&q=85&s=2e5c9d22a27c1a102d7839ef4b8a3a62" alt="Enable Permissions" width="1870" height="880" data-path="images/zh/deploy/bots/kook/08-permissions-enabled.png" />

## Invite the Bot

In the bot settings page, you can generate an invitation link to invite the bot to your server.

<img src="https://mintcdn.com/langbot/BZuGA47SaPPwv_j7/images/zh/deploy/bots/kook/06-invite-link.png?fit=max&auto=format&n=BZuGA47SaPPwv_j7&q=85&s=e406fdabc6b5c9e39d50733cd8463643" alt="Generate Invitation Link" width="1870" height="880" data-path="images/zh/deploy/bots/kook/06-invite-link.png" />

## Connect to LangBot

Open the LangBot Webui page, and click to create a new bot on the "Bots" page.

<img src="https://mintcdn.com/langbot/BZuGA47SaPPwv_j7/images/zh/deploy/bots/kook/09-langbot-bots.png?fit=max&auto=format&n=BZuGA47SaPPwv_j7&q=85&s=e299cce1e4f2203120b8aad390dbfe95" alt="LangBot Bot Management" width="1870" height="880" data-path="images/zh/deploy/bots/kook/09-langbot-bots.png" />

Select the KOOK platform, fill in the bot name and Bot Token.

<img src="https://mintcdn.com/langbot/BZuGA47SaPPwv_j7/images/zh/deploy/bots/kook/10-bot-config.png?fit=max&auto=format&n=BZuGA47SaPPwv_j7&q=85&s=f5b979c422448697accb9b61a1f147b7" alt="Configure KOOK Bot" width="1870" height="880" data-path="images/zh/deploy/bots/kook/10-bot-config.png" />

After saving, the bot will appear in the list.

<img src="https://mintcdn.com/langbot/BZuGA47SaPPwv_j7/images/zh/deploy/bots/kook/11-bot-created.png?fit=max&auto=format&n=BZuGA47SaPPwv_j7&q=85&s=30d25a596fc06c0d0f27604d9665782d" alt="Bot Created" width="1870" height="880" data-path="images/zh/deploy/bots/kook/11-bot-created.png" />

Click the enable button to start the bot. If successfully configured, the bot status will show as running.

<img src="https://mintcdn.com/langbot/BZuGA47SaPPwv_j7/images/zh/deploy/bots/kook/12-bot-enabled.png?fit=max&auto=format&n=BZuGA47SaPPwv_j7&q=85&s=7d22dd6817599c81637c6717604689da" alt="Bot Enabled" width="1870" height="880" data-path="images/zh/deploy/bots/kook/12-bot-enabled.png" />

## Using the Bot

Now in the KOOK server, the bot can receive and reply to messages normally. The bot supports both channel messages and private messages.
