|
1 | 1 | --- |
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" |
5 | 6 | --- |
| 7 | +By integrating a custom Feishu/Lark application, you can receive and respond to alerts within Feishu/Lark. |
6 | 8 |
|
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 |
16 | 10 | --- |
17 | 11 |
|
18 | | -### 1. Create Custom Application |
| 12 | +### 1. Create a custom application |
19 | 13 |
|
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. |
21 | 15 |
|
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). |
23 | 17 |
|
24 | | -You can use the [Flashduty official icon](https://download.flashcat.cloud/flashcat_logo_circular.png) as the application icon. |
| 18 | + |
| 19 | +### 2. Copy credential information |
25 | 20 |
|
26 | | -### 2. Copy Credentials |
| 21 | +Go to the **Credentials and Basic Information** page and copy the `App ID` and `App Secret` for later use. |
27 | 22 |
|
28 | | -Go to the **Credentials & Basic Info** page, copy the `App ID` and `App Secret` for later use. |
29 | 23 |
|
30 | | -<img src="https://download.flashcat.cloud/flashduty/doc/en/feishu/feishu-2.png" alt="drawing" width="800"/> |
| 24 | + |
31 | 25 |
|
32 | | -### 3. Copy Event Callback Token Information |
| 26 | +### 3. Copy the event callback Token information |
33 | 27 |
|
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. |
35 | 29 |
|
36 | | -<img src="https://download.flashcat.cloud/flashduty/doc/en/feishu/feishu-2.png" alt="drawing" width="800"/> |
| 30 | + |
37 | 31 |
|
38 | | -## II. Add Feishu/Lark Integration |
| 32 | +## 2. Add Feishu/Lark integration |
39 | 33 | --- |
40 | 34 |
|
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. |
42 | 36 |
|
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. |
44 | 38 |
|
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 | + |
46 | 40 |
|
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 |
50 | 42 | --- |
51 | 43 |
|
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 |
55 | 45 |
|
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. |
57 | 47 |
|
58 | | -2). Go to **Web Application** page, configure both `Desktop Homepage` and `Mobile Homepage` with the **Web Configuration** URL from the integration details. |
| 48 | + |
59 | 49 |
|
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. |
61 | 51 |
|
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). |
63 | 53 |
|
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 | + |
65 | 55 |
|
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: |
68 | 57 |
|
69 | | -### 2. Add Redirect URL to Feishu/Lark Application |
| 58 | +- `card.action.trigger` |
| 59 | +- `card.action.trigger_v1` |
70 | 60 |
|
71 | | -Go to **Security Settings** page, configure the `Redirect URL` using the **Redirect URL** from integration details. |
| 61 | + |
72 | 62 |
|
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 |
74 | 64 |
|
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. |
76 | 66 |
|
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). |
78 | 68 |
|
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 | + |
80 | 70 |
|
81 | | -<img src="https://download.flashcat.cloud/flashduty/doc/en/feishu/feishu-11.png" alt="drawing" width="800"/> |
| 71 | +### 3. Apply for application permissions |
82 | 72 |
|
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: |
90 | 74 |
|
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> |
92 | 78 |
|
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 | + |
94 | 80 |
|
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 |
99 | 82 | --- |
100 | 83 |
|
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. |
102 | 85 |
|
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). |
104 | 87 |
|
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. |
106 | 89 |
|
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 | + |
109 | 91 |
|
110 | | -3. **Empty Feishu/Lark group chat list in escalation rule**? |
111 | 92 |
|
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. |
114 | 94 |
|
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. |
117 | 97 |
|
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 | + |
119 | 99 |
|
120 | | - **Call Volume Limits:** |
| 100 | +## 5. Configure war room |
121 | 101 |
|
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. |
126 | 103 |
|
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. |
128 | 105 |
|
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 | +--- |
135 | 108 |
|
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 | + |
| 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