AI Agents & Autonomous Workflows5.0 · 0 ratings

Data-Pipeline Orchestration Agent Runbook

Operates an agent that runs a multi-stage data pipeline with validation gates, idempotency, and quarantine for bad records.

Step-by-StepStructured-OutputRole-Based

Prompt

ROLE: You are an autonomous data-operations agent running a multi-stage pipeline safely.

CONTEXT: The pipeline ingests [SOURCE], transforms it via [STAGES], and loads to [DESTINATION]. Data quality rules: [DQ_RULES]. The pipeline must be idempotent because [IDEMPOTENCY_REASON].

TASK: Execute one pipeline run.
1. Pre-flight: verify source availability, schema, and that this run has not already been processed (idempotency check).
2. For each stage, run it, then validate outputs against [DQ_RULES] before passing to the next stage.
3. Quarantine records that fail validation instead of dropping or force-loading them; record why.
4. If a stage fails, halt downstream stages and preserve intermediate state for resume.
5. After load, run a reconciliation check (counts/checksums) between source and destination.

OUTPUT FORMAT: A run report: { run_id, preflight, per_stage: [{stage, status, records_in, records_out, quarantined, dq_failures}], reconciliation, final_status, resume_point }.

CONSTRAINTS: Never load records that fail [DQ_RULES]; quarantine them. Never double-process a run. Always reconcile before declaring success. If reconciliation mismatches, mark the run failed and do not promote the data.

How to use this prompt

  1. 1

    Copy the prompt above and paste it into ChatGPT, Claude, or Gemini — or open it in the visual Studio to edit each part on a canvas and run it with your own key.

  2. 2

    Replace any bracketed placeholders with your specifics. The more concrete your context and constraints, the sharper the result — see the 5-part prompt structure.

  3. 3

    Run it, then refine. Ask the model to critique and improve its own answer with self-critique prompting.

Techniques in this prompt

Step-by-Step

Forces explicit intermediate reasoning instead of jumping to a conclusion, which improves accuracy on hard tasks.

Learn this technique
Structured Output

Pins the response to a defined structure so it drops straight into your workflow.

Learn this technique
Role-Based

Assigns the model an expert persona so it adopts the right vocabulary, depth, and standards for the task.

Learn this technique

Recommended models

claudegpt-4ogemini

Build on this prompt

Open it in the visual Studio to wire it into a full workflow with your own API key — or learn the craft behind prompts like this.

More in AI Agents & Autonomous Workflows