To ensure that alerts and scheduling notifications can accurately @ the responsible members, DataWorks AI Assistant provides the account mapping feature. This feature establishes associations between Alibaba Cloud accounts and IM platform accounts such as DingTalk and Lark, resolving the cross-platform identity inconsistency issue and upgrading plain-text names in messages to interactive @mentions. This topic guides you through setting up and testing account mapping in Channel Configuration.
How it works
AI Assistant uses a unified account mapping mechanism to accurately reach notification targets. Whether the target is a task owner or an on-duty member, the system resolves their identity to the corresponding IM account, eliminating the need to repeatedly configure different scenarios.
For shift rotation scenarios, AI Assistant automatically associates with the shift schedules that you maintain in DataWorks Operation Center, enabling automatic rotation of notification targets.
All on-duty members must complete Account Mapping registration in advance. This is a prerequisite for the bot to @-mention them.
Prerequisites
An AI Assistant instance is created based on AI Assistant Service overview and is in the Running state.
The instance image version is 4.1.6 or later. On earlier versions, the Account Mapping entry does not appear on the channel card, so upgrade the instance first.
At least one IM channel is configured in Channel Configuration on the Basic Information tab of the instance. For the integration steps of each channel, see AI Assistant Service integration with DingTalk, AI Assistant Service integration with Lark, and AI Assistant Service integration with WeCom.
A scheduled inspection or alert task is running. An @-mention happens in the notification stage, so a report must be generated first. For task configuration, see AI assistant in practice: Intelligent data O&M through natural language.
Limitations
Per-channel scope: Account mapping is maintained per IM channel, not as one global table. The Account Mapping panel opens in the context of a channel: opened from the DingTalk channel, it shows only each member's DingTalk identity. This means you need to configure a mapping for each member in every channel where they want to receive
@notifications.For example, if you configure only the DingTalk mapping for a member, the member cannot be successfully
@-mentioned in a Lark group.Feishu and Lark unified configuration: Feishu and Lark are maintained on the same channel card and share one identity field (Open ID / User ID).
Phone number display: To protect privacy, the system always displays phone numbers in masked form (for example,
138****1111).Keep the existing number: When editing, leave the masked value unchanged.
Change the number: Enter the full new phone number to overwrite the masked value.
To use a shift schedule as a notification target, you must first configure shift schedules in Operation Center. This feature requires DataWorks Professional Edition or higher.
Procedure
Step 1: Go to account mapping of the target channel
Log on to the DataWorks console and click AI Assistant Service in the left-side navigation pane.
In the instance list, find the target instance and click the instance name to go to the instance details page.
In the Channel Configuration area, find the target channel card (DingTalk, WeCom, or Lark / Lark), and configure the corresponding channel integration.
After you complete the channel configuration, click Account Mapping in the upper-right corner of the card.
Step 2: Add an account mapping
In the upper-left corner of the Account Mapping panel, click Add Mapping.
Configure the following parameters in the Add Mapping dialog box, and then click OK.
Parameter
Required
Default value
Description
Member
Yes
N/A
Search for and select the RAM user or role that corresponds to the responsible member. The drop-down list labels each entry as User or Role. After you select a member, the nickname, account name, and account ID are automatically populated and used as the primary key of the mapping.
Phone number
No
Empty
The phone number registered for this member in the current channel. This number is used as a generic identifier for @-mentioning by phone number. The list always displays the number in masked format. When you edit the mapping, keeping the masked value retains the original number. To change the number, enter the complete new number.
Channel @ identifier
No
Empty
The platform identity of this member in the current channel. The field name varies by channel:
For DingTalk, the field is DingTalk User ID, which you can obtain from the personal details page.
For WeCom, the field is WeCom Account. A WeCom administrator can obtain it from the user details page in Contacts.
For Feishu / Lark, the field is Feishu Open ID / User ID. You can enter an Open ID or User ID that starts with
ou_. For how to obtain the ID, see How to obtain user IDs.
Enable mapping
No
Enabled
Enabled by default. When disabled, this mapping no longer takes effect, which lets you temporarily suspend @-mentions for a member without deleting the record.
After you save the mapping, the list refreshes and the member appears. If the instance also uses other channels, go back to Channel Configuration and repeat the preceding steps for the same member on the other channel cards.
The UI only requires you to select a member. You can save a mapping even if both the phone number and the channel @ identifier are left empty. However, when both are empty, this mapping has no usable @ identifier on the current channel. We recommend that you fill in at least one field, and prioritize the channel @ identifier — it does not become invalid when the member changes their phone number.
Step 3: Send a test message for verification
You can send a single test message to verify whether the account mapping configuration for a specific member takes effect.
Start the test
In the Account Mapping list, find the target member and click the **Test** button in the Actions column.
Tip: If the mapping information (@ identifier or phone number) for this member on the current channel is empty, the system blocks the test and prompts you to complete the information first.
Configure and send
In the dialog box that appears, paste the
WebhookURL of the target group bot, and then click Submit.ImportantThe smart bots of WeCom and Lark do not support Webhooks. You can add a Webhook bot to a group chat to test @-mention message delivery.
If the same bot is used in multiple groups, its Webhook URL differs for each group. When testing a push, make sure that you select the correct group chat URL to avoid sending the message to the wrong group.
The system sends an actual test message to the group, which is visible to all group members. To avoid disruption, notify the relevant group members in advance.
Verify the result
Go to the corresponding IM group chat and check the test message:
Success: The member is successfully
@-mentioned (the name appears as a clickable blue link).Failure: The member name appears as plain text and cannot be clicked.
Troubleshooting
If the test fails (the member is not successfully
@-mentioned), check the following configurations one by one and test again after you fix any issues:Enable status: Make sure that the Enable Mapping toggle for the member is turned on in the mapping list.
Identity information: Make sure that at least one of the Channel @ Identifier or Phone Number fields is filled in for the member on the channel being tested.
Identifier accuracy: Double-check that the
@identifier you entered (such as a DingTalk user ID) is completely correct, with no typos or extra spaces.Webhook validity: Confirm that the
WebhookURL used for testing is correct and that the bot has been properly added to the target group chat.
Manage existing mappings
In the list on the Account Mapping panel, the Actions column of each mapping provides the following operations.
Action | Description |
Test | Sends a test message that @-mentions the member to the group bot Webhook you manually entered, allowing you to verify that the mapping takes effect. |
Disable / Enable | Temporarily disables or re-enables a mapping. An enabled mapping shows Disable, and a disabled mapping shows Enable. Toggling affects only the status of this record and does not change other information. |
Edit | Modifies the phone number, channel @ identifier, and the Enable Mapping toggle. The member cannot be changed. If the phone number is displayed as a mask, leaving it unchanged retains the original number. |
Delete | After you confirm in the confirmation dialog box, the mapping for the member in the current channel is deleted. Mappings in other channels are not affected. |
When a responsible member leaves or is replaced, edit the channel @ identifier and phone number of the corresponding mapping, or simply turn off the Enable Mapping toggle. You do not need to modify the inspection or alert tasks themselves. After team member changes, use Test in the Actions column to verify that the @-mention still reaches the correct person.
1. Responsible members
This is the most critical notification target. The system determines the specific responsible member through intelligent analysis.
Dynamic responsible members (default behavior)
Logic: During each inspection cycle, AI Assistant analyzes the specific resources that have issues (such as a table or a task) in real time and automatically
@-mentions the owner of that resource.Advantages: No pre-registration is required. The process is intelligent, automated, and precisely targeted. If no exception is found in the current cycle, no one is disturbed.
Applicable scenario: The majority of routine alert scenarios.
Fixed responsible members (fallback)
Logic: You can specify one or more fixed members in an inspection task through AI Assistant. Regardless of which inspection cycle or which resource has an issue, the system
@-mentions these fixed members.Applicable scenario: Serves as the ultimate fallback for alerts, ensuring that someone always receives the notification — for example, the team leader or the group owner.
2. On-duty members
When you configure a scheduled task, you can instruct AI Assistant to use shift schedules as the notification target. The system then introduces the shift rotation mechanism.
Logic: AI Assistant automatically reads and associates the native shift schedules that you maintain in DataWorks Operation Center, and retrieves the primary on-duty member and backup on-duty member for the current day to
@-mention them.Advantage: The notification target rotates automatically with the shift schedule, eliminating the need for repetitive configuration on the AI Assistant side.
Display: In the alert report, the responsible member and the on-duty member are listed on separate lines with clear labels.
3. Creator
When the monitored resource object has no responsible member, DataWorks designates the creator as the notification target as a fallback strategy. The following example uses Flink:
For Flink job monitoring: When no responsible member mapping is registered for a job, AI Assistant automatically queries the creator of the job to @-mention, and the report is annotated with "(by creator)".
Priority: ① Responsible member mapping > ② Job creator > ③ Default fallback member. You must configure the relevant stakeholders in account mapping to ensure that AI Assistant Service can accurately @-mention the correct person.
When the creator cannot be retrieved (for example, due to lack of read permission on the job), the notification falls back to the default fallback member or plain-text mention, annotated with "creator not found".
Note: Flink monitoring and the automatic @-mention by creator capability require that you first enable Flink Expert Suite.
Fallback behavior when mappings are incomplete
When account mappings are incomplete or ambiguous, the system degrades to plain-text mentions and does not mistakenly @-mention the wrong person:
Scenario | Behavior |
Member is not in the mapping table | The group displays "@Zhang San (account mapping not configured)" as plain text without a real @-mention |
Mapping is disabled | Treated as not configured; degrades to plain text |
Name collision or conflicting information (for example, multiple records for the same person with different phone numbers) | Degrades to plain text to avoid @-mentioning the wrong person |
Note: When "(account mapping not configured)" appears in a report, it prompts you to complete the mapping for that entry. When a responsible member leaves or is replaced, modify the member or channel ID in the mapping entry, or turn off the Enable Mapping toggle. You do not need to modify the task.
Platform-specific notes
DingTalk
You must provide the Webhook URL of the group to enable @-mention notifications.
When a bot is added to different groups, each group generates its own independent Webhook URL.
When you configure a scheduled task, you must manually enter the Webhook URL of the target group. The system cannot obtain it automatically.
Lark
The app bot can send @-mention messages to a specified group by group ID without a Webhook URL.
After you specify a group, the bot can directly @-mention group members and trigger notifications.
WeCom
WeCom has two types of bots with completely different capabilities:
Chat bot: Used for interactive conversations and supports two connection modes.
Long connection mode: Can proactively send @-mention messages to a specified group and trigger notifications without a Webhook URL.
URL callback mode: Cannot proactively send @-mention messages to a specified group.
Neither mode has Webhook capabilities.
Message push bot (Webhook-dedicated): Pushes messages in one direction through a Webhook URL and supports @-mentions.
If you need to send @-mention notifications through a Webhook, create this type of bot separately in the group.
Configuration recommendations
Platform | What you need to provide |
DingTalk | The Webhook URL of the target group. |
Lark | Specify the target group. To test the @-mention feature, create an additional Webhook bot. |
WeCom | Specify the target group (make sure the chat bot uses long connection mode, not URL callback mode). To test the @-mention feature, create an additional Webhook bot. |
FAQ
Q: Does a member need to be configured in every channel?
A: Yes. Account mapping is maintained per channel. Enter a DingTalk user ID for the DingTalk channel, an Open ID or phone number for the Lark channel, and a WeCom account for the WeCom channel.
Q: If I change a member's phone number, does the mapping update automatically?
A: No. Both the phone number and the channel @ identifier must be manually registered in the mapping. If a member's contact information changes, you must manually edit the corresponding mapping. To reduce this maintenance overhead, we recommend that you fill in the channel @ identifier first.