Data-Pipeline Orchestration Agent Runbook
Operates an agent that runs a multi-stage data pipeline with validation gates, idempotency, and quarantine for bad records.
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
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
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
Run it, then refine. Ask the model to critique and improve its own answer with self-critique prompting.
Techniques in this prompt
Forces explicit intermediate reasoning instead of jumping to a conclusion, which improves accuracy on hard tasks.
Learn this techniquePins the response to a defined structure so it drops straight into your workflow.
Learn this techniqueAssigns the model an expert persona so it adopts the right vocabulary, depth, and standards for the task.
Learn this techniqueRecommended models
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
Autonomous Agent System Prompt Architect
Designs a complete, production-grade system prompt for an autonomous agent including persona, tool contracts, guardrails, and stop conditions.
ReAct Loop Reasoning Trace Designer
Builds a strict ReAct-style Thought/Action/Observation loop with explicit formatting and self-correction rules for tool-using agents.
Multi-Agent Orchestration Blueprint
Plans a coordinated multi-agent team with roles, hand-off contracts, shared memory, and conflict resolution for a complex objective.
Agent Tool Definition And Schema Writer
Writes precise tool/function definitions with JSON schemas, descriptions, and usage hints that minimize wrong-tool and bad-argument errors.