Connect CowAgent to a Feishu (Lark) custom app for direct and group chats. It uses a WebSocket connection with no public IP, supports one-scan app creation, streaming replies and voice messages.
Integrate CowAgent into Feishu via a custom enterprise app. Supports p2p chat and group chat (@bot), uses WebSocket long connection (no public IP needed), supports streaming typewriter replies and voice messages.
You need to be a Feishu enterprise user with admin privileges.
No need to manually create an app on the Feishu Developer Platform. Start the Cow project, open the web console (default http://127.0.0.1:9899/), go to Channels, click Add Channel, choose Feishu, then under the Scan QR tab click One-click Create Feishu App and scan with the Feishu App to complete app creation and connection automatically.
Requires lark-oapi ≥ 1.5.5.
The created app comes with all required permissions (messaging, card read/write, group events, etc.) and event subscriptions pre-configured — no manual setup on the developer console needed. Currently only the Feishu mainland version is supported (Lark international not yet supported).
When starting from CLI without feishu_app_id configured, the QR code is also printed to the terminal.
Use a detailed card (tool calls, thinking process, elapsed time) for streaming replies; off keeps the plain typewriter card
true
Step 3: Publish the App
After Cow is running, go to Events & Callbacks in the Feishu Developer Platform, choose Long Connection mode and save:
Click Add Event, search for “Receive Message” and choose Receive Message v2.0.
(Optional) Under Callbacks, add Card Action Trigger (card.action.trigger) to enable /tasks scheduler commands; add the Message Recalled (im.message.recalled_v1) event to cancel a task by recalling its message.
Click Version Management & Release, create a version and apply for Production Release. Approve the request in the Feishu client:
✅ remote images are uploaded to Feishu for static and final streaming cards
Detailed card
✅ tool calls, thinking process and elapsed time (controlled by feishu_detailed_card, on by default)
Scheduler controls
✅ /tasks list with enable, disable and delete buttons
Streaming reply requires the cardkit:card:write permission (already enabled by one-click creation) and Feishu client version ≥ 7.20. Older clients see an upgrade prompt; if the permission or version is not satisfied, replies fall back to plain text automatically.
After connection, search for the bot name in Feishu to start a chat.To use in groups, add the bot to a group and @-mention it.Send /tasks in a private chat, or @-mention the bot with /tasks in a group, to manage tasks belonging to that chat.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"CowAgent","description":"CowAgent - AI Super Assistant powered by LLMs, with autonomous task planning, long-term memory, skills system, and multi-channel deployment.","colors":{"primary":"#35A85B","light":"#4ABE6E","dark":"#228547"},"logo":{"light":"https://mintcdn.com/minimalfuture/kFr6XLKqkl319blp/images/logo.jpg?fit=max\u0026auto=format\u0026n=kFr6XLKqkl319blp\u0026q=85\u0026s=71578eed432dfbc8615e84af3b5f2eab","dark":"https://mintcdn.com/minimalfuture/kFr6XLKqkl319blp/images/logo.jpg?fit=max\u0026auto=format\u0026n=kFr6XLKqkl319blp\u0026q=85\u0026s=71578eed432dfbc8615e84af3b5f2eab"},"favicon":"https://mintcdn.com/minimalfuture/kFr6XLKqkl319blp/images/favicon.ico?fit=max\u0026auto=format\u0026n=kFr6XLKqkl319blp\u0026q=85\u0026s=38cedc5ca4e6be81dc0609fe0e9c11ba","appearance":{"default":"light"},"navbar":{"links":[{"href":"https://cowagent.ai/","label":"官网"},{"href":"https://cowagent.ai/download/","label":"下载"},{"href":"https://cowagent.ai/zh/blog/","label":"博客"},{"href":"https://github.com/zhayujie/CowAgent","label":"GitHub"}]},"footer":{"socials":{"github":"https://github.com/zhayujie/CowAgent"}},"styling":{"latex":false},"navigation":{"languages":[{"language":"en","default":true,"navbar":{"links":[{"href":"https://cowagent.ai/","label":"Website"},{"href":"https://cowagent.ai/download/","label":"Download"},{"href":"https://cowagent.ai/blog/","label":"Blog"},{"href":"https://github.com/zhayujie/CowAgent","label":"GitHub"}]},"href":"intro"},{"language":"zh","navbar":{"links":[{"href":"https://cowagent.ai/?lang=zh","label":"官网"},{"href":"https://cowagent.ai/zh/download/","label":"下载"},{"href":"https://cowagent.ai/zh/blog/","label":"博客"},{"href":"https://github.com/zhayujie/CowAgent","label":"GitHub"}]},"href":"zh/intro"},{"language":"ja","navbar":{"links":[{"href":"https://cowagent.ai/","label":"ウェブサイト"},{"href":"https://cowagent.ai/download/","label":"ダウンロード"},{"href":"https://cowagent.ai/blog/","label":"ブログ"},{"href":"https://github.com/zhayujie/CowAgent","label":"GitHub"}]},"href":"ja/intro"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"minimalfuture","hasAudioNarration":false,"actualSubdomain":"minimalfuture","customDomains":["docs.cowagent.ai"],"gitSource":{"type":"github","owner":"zhayujie","repo":"cowagent","deployBranch":"master","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6adf5d9a808b7de5845192f8","collectionId":"df7df4b3-9d27-410a-8fc1-23c56da25e75","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6adf5d9a808b7de5845192f8"},"entitlements":{},"buildId":"6ae091fcd674d5fcdf0ffd0d","clientVersion":"0.0.3971","searchFilterCounts":[{"language":"en","tag":"Releases","count":23},{"language":"en","tag":"Release Notes","count":23},{"language":"ja","tag":"リリース","count":23},{"language":"ja","tag":"リリースノート","count":23},{"language":"zh","tag":"版本","count":23},{"language":"zh","tag":"发布记录","count":23},{"language":"en","tag":"Tools","count":18},{"language":"ja","tag":"ツール","count":18},{"language":"zh","tag":"工具","count":18},{"language":"en","tag":"Models","count":15},{"language":"en","tag":"Model Configuration","count":15},{"language":"ja","tag":"モデル","count":15},{"language":"ja","tag":"モデル設定","count":15},{"language":"zh","tag":"模型","count":15},{"language":"zh","tag":"模型配置","count":15},{"language":"en","tag":"Channels","count":13},{"language":"en","tag":"Platforms","count":13},{"language":"en","tag":"Built-in Tools","count":13},{"language":"ja","tag":"チャネル","count":13},{"language":"ja","tag":"プラットフォーム","count":13},{"language":"ja","tag":"内蔵ツール","count":13},{"language":"zh","tag":"通道","count":13},{"language":"zh","tag":"接入渠道","count":13},{"language":"zh","tag":"内置工具","count":13},{"language":"en","tag":"Skills","count":7},{"language":"ja","tag":"スキル","count":7},{"language":"zh","tag":"技能","count":7},{"language":"en","tag":"CLI","count":6},{"language":"zh","tag":"命令","count":6},{"language":"ja","tag":"CLI","count":5}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"channels/feishu","slug":"/channels/feishu","pageMetadata":{"title":"Feishu (Lark)","description":"Connect CowAgent to a Feishu (Lark) custom app for direct and group chats. It uses a WebSocket connection with no public IP, supports one-scan app creation, streaming replies and voice messages.","href":"/channels/feishu"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Connect CowAgent to a Feishu (Lark) custom app for direct and group chats. It uses a WebSocket connection with no public IP, supports one-scan app creation, streaming replies and voice messages.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,blockquote:`blockquote`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,OptimizedImage,Tab,Table,Tabs}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.blockquote,{children:[`\n`,_jsx(_components.p,{children:`Integrate CowAgent into Feishu via a custom enterprise app. Supports p2p chat and group chat (@bot), uses WebSocket long connection (no public IP needed), supports streaming typewriter replies and voice messages.`}),`\n`]}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`You need to be a Feishu enterprise user with admin privileges.`})}),`\n`,_jsx(Heading,{level:`2`,id:`1-setup`,children:`1. Setup`}),`\n`,_jsx(Heading,{level:`3`,id:`option-1-one-click-scan-to-create-recommended`,children:`Option 1: One-click Scan to Create (Recommended)`}),`\n`,_jsxs(_components.p,{children:[`No need to manually create an app on the Feishu Developer Platform. Start the Cow project, open the web console (default `,_jsx(_components.code,{children:`http://127.0.0.1:9899/`}),`), go to `,_jsx(_components.strong,{children:`Channels`}),`, click `,_jsx(_components.strong,{children:`Add Channel`}),`, choose `,_jsx(_components.strong,{children:`Feishu`}),`, then under the `,_jsx(_components.strong,{children:`Scan QR`}),` tab click `,_jsx(_components.strong,{children:`One-click Create Feishu App`}),` and scan with the `,_jsx(_components.strong,{children:`Feishu App`}),` to complete app creation and connection automatically.`]}),`\n`,_jsx(OptimizedImage,{src:`https://cdn.link-ai.tech/doc/20260505181126.png`,width:`800`}),`\n`,_jsx(Note,{children:_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Requires `,_jsx(_components.code,{children:`lark-oapi`}),` ≥ 1.5.5.`]}),`\n`,_jsx(_components.li,{children:`The created app comes with all required permissions (messaging, card read/write, group events, etc.) and event subscriptions pre-configured — no manual setup on the developer console needed. Currently only the Feishu mainland version is supported (Lark international not yet supported).`}),`\n`]})}),`\n`,_jsxs(_components.p,{children:[`When starting from CLI without `,_jsx(_components.code,{children:`feishu_app_id`}),` configured, the QR code is also printed to the terminal.`]}),`\n`,_jsx(Heading,{level:`3`,id:`option-2-manual-setup`,children:`Option 2: Manual Setup`}),`\n`,_jsx(_components.p,{children:`Manually create a custom app on the Feishu Developer Platform, then connect via Web Console or config file.`}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Step 1: Create the App`})}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Go to `,_jsx(_components.a,{href:`https://open.feishu.cn/app/`,children:`Feishu Developer Platform`}),`, click `,_jsx(_components.strong,{children:`Create Enterprise Custom App`}),`:`]}),`\n`]}),`\n`,_jsx(OptimizedImage,{src:`https://img-1317903499.cos.ap-guangzhou.myqcloud.com/docs/feishu-hosting-create-app.jpg`,width:`500`}),`\n`,_jsxs(_components.ol,{start:`2`,children:[`\n`,_jsxs(_components.li,{children:[`In `,_jsx(_components.strong,{children:`Add App Capabilities`}),`, add the `,_jsx(_components.strong,{children:`Bot`}),` capability:`]}),`\n`]}),`\n`,_jsx(OptimizedImage,{src:`https://img-1317903499.cos.ap-guangzhou.myqcloud.com/docs/feishu-hosting-add-bot.jpg`,width:`800`}),`\n`,_jsxs(_components.ol,{start:`3`,children:[`\n`,_jsxs(_components.li,{children:[`In `,_jsx(_components.strong,{children:`Permission Management`}),`, paste the following permissions and `,_jsx(_components.strong,{children:`Batch Enable`}),` all:`]}),`\n`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`im:message,im:message.group_at_msg,im:message.group_at_msg:readonly,im:message.p2p_msg,im:message.p2p_msg:readonly,im:message:send_as_bot,im:resource,cardkit:card:write`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(OptimizedImage,{src:`https://cdn.link-ai.tech/doc/feishu-hosting-add-auth2.png`,width:`800`}),`\n`,_jsxs(_components.ol,{start:`4`,children:[`\n`,_jsxs(_components.li,{children:[`Get `,_jsx(_components.code,{children:`App ID`}),` and `,_jsx(_components.code,{children:`App Secret`}),` from `,_jsx(_components.strong,{children:`Credentials \u0026 Basic Info`}),`:`]}),`\n`]}),`\n`,_jsx(OptimizedImage,{src:`https://img-1317903499.cos.ap-guangzhou.myqcloud.com/docs/feishu-hosting-appid-secret.jpg`,width:`800`}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Step 2: Connect to CowAgent`})}),`\n`,_jsxs(Tabs,{children:[_jsx(Tab,{title:`Web Console`,id:`web-console`,children:_jsxs(_components.p,{children:[`Open the web console, go to `,_jsx(_components.strong,{children:`Channels`}),`, click `,_jsx(_components.strong,{children:`Add Channel`}),`, choose `,_jsx(_components.strong,{children:`Feishu`}),`, switch to the `,_jsx(_components.strong,{children:`Manual`}),` tab, enter App ID and App Secret, then click connect.`]})}),_jsxs(Tab,{title:`Config File`,id:`config-file`,children:[_jsxs(_components.p,{children:[`Add the following to `,_jsx(_components.code,{children:`config.json`}),` and start the program:`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"channel_type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"feishu\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"feishu_app_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_APP_ID\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"feishu_app_secret\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_APP_SECRET\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"feishu_stream_reply\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Parameter`}),_jsx(_components.th,{children:`Description`}),_jsx(_components.th,{children:`Default`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`feishu_app_id`})}),_jsx(_components.td,{children:`Feishu app App ID`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`-`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`feishu_app_secret`})}),_jsx(_components.td,{children:`Feishu app App Secret`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`-`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`feishu_stream_reply`})}),_jsx(_components.td,{children:`Enable streaming typewriter reply`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`true`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`feishu_detailed_card`})}),_jsx(_components.td,{children:`Use a detailed card (tool calls, thinking process, elapsed time) for streaming replies; off keeps the plain typewriter card`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`true`})})]})]})]})]})]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Step 3: Publish the App`})}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`After Cow is running, go to `,_jsx(_components.strong,{children:`Events \u0026 Callbacks`}),` in the Feishu Developer Platform, choose `,_jsx(_components.strong,{children:`Long Connection`}),` mode and save:`]}),`\n`]}),`\n`,_jsx(OptimizedImage,{src:`https://cdn.link-ai.tech/doc/202601311731183.png`,width:`600`}),`\n`,_jsxs(_components.ol,{start:`2`,children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`Add Event`}),`, search for “Receive Message” and choose `,_jsx(_components.strong,{children:`Receive Message v2.0`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`(Optional) Under `,_jsx(_components.strong,{children:`Callbacks`}),`, add `,_jsx(_components.strong,{children:`Card Action Trigger`}),` (`,_jsx(_components.code,{children:`card.action.trigger`}),`) to enable `,_jsx(_components.code,{children:`/tasks`}),` scheduler commands; add the `,_jsx(_components.strong,{children:`Message Recalled`}),` (`,_jsx(_components.code,{children:`im.message.recalled_v1`}),`) event to cancel a task by recalling its message.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`Version Management \u0026 Release`}),`, create a version and apply for `,_jsx(_components.strong,{children:`Production Release`}),`. Approve the request in the Feishu client:`]}),`\n`]}),`\n`]}),`\n`,_jsx(OptimizedImage,{src:`https://cdn.link-ai.tech/doc/202601311807356.png`,width:`600`}),`\n`,_jsx(Heading,{level:`2`,id:`2-features`,children:`2. Features`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Feature`}),_jsx(_components.th,{children:`Status`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`P2P chat`}),_jsx(_components.td,{children:`✅`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Group chat (@bot)`}),_jsx(_components.td,{children:`✅`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Text messages`}),_jsx(_components.td,{children:`✅ send/receive`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Image messages`}),_jsx(_components.td,{children:`✅ send/receive`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Voice messages`}),_jsx(_components.td,{children:`✅ send/receive`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Quoted replies`}),_jsx(_components.td,{children:`✅ quoted text and rich-post context`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Streaming reply`}),_jsx(_components.td,{children:`✅ (powered by Feishu cardkit streaming card)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Markdown card`}),_jsx(_components.td,{children:`✅ remote images are uploaded to Feishu for static and final streaming cards`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Detailed card`}),_jsxs(_components.td,{children:[`✅ tool calls, thinking process and elapsed time (controlled by `,_jsx(_components.code,{children:`feishu_detailed_card`}),`, on by default)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Scheduler controls`}),_jsxs(_components.td,{children:[`✅ `,_jsx(_components.code,{children:`/tasks`}),` list with enable, disable and delete buttons`]})]})]})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Streaming reply requires the `,_jsx(_components.code,{children:`cardkit:card:write`}),` permission (already enabled by one-click creation) and Feishu client version ≥ 7.20. Older clients see an upgrade prompt; if the permission or version is not satisfied, replies fall back to plain text automatically.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`3-usage`,children:`3. Usage`}),`\n`,_jsx(_components.p,{children:`After connection, search for the bot name in Feishu to start a chat.`}),`\n`,_jsx(_components.p,{children:`To use in groups, add the bot to a group and @-mention it.`}),`\n`,_jsxs(_components.p,{children:[`Send `,_jsx(_components.code,{children:`/tasks`}),` in a private chat, or @-mention the bot with `,_jsx(_components.code,{children:`/tasks`}),` in a group, to manage tasks belonging to that chat.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Feishu (Lark)","description":"Connect CowAgent to a Feishu (Lark) custom app for direct and group chats. It uses a WebSocket connection with no public IP, supports one-scan app creation, streaming replies and voice messages.","href":"/channels/feishu"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"1. Setup","slug":"1-setup","depth":2,"children":[{"title":"Option 1: One-click Scan to Create (Recommended)","slug":"option-1-one-click-scan-to-create-recommended","depth":3,"children":[]},{"title":"Option 2: Manual Setup","slug":"option-2-manual-setup","depth":3,"children":[]}]},{"title":"2. Features","slug":"2-features","depth":2,"children":[]},{"title":"3. Usage","slug":"3-usage","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"minimalfuture","siteName":"CowAgent","title":"Feishu (Lark) - CowAgent","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/channels/feishu","matchLevel":0},"zh":{"href":"/zh/channels/feishu","matchLevel":1},"ja":{"href":"/ja/channels/feishu","matchLevel":1}}},"lastModified":"2026-10-14T09:36:28.128Z","originalFileLocation":"channels/feishu.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Connect CowAgent to a Feishu (Lark) custom app for direct and group chats. It uses a WebSocket connection with no public IP, supports one-scan app creation, streaming replies and voice messages.\">\u003cmeta data-mint-head name=\"application-name\" content=\"CowAgent\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/minimalfuture/gk-TAsZO3835JLt2/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/minimalfuture/gk-TAsZO3835JLt2/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/minimalfuture/gk-TAsZO3835JLt2/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/minimalfuture/gk-TAsZO3835JLt2/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/minimalfuture/gk-TAsZO3835JLt2/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/minimalfuture/gk-TAsZO3835JLt2/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/minimalfuture/gk-TAsZO3835JLt2/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/minimalfuture/gk-TAsZO3835JLt2/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/minimalfuture/gk-TAsZO3835JLt2/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Feishu (Lark) - CowAgent\">\u003cmeta data-mint-head property=\"og:description\" content=\"Connect CowAgent to a Feishu (Lark) custom app for direct and group chats. It uses a WebSocket connection with no public IP, supports one-scan app creation, streaming replies and voice messages.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"CowAgent\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.cowagent.ai/channels/feishu\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://minimalfuture.mintlify.app/_mintlify/api/og/v2?division=Platforms\u0026amp;title=Feishu+%28Lark%29\u0026amp;description=Connect+CowAgent+to+a+Feishu+%28Lark%29+custom+app+for+direct+and+group+chats.+It+uses+a+WebSocket+connection+with+no+public+IP%2C+supports+one-scan+app+creation%2C+str\u0026amp;theme=0a7de74e5357106a73c9a24a\u0026amp;signature=1d1eefadeace592895b71e75dcc2f2fb18c6758e38301339ee366425c3bc6449\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Feishu (Lark) - CowAgent\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Connect CowAgent to a Feishu (Lark) custom app for direct and group chats. It uses a WebSocket connection with no public IP, supports one-scan app creation, streaming replies and voice messages.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://minimalfuture.mintlify.app/_mintlify/api/og/v2?division=Platforms\u0026amp;title=Feishu+%28Lark%29\u0026amp;description=Connect+CowAgent+to+a+Feishu+%28Lark%29+custom+app+for+direct+and+group+chats.+It+uses+a+WebSocket+connection+with+no+public+IP%2C+supports+one-scan+app+creation%2C+str\u0026amp;theme=0a7de74e5357106a73c9a24a\u0026amp;signature=1d1eefadeace592895b71e75dcc2f2fb18c6758e38301339ee366425c3bc6449\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/minimalfuture/gk-TAsZO3835JLt2/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"CowAgent\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#35A85B\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.cowagent.ai/channels/feishu\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/channels/feishu.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.cowagent.ai/channels/feishu\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://docs.cowagent.ai/zh/channels/feishu\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://docs.cowagent.ai/ja/channels/feishu\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.cowagent.ai/channels/feishu\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.cowagent.ai/#organization\",\"name\":\"CowAgent\",\"url\":\"https://docs.cowagent.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/minimalfuture/kFr6XLKqkl319blp/images/logo.jpg?fit=max\u0026auto=format\u0026n=kFr6XLKqkl319blp\u0026q=85\u0026s=71578eed432dfbc8615e84af3b5f2eab\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.cowagent.ai#website\",\"name\":\"CowAgent\",\"url\":\"https://docs.cowagent.ai\",\"publisher\":{\"@id\":\"https://docs.cowagent.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.cowagent.ai/channels/feishu#webpage\",\"url\":\"https://docs.cowagent.ai/channels/feishu\",\"name\":\"Feishu (Lark)\",\"description\":\"Connect CowAgent to a Feishu (Lark) custom app for direct and group chats. It uses a WebSocket connection with no public IP, supports one-scan app creation, streaming replies and voice messages.\",\"dateModified\":\"2026-10-14T09:36:28.128Z\",\"isPartOf\":{\"@id\":\"https://docs.cowagent.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.cowagent.ai/channels/feishu#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.cowagent.ai/channels/feishu#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Platforms\",\"item\":\"https://docs.cowagent.ai/channels/index\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Feishu (Lark)\",\"item\":\"https://docs.cowagent.ai/channels/feishu\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.cowagent.ai/channels/feishu#article\",\"headline\":\"Feishu (Lark)\",\"name\":\"Feishu (Lark)\",\"description\":\"Connect CowAgent to a Feishu (Lark) custom app for direct and group chats. It uses a WebSocket connection with no public IP, supports one-scan app creation, streaming replies and voice messages.\",\"url\":\"https://docs.cowagent.ai/channels/feishu\",\"mainEntityOfPage\":{\"@id\":\"https://docs.cowagent.ai/channels/feishu#webpage\"},\"dateModified\":\"2026-10-14T09:36:28.128Z\",\"publisher\":{\"@id\":\"https://docs.cowagent.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.cowagent.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"CowAgent\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"CowAgent","nav":{"global":null,"languages":[{"language":"en","default":true,"navbar":{"links":[{"href":"https://cowagent.ai/","label":"Website"},{"href":"https://cowagent.ai/download/","label":"Download"},{"href":"https://cowagent.ai/blog/","label":"Blog"},{"href":"https://github.com/zhayujie/CowAgent","label":"GitHub"}]},"tabs":[{"tab":"Introduction","pages":[{"title":"Introduction","href":"/intro"}]},{"tab":"Get Started","pages":[{"title":"Get Started","href":"/guide/quick-start"}]},{"tab":"Models","pages":[{"title":"Models","href":"/models"}]},{"tab":"Tools","pages":[{"title":"Tools","href":"/tools"}]},{"tab":"Skills","pages":[{"title":"Skills","href":"/skills"}]},{"tab":"Memory","pages":[{"title":"Memory","href":"/memory"}]},{"tab":"Knowledge","pages":[{"title":"Knowledge","href":"/knowledge"}]},{"tab":"Channels","groups":[{"group":"Platforms","pages":[{"title":"Channels Overview","href":"/channels"},{"title":"Web Console","href":"/channels/web"},{"title":"Telegram","href":"/channels/telegram"},{"title":"Slack","href":"/channels/slack"},{"title":"Discord","href":"/channels/discord"},{"title":"WeChat","description":"Connect CowAgent to personal WeChat through the official API. Log in by scanning a QR code to chat privately with text, images, voice, files and video, without affecting your account.","href":"/channels/weixin"},{"title":"Feishu (Lark)","href":"/channels/feishu"},{"title":"DingTalk","description":"Connect CowAgent to DingTalk: create an app with the bot capability on the DingTalk Open Platform, add the credentials, and chat in direct and group chats, with optional streaming cards.","href":"/channels/dingtalk"},{"title":"WeCom Bot","href":"/channels/wecom-bot"},{"title":"QQ Bot","href":"/channels/qq"},{"title":"WeCom","href":"/channels/wecom"},{"title":"WeChat Customer Service","href":"/channels/wechat-kf"},{"title":"WeChat Official Account","href":"/channels/wechatmp"}]}]},{"tab":"CLI","pages":[{"title":"CLI","href":"/cli"}]},{"tab":"Multi-Agent","pages":[{"title":"Multi-Agent","href":"/multi-agent/team"}]},{"tab":"Extensions","pages":[{"title":"Extensions","href":"/extensions/chat-api"}]},{"tab":"Releases","pages":[{"title":"Releases","href":"/releases/overview"}]}]},{"language":"zh","navbar":{"links":[{"href":"https://cowagent.ai/?lang=zh","label":"官网"},{"href":"https://cowagent.ai/zh/download/","label":"下载"},{"href":"https://cowagent.ai/zh/blog/","label":"博客"},{"href":"https://github.com/zhayujie/CowAgent","label":"GitHub"}]},"pages":[{"title":"zh","href":"/zh/channels/feishu"}]},{"language":"ja","navbar":{"links":[{"href":"https://cowagent.ai/","label":"ウェブサイト"},{"href":"https://cowagent.ai/download/","label":"ダウンロード"},{"href":"https://cowagent.ai/blog/","label":"ブログ"},{"href":"https://github.com/zhayujie/CowAgent","label":"GitHub"}]},"pages":[{"title":"ja","href":"/ja/channels/feishu"}]}]},"title":"Feishu (Lark) - CowAgent","buildId":"dpl_DFJrtvUi8HS5F9nkooKuDJsuD5BM","deploymentId":"dpl_DFJrtvUi8HS5F9nkooKuDJsuD5BM","dynamics":["a74be98ba7"],"chunks":["zoom-image-lightbox-BZxD9MAj.js","lightbox-handle-r17bVUz3.js"]}