packages/docs/connectors/feishu.md
Connect your agent to Feishu (known as Lark outside China) for bot interactions, group chats, and workflow notifications using the @elizaos/plugin-feishu package.
| Name | Required | Description |
|---|---|---|
FEISHU_APP_ID | Yes | Feishu/Lark application ID (cli_xxx format) for bot authentication |
FEISHU_APP_SECRET | Yes | Feishu/Lark application secret for bot authentication |
FEISHU_DOMAIN | No | Domain to use: feishu for China or lark for global |
FEISHU_ALLOWED_CHATS | No | JSON-encoded array of chat IDs authorized to interact with the bot |
FEISHU_TEST_CHAT_ID | No | Chat ID used by the test suite for validation |
The connector auto-enables when one of the generic trigger fields (token, botToken, or apiKey) is present in the connector config. Environment variables alone do not trigger auto-enable. Here the apiKey field is set to the Feishu app secret to trigger auto-enable; actual authentication uses FEISHU_APP_ID and FEISHU_APP_SECRET.
{
"env": {
"FEISHU_APP_ID": "cli_your_app_id",
"FEISHU_APP_SECRET": "your_app_secret"
},
"connectors": {
"feishu": {
"apiKey": "your_app_secret"
}
}
}
The connector auto-enables when token, botToken, or apiKey is truthy in the connector config. Environment variables alone do not trigger auto-enable.
im:message, im:message.group_at_msg, im:message.p2p_msg.feishu.cn and larksuite.com domains