Skip to content

IM Apps


IM Apps are used to connect Lark or Tencent Meeting, providing the Incident Warroom with capabilities such as creating group chats, creating meetings, and syncing incident information. Lark apps can also push report screenshots to specified groups so group members can directly view inspection or reporting results.

Members with Workspace Management or Integration Management permissions can go to Integration > IM Apps to view and manage connected apps. The app list displays app information and connection status, supports searching by app name, and you can click an app to view its details.

Platform Capabilities
Lark Create private group chats, invite members, send and update incident cards, respond to card actions, dismiss group chats, push report screenshots
Tencent Meeting Create quick meetings, generate meeting numbers and join links

Connect Apps

Go to Integration > IM Apps, click Connect App, select the platform to connect, and then follow the on-page prompts to enter credentials and complete the platform-side configuration.

Connect Lark

1. Create a Lark App

  1. Log in to the Lark Open Platform and create an enterprise self-built app;
  2. In App Capabilities, add the Bot capability.

2. Enter App Parameters

Go to Integration > IM Apps, click Connect App, and select Lark. Enter the app name and the following parameters:

Field Required Description
App ID Yes Unique identifier of the Lark app; remains read-only after connection
App Secret Yes Used to obtain app access credentials; stored encrypted and not displayed; leave blank when editing to retain the original value
Verification Token Depending on use case Required when using events or card interaction callbacks, used to verify callback sources; can be left blank when only pushing reports
Encrypt Key Depending on use case Required when using events or card interaction callbacks, used to decrypt callback requests; can be left blank when only pushing reports

The following describes where to obtain each parameter on the Lark Open Platform:

  • App ID, App Secret: Go to Developer Console > Select App > Basic Information > Credentials & Basic Information;
  • Verification Token: Go to Developer Console > Select App > Development Configuration > Events and Callbacks > Encryption Strategy and copy the Verification Token displayed by the system;
  • Encrypt Key: Also obtained on the Encryption Strategy page. If this item shows Not Enabled, click Reset or Custom Edit to generate or set an Encrypt Key, and then enter it on the connection page. The values on both sides must be exactly the same; otherwise, callback requests cannot be decrypted.

Encryption Strategy page for Events and Callbacks on the Lark Open Platform, with Verification Token hidden

3. Enable App Permissions

In Permission Management on the Lark Open Platform, first enable the following app identity permissions:

Permission Permission ID Purpose
Manage App's Own Resources application:application:self_manage Read app and published version information to detect app permissions, bot capabilities, and event/card callback configurations

Then enable the following permissions based on the app's use case. If the app is used for both reports and Warrooms, enable both sets of permissions. After adding permissions, you must publish a new app version and click Refresh Check on the Permissions & Capabilities page in app details.

Report Push Permissions

Complete authorization according to the permission list in Configure a Lark App, and enable the bot capability and publish the app version.

Warroom Permissions
Permission Purpose
im:chat Create, manage, and dismiss Warroom group chats, invite members, and generate group share links
im:message Send and update incident cards
contact:user.id:readonly Match Lark users by email or mobile number for automatically inviting members
Configure Contact Data Scope

After contact:user.id:readonly is enabled, you also need to configure the contact data scope that this permission can access:

  1. In Permission Management, find contact:user.id:readonly and click Accessible Data Scope > Configure;
  2. In Contacts, select All Members, or specify the departments and members that are allowed to be accessed;
  3. Ensure that the data scope includes all members who may be invited to the Warroom.
Contact data scope must cover invited members

The system can obtain only Lark user information within the authorized scope. If a member is not within the contact data scope of contact:user.id:readonly, the system cannot find that member by email or mobile number, and cannot invite that member when creating a Warroom group chat.

4. Configure Card Callbacks

Configure callbacks when using events or card interactions; an app that only pushes reports can proceed directly to the next step to publish the app.

After credential verification succeeds, the third step on the connection page generates a Card Callback URL. Go to Development Configuration > Events and Callbacks > Callback Configuration on the Lark Open Platform and complete the following configuration:

  1. Select "Send Callbacks to Developer Server" and enter the Card Callback URL generated on the connection page;
  2. Add callback: card.action.trigger.

Callback Configuration page on the Lark Open Platform, with Send callbacks to developer server selected

Card callbacks can be configured later: not configuring callbacks does not affect the app displaying as Connected or creating group chats, but operations such as claiming and closing incident cards in groups are temporarily unavailable.

5. Publish the App and Set Availability

