A bot is a nifty way to run code and automate messages and tasks. Advantages of using bot:
Here are some tutorials for your reference:
Quick start | |
---|---|
Bot creates a group and sends alarms automatically | Send mass messages to specified departments |
The bot needs to be created in the developer console, and it can be used once the release process has been approved by the tenant's application administrator.
Users within the scope of the app's release can directly chat with the bot you created, or add the bot to the group chat in the Group Settings > Group Bot panel.
The bot app is controlled by the application administrator. After the application administrator has reviewed the permissions, it can call Lark's rich open APIs to obtain and use user and tenant resources.
You can refer to Tutorial: Interactive bot based on conversations to learn the basic process of developing an interactive bot.
Custom bots can only be used in group chats. You can create custom bots according to your own needs. Custom bots use webhook to receive messages from external systems and then push the messages to your group chats. Custom bots are used to automatically send notifications and will not respond to your messages.
You could quickly create one by entering your target group and clicking Settings > BOTs > Add Bot > Select Custom Bot, which would not require the approval of your tenant's application administrator.
Since custom robots can be used without being reviewed by tenant administrators, the convenience of use also limits their scope of use:
Refer to Custom bot guide for more information.
The custom bot configuration process is simple, but the usage scenarios are relatively limited, and can only meet the needs of basic group message push scenarios.
Although the application bot needs to go through the release review, it can call Lark's rich open interfaces to complete more interactive scenarios under the premise of the authorization of the tenant's application administrator.
The comparison of the capabilities of custom bots
and bots
are as follows:
Capability | custom bot | bot |
---|---|---|
Add to external group | ✅ | ❌ |
Push messages to your group | ✅ | ✅ |
Implement message cards containing link redirection | ✅ | ✅ |
Implement message cards that submit click operations to the server-side | ❌ | ✅ |
Respond to the messages mentioning the bot by users | ❌ | ✅ |
Send a private chat message to the user | ❌ | ✅ |
Create groups, manage groups, and obtain group information | ❌ | ✅ |
Access contacts, manage Docs, and other open capabilities | ❌ | ✅ |
After the "Bot" you created has been published, users can follow the Use a Bot in Lark tutorial to learn how to use it properly: