Manage contacts and contact groups

Updated at:

When a rule is triggered, contacts receive notifications so they can take timely action. To notify multiple people, you can add them to a contact group instead of notifying each person individually. This topic describes how to create contacts and contact groups.

Create a contact

The Event Response feature sends notifications through SMS and DingTalk chatbots. You can create contacts based on your business needs.

Create a DingTalk chatbot on PC

To receive notifications through a DingTalk chatbot, you must configure the chatbot before creating the contact.

  1. On the DingTalk PC client, open the group where you want to receive alert notifications, and click the Group Settings icon 群设置 in the upper-right corner.

  2. In the Group Settings panel, click Group Assistant.

  3. In the Group Assistant panel, click Add Robot. In the Group Robots panel that appears, click Add Robot.

  4. In the Select a robot to add section, click Custom.

  5. In the robot details dialog box, click Add.

  6. In the Add Robot dialog box, set a Robot Name. In the security settings section, select the signature checkbox, and then copy and save the signature key. For example, SECbc6e9aae6b20***22142b2.

  7. Select the I have read and agree to checkbox, and then click Done.机器人配置

  8. Click Copy to copy the webhook URL. For example: https://oapi.dingtalk.com/robot/send?access_token=1771ad32***40828b9dd1e37d1.复制地址

Add a mobile number or chatbot

To receive SMS notifications, you must add a mobile number to the contact. To receive DingTalk notifications, you must add a DingTalk chatbot to the contact. You can configure a contact for both notification methods or choose only one.

Important

To use the SMS notification feature, you must purchase the required resources. For more information, see Billing methods.

  1. Log on to the IoT Platform console, select the China (Shanghai) region, and click the target instance.

  2. In the left-side navigation pane, choose Monitoring and O&M > Event Response, and then click Contact Management.

  3. On the Contacts tab, click Create contact.

  4. In the dialog box that appears, configure the contact information, and then click OK.

    Parameter

    Description

    Name

    The name can contain Chinese characters, letters, digits, and spaces. The name must be 2 to 40 characters long and cannot have leading or trailing spaces. Each Chinese character counts as two characters.

    Mobile number

    Only mobile numbers in the Chinese mainland are supported. The number must be 11 digits long. Do not include the country code (+86).

    Note

    After you create the contact, an SMS with an activation link is sent to the mobile number. You must click the link to activate the number before it can receive notifications from the Event Response service.

    DingTalk chatbot webhook

    Paste the webhook URL that you copied. For example: https://oapi.dingtalk.com/robot/send?access_token=1771ad32***40828b9dd1e37d1.

    DingTalk chatbot signature key

    Paste the signature key that you saved. For example: SECbc6e9aae6b20***22142b2.

Create a contact group

  1. Log on to the IoT Platform console, select the China (Shanghai) region, and click the target instance.

  2. In the left-side navigation pane, choose Monitoring and O&M > Event Response, and then click Contact Management.

  3. On the Contact Management page, click the Contact groups tab.

  4. On the Contact groups tab, click Create contact group.

  5. In the dialog box that appears, enter a group name. From the list of available contacts on the left, select the contacts you want to add, click the right arrow button to move them to the group, and then click OK.

    The Group name can contain Chinese characters, letters, and digits. The group name must be 2 to 40 characters long. Each Chinese character counts as two characters.

    image

Other contact operations

Edit a contact

  1. Log on to the IoT Platform console, select the China (Shanghai) region, and click the target instance.

  2. In the left-side navigation pane, choose Monitoring and O&M > Event Response, and then click Contact Management.

  3. On the Contacts tab, find the target contact and click Edit in the Actions column.

  4. In the Edit contact dialog box, modify the contact information and click OK.

    For more information about contact parameters, see Create a contact.

Delete a contact

  1. Log on to the IoT Platform console, select the China (Shanghai) region, and click the target instance.

  2. In the left-side navigation pane, choose Monitoring and O&M > Event Response, and then click Contact Management.

  3. On the Contacts tab, find the target contact and click Delete in the Actions column.

  4. In the confirmation dialog box that appears, click Confirm.

Other contact group operations

Edit a contact group

  1. Log on to the IoT Platform console, select the China (Shanghai) region, and click the target instance.

  2. In the left-side navigation pane, choose Monitoring and O&M > Event Response, and then click Contact Management.

  3. On the Contact groups tab, find the target contact group and click Edit in the Actions column.

  4. In the Edit contact group dialog box, modify the group information and click OK.

    For more information about contact group parameters, see Create a contact group.

Delete a contact group

  1. Log on to the IoT Platform console, select the China (Shanghai) region, and click the target instance.

  2. In the left-side navigation pane, choose Monitoring and O&M > Event Response, and then click Contact Management.

  3. On the Contact groups tab, find the target contact group and click Delete in the Actions column.

  4. In the confirmation dialog box that appears, click Confirm.