Data Agent provides built-in Airflow skills that help you author Airflow DAGs, manage instances, and perform runtime operations. Describe your DMS Airflow task in natural language, and Data Agent automatically selects the appropriate skill.
Skill overview
Data Agent includes the following three Airflow skills, loaded automatically.
|
Skill |
Scenarios |
Typical deliverable results |
|
|
Author, modify, and validate Airflow 3 DAGs. Supported task types include DMS SQL, lock-free SQL, Notebook, AnalyticDB Spark, Lindorm Spark, DTS data ingestion, and SSH. You can also configure schedules, dependencies, parameters, alerts, and runtime settings. |
DAG files, task descriptions, schedule and dependency details, pre-run configuration checklists, and validation results. |
|
|
Manage DMS Airflow instances and workspaces. Create, query, and update instances. Configure specifications, log directories, DAG and plugin directories, OSS mounts, and upload and publish workspace code. |
Instance details, deployment and publish status, Airflow IDs, failure summaries, and next-step suggestions. |
|
|
Manage Airflow runtime configurations and execution status. Supports troubleshooting connections, variables, pools, DAG status, DAG runs, task instances, and DAG failures. |
Configuration operation results, DAG run status, failed tasks, error summaries, root cause analysis, and remediation suggestions. |
Usage examples
Describe your task in natural language, and Data Agent automatically selects the appropriate skill. For best results, specify the context hierarchically: workspace → Airflow instance → operation.
airflow-operation
|
Natural language task description |
Data Agent deliverables |
|
"Create an Airflow instance named |
Instance creation results, Airflow ID, and deployment status. |
|
"List all Airflow instances in workspace |
Instance list, instance status, and actionable instance IDs. |
|
"Upload and publish the local |
Uploaded file list, publish status, and whether DAG parsing is pending. |
airflow-rest-api
|
Natural language task description |
Data Agent deliverables |
|
"Create a connection named |
Connection creation results. Sensitive fields are not displayed. |
|
"Trigger DAG |
DAG run ID, trigger status, and follow-up suggestions. |
|
"Analyze why DAG |
Failed runs, failed tasks, key errors, root cause analysis, and remediation suggestions. |
Develop Airflow tasks with Data Agent
Airflow task development with Data Agent follows two steps:
-
Author the Airflow code: Provide the DAG ID, schedule interval, task type, task content, dependencies, runtime configuration, and alert requirements. Data Agent delivers the DAG file, task descriptions, a pre-run configuration checklist, and validation results.
-
Upload and publish to a workspace: Provide the workspace, Airflow instance, local DAG file or directory, target publish directory, and whether to perform a verification run. Data Agent delivers the upload results, publish status, and verification run results.
Usage examples
|
Natural language task description |
Data Agent deliverables |
|
"Develop an Airflow DAG with DAG ID |
DAG file, task dependency descriptions, and pre-run configuration checklist. |
|
"Publish the DAG just generated to Airflow instance |
Upload results, publish status, and whether DAG parsing is pending. |
|
"Develop |
DAG file, publish status, and verification run results. |
Bind frequently used information with the memory feature
If you regularly work with the same workspace or Airflow instance, ask Data Agent to remember that information. In later conversations, refer to "the default workspace", "the default Airflow instance", or your custom alias, and Data Agent applies the bound details automatically.
Recommended information to bind:
-
Default workspace name or ID.
-
Default Airflow instance name or ID.
-
Preferred region.
-
Frequently used DAG IDs and DAG publish directories.
-
Frequently used connection, variable, and pool names.
Usage examples
|
What you say when binding information |
What you say later |
|
"Remember that my default workspace ID is |
"List all Airflow instances in my default workspace." |
|
"Bind workspace |
"Publish the local |
|
"Remember that DAG |
"Trigger my default debug DAG and show me the run results." |