{
  "RequestType": {
    "Name": "Product Analysis",
    "Description": "Request for comprehensive product analysis and insights",
    "Icon": "\uD83D\uDCC8"
  },
  "FormDefinition": {
    "Name": "Product Analysis Request Form",
    "Description": "Form for requesting comprehensive product analysis and insights",
    "Fields": [
      {
        "FieldName": "product_name",
        "FieldType": "text",
        "Label": "Product Name",
        "PlaceholderText": "Enter the name or ID of the product to analyze",
        "DefaultValue": null,
        "IsRequired": true,
        "IsVisible": true,
        "DisplayOrder": 1,
        "FieldConfig": null,
        "ValidationConfig": "{\u0022minLength\u0022: 3, \u0022maxLength\u0022: 100}",
        "DisplayConfig": null,
        "DependentFields": null
      },
      {
        "FieldName": "analysis_type",
        "FieldType": "select",
        "Label": "Analysis Type",
        "PlaceholderText": null,
        "DefaultValue": null,
        "IsRequired": true,
        "IsVisible": true,
        "DisplayOrder": 2,
        "FieldConfig": null,
        "ValidationConfig": null,
        "DisplayConfig": null,
        "DependentFields": null
      },
      {
        "FieldName": "key_metrics",
        "FieldType": "textarea",
        "Label": "Key Metrics to Analyze",
        "PlaceholderText": "List the specific metrics and KPIs you want to focus on",
        "DefaultValue": null,
        "IsRequired": true,
        "IsVisible": true,
        "DisplayOrder": 3,
        "FieldConfig": null,
        "ValidationConfig": "{\u0022minLength\u0022: 30, \u0022maxLength\u0022: 1000}",
        "DisplayConfig": null,
        "DependentFields": null
      },
      {
        "FieldName": "analysis_timeframe",
        "FieldType": "text",
        "Label": "Analysis Timeframe",
        "PlaceholderText": "e.g., Last 12 months, Q4 2025, YTD",
        "DefaultValue": null,
        "IsRequired": true,
        "IsVisible": true,
        "DisplayOrder": 4,
        "FieldConfig": null,
        "ValidationConfig": "{\u0022minLength\u0022: 3, \u0022maxLength\u0022: 50}",
        "DisplayConfig": null,
        "DependentFields": null
      },
      {
        "FieldName": "business_objective",
        "FieldType": "textarea",
        "Label": "Business Objective",
        "PlaceholderText": "What business decision or question should this analysis help answer?",
        "DefaultValue": null,
        "IsRequired": true,
        "IsVisible": true,
        "DisplayOrder": 5,
        "FieldConfig": null,
        "ValidationConfig": "{\u0022minLength\u0022: 50, \u0022maxLength\u0022: 1500}",
        "DisplayConfig": null,
        "DependentFields": null
      },
      {
        "FieldName": "target_audience",
        "FieldType": "text",
        "Label": "Target Audience",
        "PlaceholderText": "Who will be the primary audience for this analysis?",
        "DefaultValue": null,
        "IsRequired": true,
        "IsVisible": true,
        "DisplayOrder": 6,
        "FieldConfig": null,
        "ValidationConfig": "{\u0022minLength\u0022: 5, \u0022maxLength\u0022: 200}",
        "DisplayConfig": null,
        "DependentFields": null
      },
      {
        "FieldName": "deliverable_format",
        "FieldType": "select",
        "Label": "Preferred Deliverable Format",
        "PlaceholderText": null,
        "DefaultValue": null,
        "IsRequired": true,
        "IsVisible": true,
        "DisplayOrder": 7,
        "FieldConfig": null,
        "ValidationConfig": null,
        "DisplayConfig": null,
        "DependentFields": null
      },
      {
        "FieldName": "data_sources",
        "FieldType": "textarea",
        "Label": "Required Data Sources",
        "PlaceholderText": "List the data sources and systems that should be included in the analysis",
        "DefaultValue": null,
        "IsRequired": true,
        "IsVisible": true,
        "DisplayOrder": 8,
        "FieldConfig": null,
        "ValidationConfig": "{\u0022minLength\u0022: 20, \u0022maxLength\u0022: 1000}",
        "DisplayConfig": null,
        "DependentFields": null
      },
      {
        "FieldName": "due_date",
        "FieldType": "date",
        "Label": "Requested Due Date",
        "PlaceholderText": null,
        "DefaultValue": null,
        "IsRequired": true,
        "IsVisible": true,
        "DisplayOrder": 9,
        "FieldConfig": null,
        "ValidationConfig": null,
        "DisplayConfig": null,
        "DependentFields": null
      }
    ],
    "ConditionalRules": [
      {
        "RuleName": "Show Competitive Analysis Fields for Market Analysis",
        "TriggerCondition": "fields.analysis_type === \u0027Market Analysis\u0027 || fields.analysis_type === \u0027Competitive Analysis\u0027",
        "Actions": "[\n    {\n        \u0022type\u0022: \u0022show\u0022,\n        \u0022target\u0022: \u0022competitor_products\u0022\n    },\n    {\n        \u0022type\u0022: \u0022require\u0022,\n        \u0022target\u0022: \u0022competitor_products\u0022\n    }\n]",
        "Priority": 1
      },
      {
        "RuleName": "Show Financial Metrics for Financial Analysis",
        "TriggerCondition": "fields.analysis_type === \u0027Financial Analysis\u0027",
        "Actions": "[\n    {\n        \u0022type\u0022: \u0022show\u0022,\n        \u0022target\u0022: \u0022financial_metrics\u0022\n    },\n    {\n        \u0022type\u0022: \u0022require\u0022,\n        \u0022target\u0022: \u0022financial_metrics\u0022\n    }\n]",
        "Priority": 2
      },
      {
        "RuleName": "Show Dashboard Requirements for Executive Audience",
        "TriggerCondition": "fields.target_audience.includes(\u0027Executive\u0027) || fields.target_audience.includes(\u0027C-level\u0027)",
        "Actions": "[\n    {\n        \u0022type\u0022: \u0022show\u0022,\n        \u0022target\u0022: \u0022executive_summary\u0022\n    },\n    {\n        \u0022type\u0022: \u0022require\u0022,\n        \u0022target\u0022: \u0022executive_summary\u0022\n    },\n    {\n        \u0022type\u0022: \u0022setValue\u0022,\n        \u0022target\u0022: \u0022deliverable_format\u0022,\n        \u0022value\u0022: \u0022PowerPoint Presentation\u0022\n    }\n]",
        "Priority": 3
      }
    ],
    "ValidationRules": [
      {
        "RuleName": "Product Name Required",
        "TargetFields": "product_name",
        "ValidationExpression": "fields.product_name.length \u003E= 2",
        "ErrorMessage": "Product name must be specified",
        "ValidationLevel": "Error"
      },
      {
        "RuleName": "Key Metrics Detailed",
        "TargetFields": "key_metrics",
        "ValidationExpression": "fields.key_metrics.length \u003E= 20",
        "ErrorMessage": "Key metrics must be detailed (20\u002B characters)",
        "ValidationLevel": "Error"
      },
      {
        "RuleName": "Business Objective Clear",
        "TargetFields": "business_objective",
        "ValidationExpression": "fields.business_objective.length \u003E= 25",
        "ErrorMessage": "Business objective must be clearly defined (25\u002B characters)",
        "ValidationLevel": "Error"
      },
      {
        "RuleName": "Timeframe Format Validation",
        "TargetFields": "analysis_timeframe",
        "ValidationExpression": "/\\d\u002B\\s*(day|week|month|quarter|year)/i.test(fields.analysis_timeframe)",
        "ErrorMessage": "Timeframe should include duration and unit (e.g., \u00273 months\u0027, \u00271 quarter\u0027)",
        "ValidationLevel": "Warning"
      },
      {
        "RuleName": "Due Date Reasonable",
        "TargetFields": "due_date",
        "ValidationExpression": "new Date(fields.due_date) \u003E new Date(Date.now() \u002B 7*24*60*60*1000)",
        "ErrorMessage": "Due date should allow at least 7 days for analysis",
        "ValidationLevel": "Warning"
      }
    ],
    "LookupLists": [
      {
        "Name": "Analysis Types",
        "DataSource": "static",
        "Configuration": null,
        "Items": [
          {
            "Value": "market_analysis",
            "DisplayText": "Market Analysis",
            "ParentValue": null,
            "DisplayOrder": 1,
            "ItemConfig": null
          },
          {
            "Value": "competitive_analysis",
            "DisplayText": "Competitive Analysis",
            "ParentValue": null,
            "DisplayOrder": 2,
            "ItemConfig": null
          },
          {
            "Value": "performance_analysis",
            "DisplayText": "Performance Analysis",
            "ParentValue": null,
            "DisplayOrder": 3,
            "ItemConfig": null
          },
          {
            "Value": "customer_analysis",
            "DisplayText": "Customer Analysis",
            "ParentValue": null,
            "DisplayOrder": 4,
            "ItemConfig": null
          },
          {
            "Value": "financial_analysis",
            "DisplayText": "Financial Analysis",
            "ParentValue": null,
            "DisplayOrder": 5,
            "ItemConfig": null
          },
          {
            "Value": "trend_analysis",
            "DisplayText": "Trend Analysis",
            "ParentValue": null,
            "DisplayOrder": 6,
            "ItemConfig": null
          }
        ]
      },
      {
        "Name": "Deliverable Formats",
        "DataSource": "static",
        "Configuration": null,
        "Items": [
          {
            "Value": "presentation",
            "DisplayText": "PowerPoint Presentation",
            "ParentValue": null,
            "DisplayOrder": 1,
            "ItemConfig": null
          },
          {
            "Value": "report",
            "DisplayText": "Written Report",
            "ParentValue": null,
            "DisplayOrder": 2,
            "ItemConfig": null
          },
          {
            "Value": "dashboard",
            "DisplayText": "Interactive Dashboard",
            "ParentValue": null,
            "DisplayOrder": 3,
            "ItemConfig": null
          },
          {
            "Value": "excel",
            "DisplayText": "Excel Workbook",
            "ParentValue": null,
            "DisplayOrder": 4,
            "ItemConfig": null
          },
          {
            "Value": "infographic",
            "DisplayText": "Infographic",
            "ParentValue": null,
            "DisplayOrder": 5,
            "ItemConfig": null
          },
          {
            "Value": "workshop",
            "DisplayText": "Workshop/Presentation",
            "ParentValue": null,
            "DisplayOrder": 6,
            "ItemConfig": null
          }
        ]
      }
    ]
  }
}