Skip to main content

Template Message Alert

Overview

Template message alert associates data from Guandata BI with structured message card templates in Feishu and DingTalk through variable matching when alert conditions are met, enabling alert messages to be pushed as structured cards.

Feishu Template Message Alert

Prerequisites

  1. In the Guandata and Feishu admin backends, complete the preparation for Guandata-Feishu integration. For details, see Complete Feishu Integration Solution)).

    Guandata and Feishu admin backends

  2. In Feishu Card Builder, create and publish the message card template to send. For usage details, see Feishu Card Builder Overview.

    1. For dynamic data that needs to be obtained from Guandata BI in the card template, configure card variables in advance.

    2. Add a custom bot/application to the card template and ensure that the specified application and All Custom Bots have permission to send the card template.

Create and Configure a Template Message Alert

  1. In Guandata BI, click Alert Center in the app launcher in the upper-right corner, then click Template Message Alert > Add Template Message Alert.

    Add a template message alert

  2. For detailed configuration of basic information and trigger mechanism, see Card Alert.

  3. Configure Alert Sending and select Feishu as the notification channel. Two notification methods are supported: Message Notification and Group Bot.

    • Message Notification: Add users or user groups in Guandata BI as recipients. Alert messages are sent separately to individuals.

    • Group Bot: Send alert messages to a Feishu group through a group bot. For usage details, see Use Group Bots to Push Notifications.

  4. Configure Alert Content.

    • Template ID: Click the drop-down list to obtain all template IDs under the application corresponding to the current BI. Fuzzy search by template ID and name is supported. The card template must be specified for the application corresponding to the current BI. If the card template is set to all applications, the BI platform cannot automatically obtain the card template.
    • Version number: Click the drop-down list to select the template version number. The latest version is selected by default. Historical versions can also be selected. If a historical version is selected, the message card is matched and sent according to the template of that historical version.
    • Variable matching: For card variables configured in the Feishu card template, match them to dynamic data, cards, and other BI elements from visualization cards in the BI platform. The BI elements to match vary by variable type. For detailed configuration, see Template Message Subscription.

    Currently supported Feishu variable types include text, integer, image, image array, object array, table row data, and device-specific differentiated links.

    • To send a table directly through a Feishu message card, as shown below, configure the Table Row Data variable.

      • In the Feishu message card, the Table component corresponds to the Table Row Data variable. Add field columns to the variable and set each field's key and type.

      • In Guandata BI, add a variable of type Table Row Data, add columns to the variable, enter the field key from the Feishu message card as the column name, and keep the field type consistent with Feishu.

    • To send a visualization chart directly through a Feishu message card, as shown below, configure the Image Array variable.

      • In the Feishu message card, the Chart component corresponds to the Object variable.

      • In Guandata BI, set Variable Type to Image Array and select a matching visualization card.

  5. After alert content is configured, click Send Preview to Me to view the final received message card effect in Feishu. After confirming that the style and data are correct, click OK to complete the template message alert configuration.

DingTalk Template Message Alert

Prerequisites

  1. In the Guandata and DingTalk admin backends, complete the preparation for Guandata-DingTalk integration. For details, see Complete DingTalk Integration Solution)).

  2. Fill in the bot code.

    1. Create a group bot in DingTalk Open Platform. For creating a DingTalk group bot, see Use Group Bots to Push Notifications.
    2. In DingTalk Open Platform, open Bot Configuration and click Copy RobotCode.
    3. In Guandata BI, go to Management Center > System Integration > Office OA > DingTalk, enable the application, enter the RobotCode copied in the previous step into Bot Code, and click Save.
  3. In DingTalk Card Builder, create and publish the message card template to send. For details, see Card Template.

Create and Configure a Template Message Alert

  1. In Guandata BI, click the app launcher in the upper-right corner, go to Alert Center > Template Message Alert, and click Add Template Message Alert in the upper-right corner.

    Add a template message alert

    Add a template message alert

  2. For detailed configuration of basic information and trigger mechanism, see Card Alert.

  3. Configure Alert Sending and select DingTalk as the notification channel. Two notification methods are supported: Message Notification and Group Bot.

    • Message Notification: Add users or user groups in Guandata BI as recipients. Alert messages are sent separately to individuals.

    • Group Bot: The bot used by DingTalk template message alerts is different from ordinary alerts. DingTalk sends alert messages through an Internal Enterprise Application bot. One internal enterprise application corresponds to one bot. For detailed operations, see Use Group Bots to Push Notifications.

  4. Configure Alert Content.

    • Template ID: Enter the created card template ID, which can be obtained from the template list.

    • Variable matching: For card variables configured in the DingTalk template, match them to dynamic data, cards, and other BI elements from visualization cards in the BI platform. The BI elements to match vary by variable type.

      Currently supported DingTalk variable types include text, integer, image, image array, object array, table row array, and device-specific differentiated links.

  5. After Alert Content is configured, click Send Preview to Me to view the final received message card effect in DingTalk. After confirming that the style and data are correct, click OK to complete the template message alert configuration.

FAQs

For alert-related FAQs, see FAQs)).