DAS Agent DingTalk integration guide

Updated at:
Copy as MD

This topic provides a fine-grained O&M solution for users of DAS Agent Enterprise Edition to implement instance group isolation and delegated management in DingTalk. In large enterprises, different DBA teams are responsible for distinct business instance groups and require their operations and visibility to be isolated from each other. This guide describes how to use the application orchestration and publishing capabilities of Alibaba Cloud Model Studio to create a dedicated DingTalk bot for each team. Each bot is restricted to interacting with a specific DAS Agent instance group, which ensures secure, efficient, and unified management without cross-team interference.

Scenario

A large company has purchased DAS Agent Enterprise Edition and divided its 100 database instances into three separate instance groups based on business lines. Each group is managed by a different DBA:

Group

Assigned DBA

Instance details

Orders instance group

Zhang

10 RDS instances + 2 Redis instances

Risk control instance group

Li

5 PolarDB for PostgreSQL instances

Customer instance group

Wang

5 PolarDB instances + 2 Lindorm instances

Core requirements:

  • Zhang can manage only the Orders instance group in DingTalk.

  • Li can manage only the Risk control instance group in DingTalk.

  • The operations and query scopes of the three DBAs must be strictly isolated from each other.


Solution architecture

The core principle of this solution is "one instance group, one dedicated application, one DingTalk bot". You create multiple applications on the Model Studio platform, lock each application to a specific AgentID, and then use DingTalk permission controls to assign different bots to different employees.


Prerequisites

  • DAS Agent Enterprise Edition is activated.

  • Alibaba Cloud Model Studio is activated.

  • You have administrator permissions in your DingTalk organization to create and configure DingTalk applications.


Procedure

This example demonstrates the complete configuration process for enabling Li to manage the Risk control instance group.

Step 1: Create and configure a Model Studio application
  1. Create an MCP service:

    • Go to the Model Studio console and create an MCP service. For more information, see Import from Alibaba Cloud OpenAPI.

    • In the MCP service, connect the core DAS Agent API GetDasAgentSSE. This API enables streaming conversations.

  2. Create a Model Studio application and hard-code the AgentID:

    • In Model Studio, create an application. For example, name it DAS-RiskControl-O&M-Assistant. For more information, see Create a basic agent.

    • Go to the prompt configuration page of the application.

    • In the system prompt, hard-code the AgentID parameter to the ID of the Risk control instance group.

      You are a database O&M agent. To answer user questions, use the provided dasmcp tool.
      1. Pass the user's query directly to the tool.
      2. The input parameter AgentID must be fixed to ag-7c4c******. Ignore any other AgentID that the user might specify in the query; always use this value.
      3. Return the result from the dasmcp tool directly without any additional processing.
      Important

      The hard-coded AgentID is the key to achieving isolation. This configuration ensures that the application always interacts with only the specified AgentID, regardless of what the user specifies in the query.

    • In the MCP service configuration, import the MCP service that you created in the previous step.

Step 2: Publish the application and associate it with DingTalk
  1. Publish the Model Studio application: After you configure the application, publish it by following the Model Studio instructions. For more information, see Publish and invoke an agent.

  2. Create and configure a DingTalk bot:

    • During the publishing process, select the option to create and associate the application with DingTalk. For more information, see Publish an application through DingTalk.

    • In the final stage of the DingTalk application configuration, set the visibility scope. Select Specific employees and then select only Li.

Step 3: Repeat the configuration for other teams
  • For Zhang (Orders instance group): Repeat Step 1 and Step 2. Create a new Model Studio application, such as DAS-Orders-O&M-Assistant. Hard-code its AgentID to the ID of the Orders instance group and create a new DingTalk bot whose visibility scope is set only to Zhang.

  • For Wang (Customer instance group): Follow the same process.

After you complete these steps, a dedicated and isolated DAS Agent O&M channel is created for each team.


Verify results

After the configuration is complete, Li can @ the DAS-RiskControl-O&M-Assistant bot in any DingTalk group chat that contains it and use natural language for diagnostics and Q&A. For example:
@DAS-RiskControl-O&M-Assistant Which instance currently has the highest load?
The bot analyzes and responds based only on the instances in the Risk control instance group. The response is completely isolated from other instance groups.





Additional information

  1. Compatibility with new features: The DAS Agent version released in January 2026 supports operations such as rate limiting and session management directly within conversations, in addition to diagnostics and analysis. Due to the custom front-end interaction required for these operations, they cannot be rendered in DingTalk conversations at this time. Compatibility updates are in progress to ensure a consistent experience between mobile clients such as DingTalk and the PC console.

  2. Advanced usage: DAS Agent provides more than 30 skills. To trigger a specific skill precisely through the API without relying on intent recognition from a plain-text query, use a fixed query format. For more information about the format, see Skill support.