Back to Prompt Library
planning

LangGraph Workflow Design Prompt

Inspect the original prompt language first, then copy or adapt it once you know how it fits your workflow.

Linked challenge: EU DMA/DSA Policy Compliance Graph Agent

Format
Text-first
Lines
1
Sections
1
Linked challenge
EU DMA/DSA Policy Compliance Graph Agent

Prompt source

Original prompt text with formatting preserved for inspection.

1 lines
1 sections
No variables
0 checklist items
Design a LangGraph workflow for EU DMA/DSA compliance. Define at least three agent nodes (e.g., 'Document Reader', 'Policy Comparator', 'Risk Aggregator') and their roles. Outline the graph's control flow, including how agents communicate using A2A protocol and how the graph transitions between states based on compliance findings for 'MegaSocial Inc.'.

Adaptation plan

Keep the source stable, then change the prompt in a predictable order so the next run is easier to evaluate.

Keep stable

Preserve the role framing, objective, and reporting structure so comparison runs stay coherent.

Tune next

Swap in your own domain constraints, anomaly thresholds, and examples before you branch variants.

Verify after

Check whether the prompt asks for the right evidence, confidence signal, and escalation path.