{
  "label": "Fictional practice brief",
  "measurement_status": "No workflow executions, model scores, latency, cost or business results have been measured for this illustration.",
  "exercise_boundary": "Use fictional data and isolated test services. This file is a planning brief, not an importable or deployed workflow. The trainer confirms assessed assignments.",
  "case_id": "AI5-TRAINING-N8N-01",
  "title": "Build a fixed intake workflow before adding agent decisions",
  "goal": "Plan a beginner n8n workflow that validates a fictional support request, routes it and records a draft in an isolated test store.",
  "inputs": [
    {
      "id": "N1",
      "text": "Synthetic request: request_id DEMO-001, category billing, message Please explain the sample invoice."
    },
    {
      "id": "N2",
      "text": "Allowed categories for this exercise: billing and general. No real contact details are supplied."
    },
    {
      "id": "N3",
      "text": "Use a mock receiver and test store. No production CRM updates or messages are permitted."
    }
  ],
  "steps": [
    "Map a test trigger to validation and field normalisation.",
    "Route the supported category using explicit workflow logic.",
    "If an AI step is used, validate its structured result before accepting it.",
    "Check repeated request IDs, record a draft once and route failures to review."
  ],
  "checks": [
    {
      "id": "N-C1",
      "input": "The request_id is missing.",
      "expected": "Stop validation and avoid creating a draft record."
    },
    {
      "id": "N-C2",
      "input": "DEMO-001 is delivered twice.",
      "expected": "The proposed duplicate check prevents a second draft for the same request."
    },
    {
      "id": "N-C3",
      "input": "An AI result contains an unsupported category.",
      "expected": "Route to manual review rather than invent a routing destination."
    },
    {
      "id": "N-C4",
      "input": "A test receiver returns a temporary error.",
      "expected": "Use a bounded recovery plan and inspect the failed execution; do not retry indefinitely."
    }
  ],
  "handoff": "A workflow map, field contract, duplicate/error checks and an operating note."
}
