Scenario-based AI assistants
Scenario-based AI assistants preset the corresponding Skills, expert suites, and scheduled tasks for common daily work in DataWorks. You can create an instance directly from the recommended scenarios on the AI Assistant Service page without configuring capabilities item by item. This topic describes how to select a scenario, create an instance, use conversations and the scenario workbench, build a dedicated workbench, and manage preset tasks and result notifications.
Overview
Scenario-based AI assistants are out-of-the-box capabilities provided on top of AI Assistant Service. For typical work scenarios such as task O&M, data quality, data governance, and cost optimization, DataWorks pre-combines the core capabilities, preset expert suites, preset Skills, and preset scheduled tasks required by the scenario. When you create an instance, you only need to select a scenario and confirm the preset content, without building each capability separately.
The Recommended scenarios area on the AI Assistant Service page lists the scenarios that can be created with one click in the form of cards. Scenarios with the Scenario workbench tag provide a default workbench after the instance is created.
The Intelligent O&M, Data quality, Data governance, Cost optimization, Flink and StarRocks monitoring, and Resource group management scenarios include built-in scheduled tasks, and these tasks are enabled by default on the creation page. After the instance is created, the tasks run automatically on the preset schedule. Review the task content, execution cycle, and result push settings before you create the instance.
Supported scenarios
The following table lists the available scenarios and the problems that each is suited to handle. Except for the DeepSeek Harness customized intelligent assistant, all other scenarios have the Scenario workbench tag. For the workbench pages, filtering and operation methods, preset tasks, and example questions of each scenario, see the corresponding scenario topic.
|
Scenario topic |
Suited problems |
Built-in scheduled tasks |
|
Automatically inspects scheduling tasks 24/7, quickly locates failure root causes, and warns of SLA risks in advance. |
Yes |
|
|
Based on the official DataWorks documentation and FAQ, provides sourced answers about product concepts, operation methods, capability scope, and usage limits. |
No |
|
|
Provides verifiable data quality inspection and configuration assistance around the quality overview, running records, rule coverage, rule templates, and alert reception. |
Yes, including a weekly task that automatically creates monitors |
|
|
Based on the current governance snapshot, development specification checks, and governance plans, analyzes the health score, issue evidence, and to-do responsibilities. |
Yes |
|
|
Analyzes T+1 storage, compute, scheduling, and synchronization consumption as well as resource group status and load, and provides verifiable cost optimization clues through explicit date comparisons. |
Yes |
|
|
Periodically inspects the metrics and system events of Flink jobs and EMR Serverless StarRocks instances, and generates reports and notifies owners when exceptions occur. |
Yes |
|
|
Views the resource groups, usage, network, and elasticity plans of workspaces that you have permissions on, and previews plans in the conversation and manages them after confirmation. |
Yes |
|
|
A pluggable intelligent assistant based on DeepSeek Harness that enables the DataWorks Skills and expert suites built into the current version by default. |
No |
Prerequisites
-
The region and resource group to use are confirmed, and the scope of workspaces, tasks, or cloud resources that the AI assistant needs to query is sorted out.
-
The execution identity (access to DataWorks) is determined. The execution identity must have the actual query permissions on the target data. If multiple users share one instance, you can create a RAM role as guided on the page and add the role to the corresponding workspaces.
-
To send inspection results to a group, an available HTTPS webhook address is prepared. When the task card provides Advanced Settings, you can enter it during creation. You can also configure the IM channel and push targets in the instance details after the instance is created.
Create a scenario-based AI assistant
-
Log on to the DataWorks console, select the target region, and click AI Assistant Service in the left-side navigation pane to go to the AI Assistant Service page.
-
In the Recommended scenarios area, click the target scenario card. In the Scenario description dialog, review the scenario description, core capabilities, preset expert suites, preset Skills, and preset scheduled tasks, and then click Use this scenario.
-
In the Create from scenario window, enter the instance name and description, and select a resource group as required by the page.
-
Select the execution identity (access to DataWorks). For personal use, you can select the current logon user. If multiple users need to share the instance, you can create a RAM role and select the workspaces and corresponding permissions for the role to join. The scope of data that the AI assistant can query is determined by the actual permissions of the execution identity.
-
Review the preset Skills, preset expert suites, and preset scheduled tasks listed on the creation page. The creation page enables the preset items declared by the scenario, and the corresponding switches cannot be modified here. When the task card provides Advanced Settings, you can enter an HTTPS webhook address for the task and set @owner or on-duty personnel as needed.
-
For scenarios that include scheduled tasks, before you click Create now, a prompt appears again indicating that these tasks will run on the preset schedule. Confirm the task content and result receiving address before you create the instance.
-
Wait for the instance to initialize.
Scheduled tasks for which no push address is configured during creation still run on schedule, but do not send results to the target group. After creation, you can go to the instance details to adjust tasks, Skills, expert suites, and IM channels. When a preset scheduled task no longer needs to run, disable it promptly in the scheduled task management of the instance.
First check after creation
-
In the instance list, confirm that the instance has entered the running state. If the instance is still initializing, wait for the page status to update.
-
Open the conversation page and use a known task, table, or resource group to verify the query permissions. The returned result should include the actual object and query basis.
-
For instances that provide a scenario workbench, open the Default workbench, select an available workspace, environment, or date, and confirm that the metrics and lists can load properly.
-
Open the scheduled task management of the instance and verify whether the preset tasks need to continue running and whether the result push targets are set. Disable unnecessary tasks first if needed.
-
To @ an owner in an IM group, maintain the account mapping in the IM channel configuration of the instance and send a test message to confirm the effect.
Use conversations and the scenario workbench
Ask questions in a conversation
Open the created instance and go to the conversation page. Use natural language to describe the project, task, job, region, or time range. The more explicit the query scope, the easier it is for the AI assistant to locate the corresponding data. The following are example ways of asking questions for each scenario:
-
Intelligent O&M: Which tasks failed in Project A yesterday? List the instances, log evidence, and affected downstream tasks.
-
Data quality: Which quality checks failed recently in Project A? Which tables do not have monitoring rules configured?
-
Data governance: View the current governance issues and owners, and list the assets that need to be handled first.
-
Cost optimization: Compare the resource consumption between yesterday and the day before yesterday, and explain the projects with larger changes and the basis.
-
Flink and StarRocks monitoring: Check the restarts, Checkpoint, and processing latency of job A in the last hour.
-
Resource group management: View the current water level and elasticity plan of resource group A. Do they need adjustment?
-
Knowledge Q&A: How do I configure DataWorks baseline alerts? Provide the source in the official documentation.
The AI assistant answers based on the data accessible to the execution identity. If data cannot be queried or the information is insufficient, the assistant explains the reason.
Common operations of the scenario workbench
For scenarios with the Scenario workbench tag, you can enter the workbench from the instance details or the conversation page after the instance is created. The scenario workbench can be accessed only by the current owner of the instance, and requires that the instance is started and uses an image that supports the workbench. If the workbench entry is invisible or a prompt to upgrade appears, verify the instance status, image version, and access permissions.
-
Open the Scenario workbench. If multiple workbenches are saved, you can first select the Default workbench in Select workbench. The default workbench is provided by the scenario and does not need to be built by yourself.
-
Select the query scope by using the filter items provided by the scenario. Common conditions include workspace, production or development environment, business date, object name, status, and time range.
-
View metrics, charts, or lists. Click a drill-down status in a chart, an object in a list, or the operation column to go to a more specific list or object details.
-
When you click entries such as Analyze instance, Analyze alert, AI summary, and AI analysis, the workbench fills the current object and query scope into a conversation draft. Check the question content first and send it after you confirm.
-
If a no-permission, unauthorized, or no-data message appears, first check the permissions of the execution identity on the target project or cloud resource and the selected query scope.
Build a dedicated scenario workbench with AI
The default workbench can be used directly. To combine frequently viewed metrics, charts, and lists on the same page, click Build dedicated workbench with AI in the upper-right corner of a scenario workbench that supports this feature. This feature can only use the data and components that are registered in the current scenario and that the instance has permission to access. It cannot execute arbitrary scripts, create new business interfaces, or bypass existing query permissions through a description.
Creation steps
-
Determine the query scope: In the default workbench, select the required workspace, environment, date, or engine object, and confirm that the relevant data can be displayed properly. For engine scenarios such as Flink and StarRocks, you must complete read-only query authorization before you can query the relevant engine data.
-
Open the build window: Click Build dedicated workbench with AI.
-
Describe the content to display: Use natural language to describe the objects, metrics, filter conditions, and display method. The scope and data source should be consistent with what the current scenario actually provides.
-
Send the requirement and view the progress: The AI assistant first understands the requirement and designs the layout, and then verifies the required data interfaces one by one. The right side displays the verification progress, verified data sources, and items that failed verification. You can continue to make adjustments through the conversation at any time during the build.
-
Check the real preview: After data verification is complete, the workbench preview is displayed on the right. Check whether the workspace, environment, time, chart titles, list fields, and values meet expectations. Save workbench can be clicked only after both the data source and the preview pass verification.
-
Handle content that failed: If a data interface fails verification or the preview is unavailable, first check the permissions and query scope, and then narrow the scope or adjust the requirement in the conversation on the left and try again. Missing data cannot be replaced with zero values, and components that fail verification cannot be treated as completed results.
-
Name and save: Enter a name and click Save workbench. The dedicated workbench is saved in the current instance, and the default workbench is retained. After saving, you can switch to the new workbench in the Select workbench drop-down list.
Example requirement descriptions:
-
Intelligent O&M: Display the periodic instances that failed or were frozen in the production environment yesterday, the number of instances waiting for resources, and the baseline running status. Retain the instance details and log entries in the list.
-
Data quality: Display the tables that failed quality checks in the current workspace, rule running records, and tables that do not have monitoring rules configured.
-
Cost optimization: Display the compute consumption ranking on a specified data date, the storage ranking on the comparison date, and the resource group water level and elasticity plan.
Manage saved workbenches
Select a saved workbench in Select workbench and click Continue adjusting to add modification requirements. After the preview passes, click Update current workbench to directly overwrite the original workbench, or click Save as new workbench to retain the original workbench and create a new one. The Default workbench is always retained and is not overwritten or deleted.
FAQ
-
The button cannot be clicked: First confirm that the current account is the instance owner and that the instance is running properly. When the build capability is unavailable, the default workbench can still be used normally.
-
The expected project or metric is not visible: Check the project permissions of the execution identity, the current workspace, and the environment. For engine scenarios, also check the query authorization for Flink or StarRocks.
-
Cannot save: You must wait for the data interface verification and real preview to complete. If a data source fails verification, adjust the requirement or query scope and then generate the plan again.
-
A component is hidden: When permissions change or a data interface is unavailable, the dedicated workbench hides the corresponding component. You can click Let AI adjust to regenerate, or switch back to the Default workbench to verify the data.
-
The workbench quantity limit is reached: Delete dedicated workbenches that are no longer used, or clean up old versions that are no longer needed in Historical workbenches, and then try again.
Manage preset tasks and notifications
Scenarios that include scheduled tasks run according to the task schedule after the instance is created. Go to the scheduled task management page in the instance details to view task names, execution cycles, status, and execution records, and disable or adjust tasks as needed. The Intelligent O&M, Data quality, Data governance, Cost optimization, Flink and StarRocks monitoring, and Resource group management scenarios include preset tasks. The Knowledge Q&A and DeepSeek Harness customized scenarios do not preset scheduled tasks.
|
Scenario |
Execution frequency of preset tasks |
|
Intelligent O&M |
Daily at 08:00, daily at 09:00, hourly |
|
Data quality |
Daily at 09:00, Mondays at 10:00, hourly |
|
Data governance |
Daily at 09:00, Mondays at 10:00, hourly |
|
Cost optimization |
Daily at 09:30, Wednesdays at 10:00, hourly |
|
Flink and StarRocks monitoring |
4 tasks, all hourly |
|
Resource group management |
Hourly, daily at 08:30, daily at 09:00 |
The daily and weekly times in the preceding table are displayed in Beijing time. The weekly task of the Data quality scenario includes a write operation that automatically creates monitors. Before you create the instance, be sure to read the scenario description in Data quality assistant.
To receive inspection results, you can configure a webhook during creation for tasks that support Advanced Settings, or configure the IM channel and modify the push targets of tasks after the instance is created. To @ an owner in a group, first complete the account mapping in the corresponding IM channel and use a test message to confirm that the correct member can be @-mentioned.
Usage notes
-
Verify preset tasks first: The preset tasks on the creation page are enabled and run on schedule. In particular, read the description of tasks that include automatically creating or modifying configurations.
-
Check data permissions: The business data in the workbench and conversations is queried by using the instance execution identity. If a project or object is not visible, first confirm the permissions of the execution identity.
-
Control the message volume: Before you configure push for hourly inspections, first confirm whether the receiving group needs the result of every run. If no notification is needed, you can leave the push target unconfigured.
-
Confirm the operation scope: Query results and suggestions do not mean that a change has been performed. When you need to rerun a task, modify monitoring, or adjust a resource group plan, confirm as prompted on the page and based on the actual permissions.