You must publish the app and correctly set availability

The app can be used only after a version is published. When the app is used for Warrooms, its availability should cover all members who may create, handle, and join Warrooms, so that member accounts can be queried and members can be automatically invited to groups.

  1. Go to App Release > Version Management & Release on the Lark Open Platform and click "Create Version";
  2. Set the app's Availability based on its use case. When used for Warrooms, you can select "All Members", or specify departments and members covering all personnel who may create, handle, and join Warrooms;
  3. Submit the version and complete publishing.

If the app is used for Warrooms and you select specific members or departments, adjust the availability promptly after the users change, and republish the app version.

6. Complete Connection

After app credential verification is complete, continue configuration based on the use case:

  • Push reports: Go to app details to check report permissions, and enable report push and configure recipient groups;
  • Create Warrooms: Confirm that app permissions, card callbacks, app publishing, and availability have all been configured as described above. Go to Callback Configuration in app details to view the callback status or copy the callback URL.

Connect Tencent Meeting

Version and account requirements

The connecting enterprise must use Tencent Meeting Business, Enterprise, or Education edition. Personal edition, free organizations, and free accounts of Business, Enterprise, or Education edition cannot create enterprise self-built apps. Enterprise members used to create meetings must also have meeting creation eligibility. To verify platform support, see Tencent Meeting's App Type Introduction.

1. Create an Enterprise Self-Built App

Follow these steps to create an enterprise self-built app:

  1. Log in to the Tencent Meeting website with a Tencent Meeting enterprise administrator account;
  2. Click the avatar in the upper-right corner of the page to go to User Center, and select Enterprise Management > Advanced > Enterprise Self-Built Apps;
  3. Click Add App, enter the app name, and select the app type based on the enterprise's data access scope. App-level supports separate permission scope configuration; Enterprise-level can access data within the enterprise scope by default and does not display the Permission Scope menu.

    Whitelist configuration: To ensure that Guance can call Tencent Meeting APIs properly, enter the corresponding IP address in the Global Whitelist based on the site where the current workspace is located. Separate multiple IP addresses with line breaks.

    Site IP Address
    cn1 47.97.178.215
    cn2 68.79.7.77
    cn3 115.191.33.136
    cn4 124.71.63.1
    cn6 8.217.159.66
    eu2 94.139.255.222
    ap1 3.1.104.3
    ap2 47.84.142.109
    eu1 18.157.152.101
    id1 43.129.51.192
    us1 35.164.41.209
    za1 203.123.87.65

    Global whitelist configuration in the Tencent Meeting Create Enterprise Self-Built App dialog, with multiple IP addresses separated by line breaks

    After completing the above configuration, submit the app.

  4. Open the newly created app, complete the basic information, and set the app status to Enabled;

  5. If you created an app-level app, click the app name in the enterprise self-built app list to open its details, select Permission Scope on the left, and search for and enable the Manage Enterprise Meeting Details permission; this permission is used to create meetings and obtain join links. If the permission requires approval, have the app administrator complete the approval. Enterprise-level apps do not need this step.

You can also open the Tencent Meeting Enterprise Self-Built App Console directly. To learn the complete creation rules of the Tencent Meeting platform, see Enterprise Self-Built App Instructions.

After creating the app, obtain the following parameters, and go to Integration > IM Apps, click Connect App > Tencent Meeting, and complete the fields:

Field Required Description
App ID Yes Corresponds to the enterprise ID in the Tencent Meeting console
Secret ID Yes Authentication credential of the enterprise self-built app
Secret Key Yes Authentication key of the enterprise self-built app
Meeting Creator User ID Yes User ID of the fixed enterprise member used to create meetings
SDK ID Depending on enterprise configuration Required when Tencent Meeting assigns an SDK ID to the app; leave blank if not assigned

The parameters are obtained as follows:

  • App ID, Secret ID, Secret Key: Go to Enterprise Management > Advanced > Enterprise Self-Built Apps, select the app, and obtain them together in Basic Information and Credentials. The App ID on the connection page corresponds to the Enterprise ID in the Tencent Meeting console, which can also be viewed in Enterprise Management > Account Management > Account Information;
  • SDK ID: Also viewed in Basic Information and Credentials. If the page displays an SDK ID, it is required; if not displayed, leave it blank;
  • Meeting Creator User ID: Go to Enterprise Management > User Management > User List, find the enterprise member used to create meetings, and copy their UserID; if the field is not displayed in the list, display it through List Field Settings. The member must be in normal status and have permission to start meetings.

