Files
LangBot/en/usage/platforms/kook.mdx
T
Xiaoyu SuandJunyan Chin 310c566148 refactor: migration to mintlify
* 重构文档结构:移除 docs 目录,调整文件组织结构

* Reorder "插件 SDK API" section in docs.json

* Refactor and clarify various documentation sections

* Refine warnings and info boxes across multiple docs

* Refactor and simplify Japanese documentation content

* Update package.json to include mintlify as a dependency and add pnpm-lock.yaml for dependency management

* Update blog link and add description in docs.json

---------

Co-authored-by: Junyan Chin <[email protected]>
2026-02-21 23:55:53 +08:00

66 lines
2.2 KiB
Plaintext

---
title: "Integrating KOOK Bot"
---
## Create a Bot
Visit the [KOOK Developer Center](https://developer.kookapp.cn/), log in and access the console.
![KOOK Developer Console](/images/zh/deploy/bots/kook/01-dashboard.png)
Click "Create Application" and fill in the application information.
![Create Application](/images/zh/deploy/bots/kook/02-create-app.png)
After the application is created, enter the application details page.
![Application Created](/images/zh/deploy/bots/kook/03-app-created.png)
You can view the basic information of the application on the application overview page.
![Application Overview](/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.
![Get Bot Token](/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.
![Message Filter Settings](/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.
![Enable Permissions](/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.
![Generate Invitation Link](/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.
![LangBot Bot Management](/images/zh/deploy/bots/kook/09-langbot-bots.png)
Select the KOOK platform, fill in the bot name and Bot Token.
![Configure KOOK Bot](/images/zh/deploy/bots/kook/10-bot-config.png)
After saving, the bot will appear in the list.
![Bot Created](/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.
![Bot Enabled](/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.