2.5k
GitHub Stars
2
Bundled Files
6 months ago
Catalog Refreshed
8 months ago
First Indexed
Readme & install
Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.
Installation
Preview and clipboard use veilstrat where the catalogue uses aiagentskills.
npx veilstrat add skill openclaw/skills --skill lark-custom-bot- _meta.json293 B
- SKILL.md3.7 KB
Overview
This skill is a Feishu/Lark Custom Bot API wrapper for sending messages to Feishu channels via webhook. It supports sending text, images, rich-text posts, interactive cards, and shared chats. The skill also handles image upload (from files or OpenCV images), signature verification for webhook security, and @mention functionality. It is designed to simplify programmatic notifications and channel interactions from Python applications.
How this skill works
Initialize the LarkCustomBot with your webhook and optional credentials (signing secret, bot_app_id, bot_secret). Use provided methods to upload images and build content pieces (text, link, @user, image) or craft interactive card payloads and share-chat requests. The wrapper handles HTTP requests, optional request signing, and uses app credentials when uploading images to obtain an image_key. Errors are logged and propagated as requests.RequestException for calling code to handle.
When to use it
- Send plain text notifications, alerts, or announcements to Feishu channels.
- Deliver images from disk or OpenCV pipelines into Feishu messages.
- Publish rich-text posts with mixed content (text, links, images, @mentions).
- Send interactive cards for user-driven workflows or approval flows.
- Share a chat thread into a channel using share_chat functionality.
Best practices
- Configure secret signing to verify requests and prevent unauthorized use of your webhook.
- Provide bot_app_id and bot_secret when you need to upload and include images.
- Upload images first to get image_key, then reference that key in image or post content.
- Catch requests.RequestException in your application to implement retries or fallback logging.
- Keep payloads concise to improve readability in channel and minimize rate limits.
Example use cases
- Automated CI/CD pipeline posts build status and artifacts (as links or images) to a Feishu channel.
- Monitoring agent sends screenshots or visual outputs from OpenCV directly into a team chat.
- Daily summary bot composes a rich-text post with links, images, and @mentions for stakeholders.
- Approval workflow posts an interactive card so reviewers can take actions from the channel.
- Support bot shares relevant chat threads into an incident channel for broader visibility.
FAQ
No—text, card, post, and share_chat messages can be sent with just the webhook. App credentials are only required for uploading images.
How do I secure the webhook?
Enable signature verification by passing the secret when initializing the bot; the wrapper will sign requests and verify incoming signatures where applicable.