Basic Information and Credentials page of a Tencent Meeting enterprise self-built app, with sensitive values hidden

After entering the parameters and completing credential verification, the connection is complete. When creating a Tencent Meeting Warroom later, the system uses the configured enterprise member as the meeting creator.

Push Report Images via Lark

Reports support pushing report images directly to specified Lark groups through a Lark IM app. Before use, enable permissions for the Lark app, add the app bot to the target group, and have a member with IM App management permissions complete app connection and recipient group authorization in Guance.

1. Configure a Lark App

  1. Log in to the Lark Open Platform and create an enterprise self-built app, or select an existing app;
  2. In App Capabilities, add the Bot capability;
  3. Go to Permission Management and enable the following app identity permissions:

    Capability Permission ID Purpose
    Manage App's Own Resources application:application:self_manage Read app and published version information, and detect capabilities required for report push
    Get and Upload Image or File Resources im:resource Upload report images
    Read Groups the Bot Is In im:chat:readonly or im:chat Obtain the list of groups the app bot has joined
    Send Messages as the App im:message:send_as_bot or im:message Send report images to target groups

    For each row, any one of the listed permissions is sufficient.

  4. Go to App Release > Version Management & Release, create a version, and complete publishing so that the bot capability and permissions take effect.

For related requirements, see the Lark documentation on Uploading Images and Obtaining the List of Groups a User or Bot Is In.

2. Add the App Bot to a Lark Group

  1. Open the Lark group that will receive reports, and go to Settings > Group Bots > Add Bot;
  2. Search for and add the Lark app bot configured in step 1.

Guance obtains the list of groups the bot has joined through this app. Any Lark group that needs to receive reports must have this app bot added in advance.

3. Connect the Lark IM App and Authorize Recipient Groups

  1. Go to Integration > IM Apps, click Connect App, and select Lark;
  2. Enter the app name and the following connection parameters:

    Parameter Where to Obtain Entry Requirements
    App ID Basic Information > Credentials & Basic Information of the Lark app Required
    App Secret Basic Information > Credentials & Basic Information of the Lark app Required
    Verification Token Development Configuration > Events and Callbacks > Encryption Strategy of the Lark app Required when using events or card interaction callbacks; can be left blank when only pushing reports
    Encrypt Key Development Configuration > Events and Callbacks > Encryption Strategy of the Lark app; if used for callbacks and not yet set, generate or customize it first Required when using events or card interaction callbacks; can be left blank when only pushing reports
  3. Complete credential verification and connection, and confirm that the app status is Connected. The connected app must be the same Lark app for which permissions were configured and whose bot was added to the target group in the previous two steps;

  4. Open app details, click Refresh Check on the Permissions & Capabilities page, and confirm that obtaining app access credentials, enabling the bot, reading the groups it is in, sending messages, and uploading images under Capabilities Required for Report Push are all ready. If permissions are missing, complete authorization on the Lark Open Platform and publish the app, then check again;
  5. Go to Overview > Report Push and click Configure Recipient Groups;
  6. Enable Enable Report Push, select at least one group in Allowed Recipient Groups, and click Save. Each app can authorize up to 100 groups in the current workspace.

Report push is disabled by default for newly connected apps, and after the configuration is saved, it takes effect only in the current workspace. Report editors select the actual recipient groups from the allowed groups; the group list supports searching loaded groups, refreshing, and loading more.

After report push is disabled or an allowed group is removed, subsequent sends recheck authorization and skip the corresponding app or group, while other valid recipients continue. When editing the affected reports again, adjust the invalid recipient configuration.

Report permissions are checked independently of Warroom permissions. An app used only for reports can be used after report permissions and recipient group configuration are complete; if in-group incident card interactions are needed, configure them as required in Card Callbacks.

4. Configure Report Push

  1. Go to Scenes > Reports, and create or edit a report;
  2. Set the report title, dashboard, and schedule;
  3. In Notification Methods, select IM Apps, and then select the connected Lark app;
  4. From the list of groups that the app is allowed to use in the current workspace, select the Lark groups to receive the report;
  5. Complete the report configuration, including screenshot format and sharing method, and save it. For detailed configuration instructions, see Report Notification Methods.

The system generates reports according to the schedule, uploads report images using the selected IM app, and sends them directly to the selected Lark groups through the app bot.

View and Manage Apps

