Data Engineering Agent Prompt Examples

This guide provides commonly used prompt templates for the Data Engineering Agent. Copy templates directly and replace table names, task names, field names, task directories, and time ranges with your own business objects. For change operations involving scheduling and publishing, rerun/backfill, data quality rule creation, or data source sync, have the Agent output the impact scope and request confirmation first.

Complete execution prompts typically include six types of information:

  • Goal: query, model, create task, configure scheduling, publish, diagnose, or govern
  • Object: which catalog, schema, table, task, task group, or job instance is involved
  • Location: when creating Studio tasks, specify the existing task directory or folder
  • Scope: time range, partition range, business filter conditions, whether historical data is included
  • Output: plan only, create draft only, run query, create target table, publish schedule, or return diagnostic report
  • Constraints: whether query execution is allowed, whether table creation/write is allowed, whether publishing is allowed, whether confirmation is required first

This does not mean all users need to provide all this information upfront in one go.

The more natural approach is:

  • Use exploratory questions first to confirm objects and scope
  • Then use complete execution prompts to drive tasks to completion

Explore First, Execute Later

These questions work better as an opening, helping the Agent clarify the problem.

Explore the current environment and objects

Explore where to start for a requirement

Explore whether tasks can be reused

Explore what a task is currently missing

Explore the most recent run status

Confirm What the Agent Can Do First

Use this when entering the Data Engineering Agent for the first time, or when unsure what tools and permissions are open in the current environment.

To confirm the current context:

Ad-hoc Data Query

Suited for quickly confirming a data result without needing to formalize it as a periodic task.

Example:

Explain Table Schema and Field Meanings

Suited for taking over an unfamiliar table, or when field names are similar and easy to misuse.

If you already know the business definitions, add context:

Metric Definition Design

Suited for unifying business definitions before modeling and development, avoiding inconsistencies across tasks, dashboards, and analysis results.

If business definitions are potentially ambiguous, follow up:

Create an SQL Draft Task

Suited for formalizing a query or transformation into a Studio task without publishing yet.

Always specify the task directory when creating a task — do not let the Agent guess. If the target directory does not yet exist, create it in the Studio task tree first, then have the Agent create the task draft.

Example:

For feature testing, use a temp directory with more conservative constraints:

Review a Draft Task

Suited for checking the Agent's generated SQL after task creation.

To have the Agent explain the SQL:

Create Layered Data Pipeline Drafts

Suited for having the Agent generate a warehouse layer plan first, then create multiple task drafts.

Example:

Create a Composite Task

Suited for creating multi-node tasks, reviewing canvas structure, or validating task group capabilities.

To create a composite task itself:

To understand how task group configuration works:

To add nodes and bind dependencies in a composite task:

Review Composite Task and DAG

Suited for confirming that nodes and dependencies actually exist on the canvas after creating a composite task or Flow.

If you suspect the Agent only created the object but did not build the graph:

From Metrics to Warehouse

Suited for converting metric definitions into Silver/Gold or DWD/DWS task pipelines after metric design is complete.

If SQL output is needed after the plan is confirmed:

If Studio draft tasks need to be created:

Configure Scheduling and Dependencies

Suited for draft tasks that have passed review and need configuration before entering periodic runs. These operations modify task configuration or publish state — confirm impact scope first.

Example:

To save scheduling configuration without entering the scheduling system:

After saving configuration, confirm:

Pre-Publishing Check

Suited for a final check before a task goes live.

For data output tasks, add:

Confirm scheduling impact separately before publishing:

When confirming publication:

For validation only:

Check Task Status and Run History

Suited for confirming whether a task is published, has run, or has a next scheduled run.

For scheduling status only:

Unpublish and Clean Up Test Tasks

Suited when a task is published but subsequent scheduled triggers need to stop, or test artifacts need cleanup.

Confirm impact before unpublishing:

Confirm unpublishing:

Before cleanup:

After manually deleting in the interface:

Review VCluster and Run Impact

Suited for confirming the compute cluster and run impact before scheduling and publishing.

If the Agent returns inconsistent VCluster values:

For read-only queries, also confirm:

Operations Diagnosis

Suited for task failure, timeout, empty results, or unexpected output.

If you don't know the specific instance:

With run instance and execution instance IDs:

Before rerunning:

Data Quality Rule Recommendations

Suited for pre-go-live checks or data anomaly investigation. Have the Agent output rule recommendations first; confirm rule type, blocking behavior, and impact scope before creating, modifying, or deleting rules.

To proceed with creating rules:

To query existing rules first:

To create a low-risk test rule:

To delete a test rule and confirm cleanup:

Run Monitoring and Empty State Explanation

Suited for understanding why the monitoring page has no data, or first confirming whether there are actually instances to diagnose.

If the last 24 hours are empty:

To determine whether an empty state is normal:

Data Source and Sync Troubleshooting

Suited for data ingestion, sync delay, or sync failure scenarios. Data source creation, sync task creation, and sync configuration changes are change operations — output the plan and request confirmation first.

Before creating a sync task:

MCP, CLI, and SDK Configuration Review

Suited for troubleshooting external tool connections, automation integration, or local development environment configuration.

To prepare an integration plan:

High-Impact Operation Confirmation

Before delete, unpublish, backfill, rerun, modify dependencies, or modify scheduling interval — use stricter confirmation templates. Whether deletion operations can be completed directly by the Agent depends on the open tool capabilities; if direct deletion is not possible, perform the operation manually in the interface.

After confirming: