367 lines
11 KiB
JSON
367 lines
11 KiB
JSON
{
|
|
"timestamp": "2025-08-04T16:20:52.349838",
|
|
"phase": "content_strategy",
|
|
"analysis": {
|
|
"inputs": {
|
|
"required_inputs": {
|
|
"user_id": {
|
|
"type": "integer",
|
|
"description": "User identifier for personalization",
|
|
"required": true,
|
|
"example": 1
|
|
},
|
|
"name": {
|
|
"type": "string",
|
|
"description": "Strategy name for identification",
|
|
"required": true,
|
|
"example": "Digital Marketing Strategy"
|
|
},
|
|
"industry": {
|
|
"type": "string",
|
|
"description": "Business industry for context",
|
|
"required": true,
|
|
"example": "technology"
|
|
},
|
|
"target_audience": {
|
|
"type": "object",
|
|
"description": "Target audience demographics and preferences",
|
|
"required": true,
|
|
"example": {
|
|
"demographics": [
|
|
"professionals",
|
|
"business_owners"
|
|
],
|
|
"interests": [
|
|
"digital_marketing",
|
|
"content_creation"
|
|
],
|
|
"age_range": "25-45",
|
|
"location": "global"
|
|
}
|
|
},
|
|
"content_pillars": {
|
|
"type": "array",
|
|
"description": "Content pillars and themes",
|
|
"required": false,
|
|
"example": [
|
|
{
|
|
"name": "Educational Content",
|
|
"description": "How-to guides and tutorials",
|
|
"content_types": [
|
|
"blog",
|
|
"video",
|
|
"webinar"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"optional_inputs": {
|
|
"ai_recommendations": {
|
|
"type": "object",
|
|
"description": "AI-generated recommendations",
|
|
"required": false
|
|
},
|
|
"strategy_id": {
|
|
"type": "integer",
|
|
"description": "Existing strategy ID for updates",
|
|
"required": false
|
|
}
|
|
},
|
|
"data_sources": [
|
|
"User onboarding data",
|
|
"Industry benchmarks",
|
|
"Competitor analysis",
|
|
"Historical performance data",
|
|
"Market trends"
|
|
]
|
|
},
|
|
"ai_prompts": {
|
|
"strategic_intelligence_prompt": {
|
|
"purpose": "Generate strategic intelligence for content planning",
|
|
"components": [
|
|
"Strategy data analysis",
|
|
"Market positioning assessment",
|
|
"Competitive advantage identification",
|
|
"Strategic score calculation",
|
|
"Risk assessment",
|
|
"Opportunity analysis"
|
|
],
|
|
"input_data": [
|
|
"strategy_id",
|
|
"market_data (optional)",
|
|
"historical performance",
|
|
"competitor analysis",
|
|
"industry trends"
|
|
],
|
|
"output_structure": {
|
|
"strategy_id": "integer",
|
|
"market_positioning": "object",
|
|
"competitive_advantages": "array",
|
|
"strategic_scores": "object",
|
|
"risk_assessment": "array",
|
|
"opportunity_analysis": "array",
|
|
"analysis_date": "datetime"
|
|
}
|
|
},
|
|
"performance_trends_prompt": {
|
|
"purpose": "Analyze performance trends for content strategy",
|
|
"components": [
|
|
"Metric trend analysis",
|
|
"Predictive insights generation",
|
|
"Performance score calculation",
|
|
"Recommendation generation"
|
|
],
|
|
"metrics_analyzed": [
|
|
"engagement_rate",
|
|
"reach",
|
|
"conversion_rate",
|
|
"click_through_rate"
|
|
]
|
|
},
|
|
"content_evolution_prompt": {
|
|
"purpose": "Analyze content evolution over time",
|
|
"components": [
|
|
"Content type evolution analysis",
|
|
"Engagement pattern analysis",
|
|
"Performance trend analysis",
|
|
"Evolution recommendation generation"
|
|
]
|
|
}
|
|
},
|
|
"data_points": {
|
|
"strategic_insights": {
|
|
"description": "AI-generated strategic insights for content planning",
|
|
"structure": [
|
|
{
|
|
"id": "string",
|
|
"type": "string",
|
|
"title": "string",
|
|
"description": "string",
|
|
"priority": "string",
|
|
"estimated_impact": "string",
|
|
"created_at": "datetime"
|
|
}
|
|
],
|
|
"example": {
|
|
"id": "market_position_1",
|
|
"type": "warning",
|
|
"title": "Market Positioning Needs Improvement",
|
|
"description": "Your market positioning score is 4/10. Consider strategic adjustments.",
|
|
"priority": "high",
|
|
"estimated_impact": "significant",
|
|
"created_at": "2024-08-01T10:00:00Z"
|
|
}
|
|
},
|
|
"market_positioning": {
|
|
"description": "Market positioning analysis and scores",
|
|
"structure": {
|
|
"industry_position": "string",
|
|
"competitive_advantage": "string",
|
|
"market_share": "string",
|
|
"positioning_score": "integer"
|
|
},
|
|
"example": {
|
|
"industry_position": "emerging",
|
|
"competitive_advantage": "AI-powered content",
|
|
"market_share": "2.5%",
|
|
"positioning_score": 4
|
|
}
|
|
},
|
|
"strategic_scores": {
|
|
"description": "Strategic performance scores",
|
|
"structure": {
|
|
"overall_score": "float",
|
|
"content_quality_score": "float",
|
|
"engagement_score": "float",
|
|
"conversion_score": "float",
|
|
"innovation_score": "float"
|
|
},
|
|
"example": {
|
|
"overall_score": 7.2,
|
|
"content_quality_score": 8.1,
|
|
"engagement_score": 6.8,
|
|
"conversion_score": 7.5,
|
|
"innovation_score": 8.3
|
|
}
|
|
},
|
|
"risk_assessment": {
|
|
"description": "Strategic risk assessment",
|
|
"structure": [
|
|
{
|
|
"type": "string",
|
|
"severity": "string",
|
|
"description": "string",
|
|
"mitigation_strategy": "string"
|
|
}
|
|
],
|
|
"example": [
|
|
{
|
|
"type": "market_competition",
|
|
"severity": "medium",
|
|
"description": "Increasing competition in AI content space",
|
|
"mitigation_strategy": "Focus on unique value propositions"
|
|
}
|
|
]
|
|
},
|
|
"opportunity_analysis": {
|
|
"description": "Strategic opportunity analysis",
|
|
"structure": [
|
|
{
|
|
"title": "string",
|
|
"description": "string",
|
|
"estimated_impact": "string",
|
|
"implementation_difficulty": "string",
|
|
"timeline": "string"
|
|
}
|
|
],
|
|
"example": [
|
|
{
|
|
"title": "Video Content Expansion",
|
|
"description": "Expand into video content to capture growing demand",
|
|
"estimated_impact": "high",
|
|
"implementation_difficulty": "medium",
|
|
"timeline": "3-6 months"
|
|
}
|
|
]
|
|
},
|
|
"recommendations": {
|
|
"description": "AI-generated strategic recommendations",
|
|
"structure": [
|
|
{
|
|
"id": "string",
|
|
"type": "string",
|
|
"title": "string",
|
|
"description": "string",
|
|
"priority": "string",
|
|
"estimated_impact": "string",
|
|
"action_items": "array"
|
|
}
|
|
],
|
|
"example": [
|
|
{
|
|
"id": "rec_001",
|
|
"type": "content_strategy",
|
|
"title": "Implement AI-Powered Content Personalization",
|
|
"description": "Use AI to personalize content for different audience segments",
|
|
"priority": "high",
|
|
"estimated_impact": "significant",
|
|
"action_items": [
|
|
"Implement AI content recommendation engine",
|
|
"Create audience segmentation strategy",
|
|
"Develop personalized content templates"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"frontend_mapping": {
|
|
"dashboard_components": {
|
|
"strategy_overview": {
|
|
"backend_data": "strategic_scores",
|
|
"frontend_component": "StrategyOverviewCard",
|
|
"data_mapping": {
|
|
"overall_score": "score",
|
|
"content_quality_score": "qualityScore",
|
|
"engagement_score": "engagementScore",
|
|
"conversion_score": "conversionScore"
|
|
}
|
|
},
|
|
"strategic_insights": {
|
|
"backend_data": "strategic_insights",
|
|
"frontend_component": "InsightsList",
|
|
"data_mapping": {
|
|
"title": "title",
|
|
"description": "description",
|
|
"priority": "priority",
|
|
"type": "type"
|
|
}
|
|
},
|
|
"market_positioning": {
|
|
"backend_data": "market_positioning",
|
|
"frontend_component": "MarketPositioningChart",
|
|
"data_mapping": {
|
|
"positioning_score": "score",
|
|
"industry_position": "position",
|
|
"competitive_advantage": "advantage"
|
|
}
|
|
},
|
|
"risk_assessment": {
|
|
"backend_data": "risk_assessment",
|
|
"frontend_component": "RiskAssessmentPanel",
|
|
"data_mapping": {
|
|
"type": "riskType",
|
|
"severity": "severity",
|
|
"description": "description",
|
|
"mitigation_strategy": "mitigation"
|
|
}
|
|
},
|
|
"opportunities": {
|
|
"backend_data": "opportunity_analysis",
|
|
"frontend_component": "OpportunitiesList",
|
|
"data_mapping": {
|
|
"title": "title",
|
|
"description": "description",
|
|
"estimated_impact": "impact",
|
|
"implementation_difficulty": "difficulty"
|
|
}
|
|
},
|
|
"recommendations": {
|
|
"backend_data": "recommendations",
|
|
"frontend_component": "RecommendationsPanel",
|
|
"data_mapping": {
|
|
"title": "title",
|
|
"description": "description",
|
|
"priority": "priority",
|
|
"action_items": "actions"
|
|
}
|
|
}
|
|
},
|
|
"data_flow": {
|
|
"api_endpoints": {
|
|
"get_strategies": "/api/content-planning/strategies/",
|
|
"get_strategy_by_id": "/api/content-planning/strategies/{id}",
|
|
"create_strategy": "/api/content-planning/strategies/",
|
|
"update_strategy": "/api/content-planning/strategies/{id}",
|
|
"delete_strategy": "/api/content-planning/strategies/{id}"
|
|
},
|
|
"response_structure": {
|
|
"status": "success/error",
|
|
"data": "strategy_data",
|
|
"message": "user_message",
|
|
"timestamp": "iso_datetime"
|
|
}
|
|
}
|
|
},
|
|
"test_results": {
|
|
"test_cases": [
|
|
{
|
|
"name": "Strategy Creation - Required Fields",
|
|
"status": "passed",
|
|
"message": "All required fields present"
|
|
},
|
|
{
|
|
"name": "Strategy Retrieval - User ID Validation",
|
|
"status": "passed",
|
|
"message": "User ID validation passed"
|
|
},
|
|
{
|
|
"name": "Strategic Intelligence - Structure Validation",
|
|
"status": "passed",
|
|
"message": "Expected structure contains 6 required keys"
|
|
},
|
|
{
|
|
"name": "Data Structure Validation",
|
|
"status": "passed",
|
|
"message": "Data structures properly defined"
|
|
}
|
|
],
|
|
"summary": {
|
|
"total_tests": 4,
|
|
"passed": 4,
|
|
"failed": 0,
|
|
"success_rate": 100.0
|
|
}
|
|
}
|
|
}
|
|
} |