feishu-create-openclaw-app
by @diluke1600
Automates creating and configuring a Feishu enterprise app for OpenClaw, including login, app setup, permission import, and credential extraction via browser...
clawhub install feishu-create-openclaw-app📖 About This Skill
Feishu App Creator Skill
Automates the creation of a Feishu (Lark) enterprise self-built application for OpenClaw integration via browser automation.
When to Use
Important: Personal Account Limitations
Complete Workflow
Step 1: Open Feishu Developer Console
browser action=open url=https://open.feishu.cn/app
Step 2: Check Login Status
Take snapshot and check for "创建企业自建应用" button. If visible, user is logged in.
Step 3: Create App
Click "创建企业自建应用" button
Wait for dialog to open.
Fill form using real user input simulation:
// Click name input, type app name
browser action=act kind=click ref=
browser action=act kind=type ref= text="openclaw"// Click description textarea, type description
browser action=act kind=click ref=
browser action=act kind=type ref= text="OpenClaw integration app"
// Click an icon (RobotFilled)
browser action=act kind=click ref=
// Click Create button
browser action=act kind=click ref=
Step 4: Navigate to Permission Management
After app created, click "权限管理" in sidebar.
Step 5: Import Permissions
{
"scopes": {
"tenant": [
"aily:file:read",
"aily:file:write",
"application:application.app_message_stats.overview:readonly",
"application:application:self_manage",
"application:bot.menu:write",
"cardkit:card:write",
"contact:user.employee_id:readonly",
"corehr:file:download",
"docs:document.content:read",
"event:ip_list",
"im:chat",
"im:chat.access_event.bot_p2p_chat:read",
"im:chat.members:bot_access",
"im:message",
"im:message.group_at_msg:readonly",
"im:message.group_msg",
"im:message.p2p_msg:readonly",
"im:message:readonly",
"im:message:send_as_bot",
"im:resource",
"sheets:spreadsheet",
"wiki:wiki:readonly"
],
"user": [
"aily:file:read",
"aily:file:write",
"im:chat.access_event.bot_p2p_chat:read"
]
}
}
Import Process:
1. Click "批量导入/导出权限" button
2. Clear editor using Ctrl+A then fill:
browser action=act kind=evaluate fn="() => {
const ta = document.querySelector('textarea[aria-label*=\"Editor\"]');
if(ta) {
ta.value = ''; // Clear first
const json = 'YOUR_JSON_HERE';
ta.value = json;
ta.dispatchEvent(new Event('input', {bubbles:true, composed:true}));
ta.dispatchEvent(new Event('change', {bubbles:true, composed:true}));
return 'done:' + ta.value.length;
}
return 'err';
}"
3. Click "下一步,确认新增权限"
4. Review permissions dialog: - Shows "以下权限已申请,本次不会重复申请 (X)" for existing permissions - Shows new permissions to be added
5. Click "申请开通"
Step 6: Extract Credentials
Navigate to "凭证与基础信息" page.
cli_xxxxxxxxxxxx)Key Points
Form Elements
input[type="text"] in dialog - use type actiontextarea in dialog - use type action[aria-label*="Filled"] icons in dialog - click to selectPermission Editor
textarea[aria-label*="Editor"] - can use direct value assignmentta.value = '' before fillinginput and change eventsAccount Type Detection
Output
After successful creation:
✅ 应用创建成功!应用名称:openclaw
App ID: cli_xxxxxxxxxxxx
App Secret:
状态:待上线
下一步:
1. 复制 App Secret(立即保存,只显示一次)
2. 在 OpenClaw 配置中填入 App ID 和 App Secret
3. 创建应用版本并发布