{ "name": "conditional-request-routing-workflow", "version": "1.0.0", "goal": "Collect a request, classify it via branching logic, and route to an approval or rejection handler to produce a final result", "inputs": [ { "name": "request", "type": "string", "description": "The input text or request to be evaluated and routed" } ], "steps": [ { "node": "Start", "agent_type": "input", "description": "Prompt user and capture the request into state field 'request'", "next": "Classify" }, { "node": "Classify", "agent_type": "branching", "description": "Evaluate the request and set 'decision' field, routing to Approve on success or Reject on failure", "input_fields": [ "request" ], "output_field": "decision", "next_node": "Approve", "on_failure": "Reject" }, { "node": "Approve", "agent_type": "default", "description": "Format and output an approval message containing the request", "input_fields": [ "request" ], "output_field": "result", "prompt": "Request approved: {request}" }, { "node": "Reject", "agent_type": "default", "description": "Format and output a rejection message containing the request", "input_fields": [ "request" ], "output_field": "result", "prompt": "Request rejected: {request}" } ], "outputs": [ { "name": "result", "type": "string", "description": "Final formatted message indicating the outcome (approved or rejected)" }, { "name": "decision", "type": "string", "description": "Routing decision produced by the branching node" } ], "failure_modes": [ "Empty or missing request input prevents meaningful classification", "Branching node fails to resolve a valid route and defaults to rejection path", "Prompt template variable missing causes malformed output" ], "confidence": 0.92, "explanation": "Extracted from the ReviewFlow CSV example in the AgentMap README. This is a declarative, CSV-defined LangGraph workflow demonstrating the reusable pattern of input -> branching classification -> conditional handling paths. It can be generalized for ticket triage, content moderation, or any route-by-condition use case.", "source_repo": "https://github.com/jwwelbor/AgentMap.git", "score": 1.0 }