Click an app row to open its details, where you can view basic information, connection status, permissions and capabilities, and operation records. For Lark apps, the capabilities required for Warrooms and report push are displayed separately.

  • Lark apps provide Callback Configuration, which is used to view and copy the card callback URL;
  • You can modify the app name and credentials. The Lark App ID remains read-only; leave the secret blank to retain the original value. For apps shared by multiple workspaces, their shared credentials remain read-only;
  • You can delete unneeded apps on the details page.

Only workspace administrators with IM App management permissions can view and copy the Lark card callback URL. Operations such as viewing, copying, configuration changes, and app deletion are all written to audit records.

Deleting an app requires second confirmation. If a Lark app is still referenced by reports, adjust the recipient configuration of the affected reports first. After deletion, the configuration cannot be recovered, and the app cannot be used to create new Warrooms; existing external group chats, meetings, and access records are not affected.

Connection Status

Status Description
Connecting App credentials are pending verification or the connection is not ready. Follow the on-page prompts to complete verification or refresh the connection status
Connected App credentials are valid and the connection is normal
Connection Error Credential verification failed or the app connection is abnormal. Follow the on-page prompts to check credentials and platform configuration

Connected means that credentials and the connection are ready. Report push and Warrooms determine availability based on their respective required permissions and configurations: for report use, check the Report Push status; for creating Warrooms, check the Can Create status on the Permissions & Capabilities page. When only report permissions are configured, the app can show as connected and push reports normally, while the Warroom may still show Cannot Create Yet.

Lark apps also display Callback Configuration Status separately:

Status Description
Pending Configuration No verified card callback has been received yet; group chats can still be created, but card actions are temporarily unavailable
Normal A card callback has been received and passed source verification
Error The callback remains unreachable, or signature verification or decryption fails. Check the callback configuration on the Lark platform and in app details

If the app connection is abnormal, follow the on-page prompts to check credentials, app permissions, and app availability. Existing external group chats or meetings for Warrooms will not be closed automatically as a result.

FAQ

Why can't an app complete connection?

Follow the on-page prompts to check the following configurations:

  • Whether the app credentials are correct;
  • Whether the Lark app has added the bot capability and published an app version;
  • Whether Lark permissions, contact data permissions, and app availability are fully configured;
  • Whether the Tencent Meeting enterprise edition, app permissions, and meeting creation account meet the requirements.

Why can't a connected app create Warrooms?

Creating Warrooms requires both a valid connection and the capabilities required for Warrooms. Go to app details to check the connection status; for Lark apps, also check for missing items under Permissions & Capabilities > Capabilities Required to Create Warrooms, complete authorization, publish the app, refresh the check, and confirm that the status is Can Create. An app used only for reports can be used according to report permissions; if Warrooms are needed, add the corresponding capabilities.

Why can't I find the app or recipient group in a report?

Open the Lark app details, confirm that the capabilities required for reports are ready, and go to Overview > Report Push to enable push, authorize recipient groups, and save. The bot must have joined the target group. Return to the report and refresh the app and group lists; if the group has not loaded, click Load More and then search.

Do I need to reconfigure platform permissions after changing the Secret?

If the App ID and the app itself are unchanged, changing only the Secret typically does not require re-enabling platform permissions or callbacks. After saving the new Secret, confirm that the app returns to the Connected status.

Why don't card actions work after the Lark app is connected?

First confirm that the app identity permission Manage App's Own Resources is enabled and that the app version is published. After adding permissions, click Refresh Check on the Permissions & Capabilities page in app details. Then check Callback Configuration Status:

  • If the status is Pending Configuration: Configure the card callback URL on the Lark Open Platform and add the card.action.trigger callback;
  • If the status is Error: Check the callback URL and confirm that Verification Token and Encrypt Key are exactly the same as the configuration on the Lark Open Platform.

Until callbacks recover, you can still create and enter Lark group chats, but in-group incident card actions cannot be processed.

Why does meeting creation fail after the Tencent Meeting app is connected?

Check whether App ID, Secret ID, and Secret Key are entered correctly; if Tencent Meeting has assigned an SDK ID to the app, also confirm that this parameter is entered. Then confirm that Whitelist Configuration includes the IP address for the site where the current workspace is located, that the app is enabled, and that the Manage Enterprise Meeting Details permission is enabled. Also confirm that Meeting Creator User ID corresponds to a member in the current enterprise who is in normal status and has permission to start meetings.

Further Reading

You may be interested in the following:

Feedback

Is this page helpful?