Manage contacts and contact groups
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.
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.In the Group Settings panel, click Group Assistant.
In the Group Assistant panel, click Add Robot. In the Group Robots panel that appears, click Add Robot.
In the Select a robot to add section, click Custom.
In the robot details dialog box, click Add.
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.
Select the I have read and agree to checkbox, and then click Done.

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.
To use the SMS notification feature, you must purchase the required resources. For more information, see Billing methods.
Log on to the IoT Platform console, select the China (Shanghai) region, and click the target instance.
In the left-side navigation pane, choose Monitoring and O&M > Event Response, and then click Contact Management.
On the Contacts tab, click Create contact.
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).
NoteAfter 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
Log on to the IoT Platform console, select the China (Shanghai) region, and click the target instance.
In the left-side navigation pane, choose Monitoring and O&M > Event Response, and then click Contact Management.
On the Contact Management page, click the Contact groups tab.
On the Contact groups tab, click Create contact group.
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.

Other contact operations
Edit a contact
Log on to the IoT Platform console, select the China (Shanghai) region, and click the target instance.
In the left-side navigation pane, choose Monitoring and O&M > Event Response, and then click Contact Management.
On the Contacts tab, find the target contact and click Edit in the Actions column.
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
Log on to the IoT Platform console, select the China (Shanghai) region, and click the target instance.
In the left-side navigation pane, choose Monitoring and O&M > Event Response, and then click Contact Management.
On the Contacts tab, find the target contact and click Delete in the Actions column.
In the confirmation dialog box that appears, click Confirm.
Other contact group operations
Edit a contact group
Log on to the IoT Platform console, select the China (Shanghai) region, and click the target instance.
In the left-side navigation pane, choose Monitoring and O&M > Event Response, and then click Contact Management.
On the Contact groups tab, find the target contact group and click Edit in the Actions column.
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
Log on to the IoT Platform console, select the China (Shanghai) region, and click the target instance.
In the left-side navigation pane, choose Monitoring and O&M > Event Response, and then click Contact Management.
On the Contact groups tab, find the target contact group and click Delete in the Actions column.
In the confirmation dialog box that appears, click Confirm.