-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
en platform lark
Version v4.15.0.
| Message Type | Receive Support | Send Support | Notes |
|---|---|---|---|
| Text | Yes | Yes | |
| Image | Yes | Yes | |
| Voice | No | Yes | |
| Video | No | Yes | |
| File | No | Yes |
Proactive message push: Supported.
Streaming output: Supported. You must enable the Create and update cards (cardkit:card:write) permission for your app in the Lark Developer Console.
The Lark client version must be >= 7.20. Lower versions only display the title and an upgrade prompt.
Navigate to the Developer Console and create a custom enterprise application.
Add the Bot capability to your application.
Click on "Credentials & Basic Info" to obtain your app_id and app_secret.
- Access the AstrBot management panel
- Click on
Botsin the left sidebar - In the right panel, click
+ Create Bot - Select
lark
Fill in the configuration fields as follows:
- ID: Choose any identifier to distinguish between different messaging platform instances
- Enable: Check this option
- app_id: The app_id you obtained earlier
- app_secret: The app_secret you obtained earlier
- Bot name: Your Lark bot's name
For the domain field, if you're using Lark China, keep the default value. If you're using Lark International, set it to https://open.larksuite.com. If you're using a self-hosted enterprise Lark instance, enter your Lark instance's domain.
For the subscription method, socket uses a long connection subscription approach, while webhook sends events to your developer server and requires a public server. Generally, socket is recommended. However, if you're using Lark International or a self-hosted Lark instance, choose webhook. The subsequent configuration steps will differ accordingly.
If you selected the webhook method, navigate to the Lark Developer Console, click on "Events & Callbacks," then "Encryption Policy," and fill in the Encrypt Key. While not mandatory, AstrBot takes your data security seriously, so we strongly recommend setting this up. After filling it in, copy the Encrypt Key and Verification Token to the corresponding encrypt_key and verification_token fields in AstrBot's configuration.
Click Save.
The following steps vary depending on the subscription method you selected above. Please proceed to the corresponding section based on your choice.
Next, click on "Events & Callbacks," select "Receive events using long connection," and click Save. If the previous step didn't start successfully, you won't be able to save here.
Tip
To make better use of this method, please refer to Unified Webhook Mode for the necessary configuration.
After clicking Save, the bot card will display "View Webhook URL." Click to view and copy the callback URL.
Next, return to Lark's Events & Callbacks page, click "Event Configuration," select "Send events to developer server," enter the callback URL you just copied as the "Request URL," and click Save. If everything is correct, no errors will appear.
After completing the event configuration in the previous step, click "Add Event," navigate to "Messages & Groups," scroll down to find Receive Message, and add it.
Click to enable the following permissions.
Then click the Save button at the top.
Next, click on "Permission Management," click "Enable Permissions," and enter im:message:send,im:message,im:message:send_as_bot. Add the filtered permissions.
Enter im:resource:upload,im:resource again to enable image upload permissions.
If you want to use streaming output, additionally enable Create and update cards (cardkit:card:write).
The final set of permissions should look like this:
Create a new version.
Fill in the version number, update notes, and visibility scope, then click Save and confirm the release.
Open the Lark app (the web version doesn't support adding bots), enter a group chat, click the button in the upper right corner → Group Bots → Add Bot.
Search for the bot you just created. For example, if you created the AstrBot bot as shown in this tutorial:
Send a /help command in the group, and the bot will respond.
- 首页
- 文档入口
- Top Level
- community events
- deploy
- dev
- others
- platform
- 接入 OneBot v11 协议实现
- 接入钉钉 DingTalk
- 接入 Discord
- 接入 Kook
- 接入飞书
- 接入 LINE
- 接入 Matrix
- 接入 Mattermost
- 接入 Misskey 平台
- 接入 QQ 官方机器人平台
- 通过 QQ官方机器人 接入 QQ (Webhook)
- 通过 QQ官方机器人 接入 QQ (Websockets)
- 接入 Satori 协议
- 接入 server-satori (基于 Koishi)
- 接入 Slack
- 接入消息平台
- 接入 Telegram
- 接入 VoceChat
- AstrBot 接入企业微信
- 接入企业微信智能机器人平台
- AstrBot 接入微信公众平台
- 接入个人微信
- providers
- use
- Home
- Docs Entry
- Top Level
- config
- deploy
- Deploy AstrBot on 1Panel
- Deploy AstrBot on BT Panel
- Deploy AstrBot on CasaOS
- Deploy AstrBot from Source Code
- Community-Provided Deployment Methods
- Deploy via Compshare
- Deploy AstrBot with Docker
- Deploy AstrBot with Kubernetes
- Deploy AstrBot with AstrBot Launcher
- Other Deployments
- Package Manager Deployment (uv)
- Installation via System Package Manager
- Preface
- dev
- ospp
- others
- platform
- Connect OneBot v11 Protocol Implementations
- Connect to DingTalk
- Connecting to Discord
- Connect to KOOK
- Connecting to Lark
- Connecting to LINE
- Connecting to Matrix
- Connecting to Mattermost
- Connecting to Misskey Platform
- Connect QQ Official Bot
- Connect QQ via QQ Official Bot (Webhook)
- Connect QQ via QQ Official Bot (Websockets)
- Connect to Satori Protocol
- Connect server-satori (Koishi)
- Connecting to Slack
- Messaging Platforms
- Connecting to Telegram
- Connect to VoceChat
- Connect AstrBot to WeCom
- Connect to WeCom AI Bot Platform
- Connect AstrBot to WeChat Official Account Platform
- Connect Personal WeChat
- providers
- 接入 302.AI
- Agent Runners
- Built-in Agent Runner
- Connect to Coze
- Connect to Alibaba Cloud Bailian Application
- Connect to DeerFlow
- Connect to Dify
- Connect AIHubMix
- coze
- dashscope
- dify
- 大语言模型提供商
- NewAPI
- 接入 PPIO 派欧云
- 接入 LM Studio 使用 DeepSeek-R1 等模型
- Integrating Ollama
- Connecting to SiliconFlow
- Connecting Model Services
- Connecting to TokenPony
- use
- Agent Runner
- Agent Sandbox Environment ⛵️
- astrbot sandbox
- Docker-based Code Interpreter
- Built-in Commands
- Computer Use
- Context Compression
- Custom Rules
- Function Calling
- AstrBot Knowledge Base
- MCP
- AstrBot Star
- Proactive Capabilities
- Anthropic Skills
- Agent Handoff and SubAgent
- Unified Webhook Mode
- Web Search
- Admin Panel










