Skip to content

Commit 1479034

Browse files
committed
merge f-warroom
2 parents 954c345 + 1f00615 commit 1479034

6 files changed

Lines changed: 450 additions & 326 deletions

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,9 @@ date: "2023-12-18T10:00:00+08:00"
6464
请你严格依照 @polish_instructions.md 的要求,对文档 @your_doc_name 进行润色。
6565
```
6666

67+
<<<<<<< HEAD
6768
完成润色后,可在 VSCode / Cursor 中打开文档,然后在文档 tab 页中右击,点击 `格式化文档`
6869

70+
=======
71+
完成润色后,可在 VSCode / Cursor 中打开文档,然后在文档 tab 页中右击,点击 `格式化文档`
72+
>>>>>>> f-warroom
Lines changed: 87 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -1,136 +1,140 @@
11
---
2-
title: Contributing to our documentation — Meilisearch documentation
3-
description: The Meilisearch documentation is open-source. Learn how to help make it even better.
4-
sidebarDepth: 3
2+
title: "Feishu/Lark Integration"
3+
description: "By integrating a custom Feishu/Lark application, you can receive and respond to alerts within Feishu/Lark."
4+
date: "2025-05-19T10:00:00+08:00"
5+
url: "https://docs.flashcat.cloud/en/flashduty/lark-integration-guide?nav=01JCQ7A4N4WRWNXW8EWEHXCMF5"
56
---
7+
By integrating a custom Feishu/Lark application, you can receive and respond to alerts within Feishu/Lark.
68

7-
Integrate with Feishu(Lark) custom application to receive and respond to alerts within Feishu/Lark.
8-
9-
<!--
10-
## Video Tutorial
11-
---
12-
<Video src="https://download.flashcat.cloud/flashduty/video/feishu.mp4"></Video>
13-
-->
14-
15-
## I. Create Feishu/Lark Application
9+
## 1. Create Feishu/Lark application
1610
---
1711

18-
### 1. Create Custom Application
12+
### 1. Create a custom application
1913

20-
Visit [Feishu/Lark Developer Console](https://open.feishu.cn/app) to create an internal custom application. (For details, see Feishu/Lark development documentation - [Create Enterprise Custom Application](https://open.feishu.cn/document/uYjL24iN/uMTMuMTMuMTM/development-guide/step1#132c1aac))
14+
Visit [Feishu/Lark Developer Console](https://open.feishu.cn/app) and create an internal custom application. You can use the [official Flashduty icon](https://download.flashcat.cloud/flashcat_logo_circular.png) for the application icon.
2115

22-
<img src="https://download.flashcat.cloud/flashduty/doc/en/feishu/feishu-1.png" alt="drawing" width="400"/>
16+
For details, see the Feishu/Lark development documentation [Create an internal custom application](https://open.feishu.cn/document/uYjL24iN/uMTMuMTMuMTM/development-guide/step1#132c1aac).
2317

24-
You can use the [Flashduty official icon](https://download.flashcat.cloud/flashcat_logo_circular.png) as the application icon.
18+
![2025-09-17-19-20-33](https://docs-cdn.flashcat.cloud/images/png/9af11beec76ef03b935e5ba71ac2f5f5.png)
19+
### 2. Copy credential information
2520

26-
### 2. Copy Credentials
21+
Go to the **Credentials and Basic Information** page and copy the `App ID` and `App Secret` for later use.
2722

28-
Go to the **Credentials & Basic Info** page, copy the `App ID` and `App Secret` for later use.
2923

30-
<img src="https://download.flashcat.cloud/flashduty/doc/en/feishu/feishu-2.png" alt="drawing" width="800"/>
24+
![2025-09-17-19-24-11](https://docs-cdn.flashcat.cloud/images/png/9b72a772eaa94a7115e8568e9ae7b496.png)
3125

32-
### 3. Copy Event Callback Token Information
26+
### 3. Copy the event callback Token information
3327

34-
Go to **Development Configuration - Events & Callbacks - Encryption Configuration** page, copy the `Encrypt Key` (recommended for better security) and `Verification Token` for later use.
28+
Go to Development Configuration Events & Callbacks **Encryption Strategy** page, generate and copy the `Encrypt Key` (recommended for better security) and `Verification Token` for later use.
3529

36-
<img src="https://download.flashcat.cloud/flashduty/doc/en/feishu/feishu-2.png" alt="drawing" width="800"/>
30+
![2025-09-17-19-27-24](https://docs-cdn.flashcat.cloud/images/png/48d8ef62cef639cb433078c878c3a4a0.png)
3731

38-
## II. Add Feishu/Lark Integration
32+
## 2. Add Feishu/Lark integration
3933
---
4034

41-
Return to Flashduty **Integration Center** page, select **Instant Messaging => Feishu/Lark**, fill in the `Name` and the previously copied `App ID`, `App Secret`, `Verification Token`, and `Encrypt Key`, then click save to create.
35+
Return to the Flashduty **Integration Center** page, select IM → **Feishu/Lark**, fill in the `Name` and the `App ID`, `App Secret`, `Verification Token`, and `Encrypt Key` copied in the previous step, then click **Save** to complete the creation.
4236

43-
<img src="https://download.flashcat.cloud/flashduty/doc/en/feishu/feishu-4.png" alt="drawing" width="800"/>
37+
After successful creation, you will see the added Feishu/Lark integration in the list. Click its name to enter the details page, where you can view the **Web Configuration** address, **Redirect URL**, and **Message Card Request URL**, which will be used in subsequent steps.
4438

45-
After creation, you'll see the newly added Feishu/Lark integration in the list. Click on the name to enter details, where you'll find the **Web Configuration** URL, **Redirect URL**, and **Message Card Request URL** information, which will be used in later steps.
39+
![2025-09-17-19-32-56](https://docs-cdn.flashcat.cloud/images/png/b4bfa3d7fdf1af9b8006be168d454700.png)
4640

47-
<img src="https://download.flashcat.cloud/flashduty/doc/en/feishu/feishu-5.png" alt="drawing" width="800"/>
48-
49-
## III. Configure Feishu/Lark Application
41+
## 3. Configure Feishu/Lark application
5042
---
5143

52-
### 1. Enable and Configure Application Capabilities
53-
54-
1). Return to the Feishu/Lark Developer Console, enter the newly created application, go to **Add Capabilities - Add by Capability** page, and enable both **Web Application** and **Bot** capabilities.
44+
### 1. Enable and configure application capabilities
5545

56-
<img src="https://download.flashcat.cloud/flashduty/doc/en/feishu/feishu-6.png" alt="drawing" width="800"/>
46+
1. Return to the Feishu/Lark Developer Console, enter the created Feishu/Lark application, go to Add Application Capabilities → **Add by Capability** page, and enable both **Web Application** and **Bot** capabilities.
5747

58-
2). Go to **Web Application** page, configure both `Desktop Homepage` and `Mobile Homepage` with the **Web Configuration** URL from the integration details.
48+
![2025-09-17-19-42-32](https://docs-cdn.flashcat.cloud/images/png/b12ddbeed2b8d7f508eccc1078c2c12c.png)
5949

60-
<img src="https://download.flashcat.cloud/flashduty/doc/en/feishu/feishu-7.png" alt="drawing" width="800"/>
50+
2. Go to the **Web app** page and configure the `Desktop Homepage` and `Mobile Homepage`, both using the **Web configuration** address from the integration details.
6151

62-
(See Feishu/Lark development documentation - [Configure Application Homepage URL](https://open.feishu.cn/document/uYjL24iN/uMTMuMTMuMTM/development-guide/step1#8366b844))
52+
For details, see the Feishu/Lark development documentation [Configure application homepage address](https://open.feishu.cn/document/uYjL24iN/uMTMuMTMuMTM/development-guide/step1#8366b844).
6353

64-
3). Go to **Event Callbacks - Callback Configuration** page, configure the `Message Card Request URL` (using the **Message Card Request URL** from integration details) and add the callback.
54+
![2025-09-17-19-49-19](https://docs-cdn.flashcat.cloud/images/png/393e7629de652d1793b69af7d4f3831c.png)
6555

66-
<img src="https://download.flashcat.cloud/flashduty/doc/en/feishu/feishu-8.png" alt="drawing" width="800"/>
67-
<img src="https://download.flashcat.cloud/flashduty/doc/en/feishu/feishu-9.png" alt="drawing" width="800"/>
56+
3. Go to Event Callbacks → **Callback Configuration** page, configure the `Subscription Method` (using the **Message Card Request URL** from the integration details). Then, subscribe to the following two callback events:
6857

69-
### 2. Add Redirect URL to Feishu/Lark Application
58+
- `card.action.trigger`
59+
- `card.action.trigger_v1`
7060

71-
Go to **Security Settings** page, configure the `Redirect URL` using the **Redirect URL** from integration details.
61+
![2025-09-17-19-53-14](https://docs-cdn.flashcat.cloud/images/png/c42542dc49930c2e20f5921749bf3565.png)
7262

73-
<img src="https://download.flashcat.cloud/flashduty/doc/en/feishu/feishu-10.png" alt="drawing" width="800"/>
63+
### 2. Add redirect URL to Feishu/Lark application
7464

75-
(See Feishu/Lark development documentation - [Configure Redirect URL](https://open.feishu.cn/document/uYjL24iN/uYjN3QjL2YzN04iN2cDN?lang=zh-CN#c863e533))
65+
Go to the **Security Settings** page and configure the `Redirect URL` using the **Redirect URL** from the integration details.
7666

77-
### 3. Request Application Permissions
67+
For details, see the Feishu/Lark development documentation [Configure redirect URL](https://open.feishu.cn/document/uYjL24iN/uYjN3QjL2YzN04iN2cDN?lang=zh-CN#c863e533).
7868

79-
Go to **Permission Management** page, request `im:chat` and `im:message` permissions. These permissions will allow the application to access its group chat information and send messages to groups or individuals.
69+
![2025-09-17-19-55-04](https://docs-cdn.flashcat.cloud/images/png/6f97810d9542514c40c276588179e04f.png)
8070

81-
<img src="https://download.flashcat.cloud/flashduty/doc/en/feishu/feishu-11.png" alt="drawing" width="800"/>
71+
### 3. Apply for application permissions
8272

83-
## IV. Application Publication and Usage
84-
---
85-
86-
After completing the above steps, proceed with application publication and usage. The application can be used after administrator approval.
87-
Note: **Available Range** needs special configuration, recommended for **All Employees**.
88-
89-
<img src="https://download.flashcat.cloud/flashduty/doc/en/feishu/feishu-12.png" alt="drawing" width="800"/>
73+
Go to the **Permission Management** page and apply for the following permissions for the group application created in the previous steps:
9074

91-
See Feishu/Lark development documentation - [Application Publication and Usage](https://open.feishu.cn/document/uYjL24iN/uMTMuMTMuMTM/development-guide/step-4).
75+
- `im:chat`: Get and update group information
76+
- `im:message`: Get and send single chat and group messages
77+
- `contact:user.id:readonly`: Get user ID by phone number or email (for configuring war rooms)<span id="war-room-scope"></span>
9278

93-
Once published, you can access the application via mobile/PC client. First-time access requires login and account association (Feishu/Lark 《-》 Flashduty), subsequent uses will be login-free.
79+
![2025-09-17-19-59-38](https://docs-cdn.flashcat.cloud/images/png/61cb9fbc295e94b4d9acd7e44ac75e13.png)
9480

95-
1. Mobile: Access the web application through Feishu/Lark > Workspace > Search application name > Open application.
96-
2. PC: Access the web application through Feishu/Lark > Workspace > Search application name > Open application.
97-
98-
## V. Common Issues
81+
## 4. Application release
9982
---
10083

101-
1. **Unable to deliver messages to individuals**, operation record shows `Application Not Associated`?
84+
After completing all the above configurations, please release the application. It can be used after administrator approval.
10285

103-
- Go to Feishu/Lark > Workspace > Search application name > Open application, complete one login and account association (Feishu/Lark 《-》 Flashduty) for the system to obtain user identity for message pushing
86+
For details, see the Feishu/Lark development documentation [Application release and usage](https://open.feishu.cn/document/uYjL24iN/uMTMuMTMuMTM/development-guide/step-4).
10487

105-
2. **Message card buttons not working or showing errors**?
88+
> To ensure that everyone can use the application, adjust the application **visibility** to all employees before releasing the application.
10689
107-
- Ensure account association is completed. Go to Feishu/Lark > Workspace > Search application name > Open application, complete one login and account association (Feishu/Lark 《-》 Flashduty). If already logged in, try clicking the top-right menu to switch accounts and re-login to bind the account
108-
- Ensure sufficient licenses are purchased. You can check license usage in Console > Billing Center
90+
![2025-09-17-20-01-46](https://docs-cdn.flashcat.cloud/images/png/af3d458ed4c1a3e3346c91dc6a8fa667.png)
10991

110-
3. **Empty Feishu/Lark group chat list in escalation rule**?
11192

112-
- Go to Feishu/Lark, select group chat conversation, add the created Flashduty bot as shown below:
113-
- Return to the escalation rule configuration page, refresh and reselect the group chat list
93+
After the application is released, you can access it via **mobile** or **PC**. The first access requires login to link your Feishu/Lark and Flashduty accounts. Subsequent access will be login-free.
11494

115-
<img alt="drawing" width="800" src="https://download.flashcat.cloud/flashduty/doc/en/feishu/feishu-13.png" />
116-
<img src="https://download.flashcat.cloud/flashduty/doc/en/feishu/feishu-14.png" alt="drawing" width="800"/>
95+
- **Mobile**: Access via Feishu/Lark → Workplace → Search for application name → **Open Application** to use the web application.
96+
- **PC**: Access via Feishu/Lark → Workplace → Search for application name → **Open Application** to use the web application.
11797

118-
4. **Feishu/Lark Custom Application API Limits:** [Feishu/Lark Documentation](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/platform-updates-/custom-app-api-call-limit)
98+
![2025-09-17-20-05-01](https://docs-cdn.flashcat.cloud/images/png/1da64327149790ceb45ff3b66476be7f.png)
11999

120-
**Call Volume Limits:**
100+
## 5. Configure war room
121101

122-
| Feishu/Lark Version | Total Calls/Month | Reset Time |
123-
| :----------: | :--: | :----: |
124-
|Basic Free Version|10,000 calls|1st of each month|
125-
|Other Versions|Unlimited|-|
102+
> Ensure the application has been authorized with the [additional permissions](#war-room-scope) required for the war room feature.
126103
127-
**Frequency Control Limits:**
104+
After completing the previous steps, in the **Enhanced Features** module of the Flashduty integration configuration page, check **Enable War Room** to enable this feature without additional configuration.
128105

129-
| Scenario | Limit |
130-
| :----------: | :--: |
131-
|All APIs|Maximum 50 calls/second per application|
132-
|Message Sending API|Maximum 1000 calls/minute per application|
133-
|Group Bot Webhook|Maximum 100 calls/minute|
134-
|Sending messages to the same user or group|Maximum 5 calls/second|
106+
## 6. FAQ
107+
---
135108

136-
**Note:** Messages cannot be pushed normally when exceeding limits, please use notification channels reasonably
109+
1. **Messages cannot be delivered to individuals, and the operation log shows `app not linked`?**
110+
- Go to Feishu/Lark → Workplace → Search for application name → **Open Application**, complete login once to link your Feishu/Lark and Flashduty accounts, so the system can obtain user identity for message push.
111+
2. **Message card buttons are unresponsive or show errors?**
112+
- Ensure the account has been linked. You can go to Feishu/Lark → Workplace → Search for application name → **Open Application** to complete login once. If you have already logged in, try clicking the menu in the upper right corner, switch accounts, and log in again to bind the account.
113+
- Ensure you have purchased sufficient licenses. You can check the license usage in Console → **Billing Center**.
114+
3. **The Feishu/Lark group chat list in escalation rules is empty?**
115+
- Go to Feishu/Lark and add the created Flashduty bot to the specified group chat.
116+
- Return to the escalation rule configuration page, refresh and reselect the group chat list.
117+
118+
![2025-09-17-20-07-23](https://docs-cdn.flashcat.cloud/images/png/27a5422ec27b5f63fb6dee81b3d50510.png)
119+
120+
4. **Feishu/Lark custom application API limits?**
121+
- **Call volume limits:**
122+
123+
| **Feishu/Lark Version** | **Total Calls/Month** | **Refresh Time** |
124+
| :---: | :---: | :---: |
125+
| Basic Free | 10,000 | 1st of each month |
126+
| Other Versions | Unlimited | - |
127+
128+
- **Rate limits:**
129+
130+
| **Scenario** | **Limit** |
131+
| :---: | :--- |
132+
| All APIs | Max 50 calls/second per app |
133+
| Send message APIs | Max 1000 calls/minute per app |
134+
| Group bot webhook | Max 100 calls/minute |
135+
| Send to same user or group | Max 5 calls/second |
136+
137+
> After exceeding API call limits, the Feishu/Lark application will not be able to push messages normally. It is recommended to use notification channels reasonably. See [Feishu/Lark official documentation](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/platform-updates-/custom-app-api-call-limit) for details.
138+
5. **Why is the war room feature not working as expected?**
139+
- Please check again whether you have configured the [required permissions](#war-room-scope) for the war room feature.
140+
- Please refer to the **FAQ** section of the Flashduty [War Room Introduction](https://docs.flashcat.cloud/en/flashduty/war-room?nav=01JCQ7A4N4WRWNXW8EWEHXCMF5).

0 commit comments

Comments
 (0)