{
  "id": "data_validation",
  "name": "Data Validation",
  "description": "Agent presents data it has gathered and asks a human to confirm accuracy or correct errors. Useful for fact-checking, entity resolution, or data quality checks.",
  "pattern": "data_validation",
  "fields": [
    {
      "name": "validation_status",
      "label": "Is this data correct?",
      "type": "select",
      "required": true,
      "options": ["Yes — all correct", "Partially correct (see corrections)", "No — major errors"]
    },
    {
      "name": "corrections",
      "label": "Corrections needed",
      "type": "textarea",
      "required": false,
      "placeholder": "List any corrections needed, one per line...\nExample:\n- Name should be 'John Smith' not 'Jon Smith'\n- Phone number is wrong, should be 555-1234"
    }
  ],
  "metadata": {
    "agent_context": "Include the raw data being validated in the form description or as a hidden field",
    "webhook_handler": "If 'Yes — all correct' → accept data. If 'Partially correct' → parse corrections and re-process. If 'No — major errors' → trigger full re-gathering."
  },
  "example_payload": {
    "validation_status": "Partially correct (see corrections)",
    "corrections": "- Company name should be 'Acme Inc' not 'Acme Incorporated'\n- Founded year is 2019, not 2020"
  }
}