Spaces:
Sleeping
Sleeping
File size: 6,045 Bytes
a4a766c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 | {
"enhanced_campaign_webhook": {
"description": "POST /api/webhook/enhanced-campaign - Start AI campaign workflow",
"examples": [
{
"name": "Sustainability Campaign",
"data": {
"campaign_id": "camp_eco_2024",
"product_name": "EcoClean Bottles",
"brand_name": "GreenTech Solutions",
"product_description": "Sustainable water bottles made from recycled materials with temperature control technology. Features include leak-proof design, 24-hour temperature retention, and eco-friendly packaging.",
"target_audience": "Environmentally conscious millennials and Gen Z aged 18-35 who value sustainability and premium quality products",
"campaign_goal": "Build brand awareness and drive sales for our new eco-friendly product line targeting sustainability-focused consumers",
"product_niche": "sustainability",
"total_budget": 5000
}
},
{
"name": "Tech Product Campaign",
"data": {
"campaign_id": "tech_smart_789",
"product_name": "SmartFit Pro Watch",
"brand_name": "TechLife Innovations",
"product_description": "Advanced fitness tracking smartwatch with health monitoring, GPS, heart rate tracking, sleep analysis, and 7-day battery life",
"target_audience": "Fitness enthusiasts and tech-savvy professionals aged 25-45 who want comprehensive health tracking",
"campaign_goal": "Generate buzz and pre-orders for our new smartwatch launch, highlighting advanced features and competitive pricing",
"product_niche": "tech",
"total_budget": 7500
}
},
{
"name": "Beauty Product Campaign",
"data": {
"campaign_id": "beauty_glow_456",
"product_name": "Radiant Glow Serum",
"brand_name": "PureBeauty Labs",
"product_description": "Natural vitamin C serum for glowing skin with organic ingredients, hyaluronic acid, and anti-aging properties. Suitable for all skin types",
"target_audience": "Beauty enthusiasts and skincare lovers aged 20-40 looking for effective anti-aging and brightening solutions",
"campaign_goal": "Increase brand awareness and drive online sales through authentic skincare transformation content",
"product_niche": "beauty",
"total_budget": 4000
}
},
{
"name": "Fitness Product Campaign",
"data": {
"campaign_id": "fitness_power_321",
"product_name": "PowerLift Protein",
"brand_name": "StrengthFirst Nutrition",
"product_description": "Premium whey protein powder for muscle building and recovery. 25g protein per serving, natural flavors, and third-party tested for purity",
"target_audience": "Athletes, bodybuilders, and fitness enthusiasts aged 18-50 focused on muscle building and recovery",
"campaign_goal": "Build credibility and drive supplement sales through authentic fitness transformation and workout content",
"product_niche": "fitness",
"total_budget": 6000
}
}
]
},
"contract_generation": {
"description": "POST /api/webhook/generate-enhanced-contract - Generate contracts",
"example": {
"creator_name": "TechReviewer_Sarah",
"compensation": 2500.0,
"campaign_details": {
"brand": "GreenTech Solutions",
"product": "EcoClean Bottles",
"deliverables": ["1 Instagram post", "3 Instagram stories", "1 YouTube review"],
"timeline": "2 weeks",
"usage_rights": "1 year exclusive"
}
}
},
"test_call": {
"description": "POST /api/webhook/test-actual-call - Test ElevenLabs calling",
"example": {
"creator_name": "TechReviewer_Sarah",
"creator_phone": "+918806859890",
"campaign_details": {
"product_name": "EcoClean Bottles",
"brand_name": "GreenTech Solutions",
"compensation_offer": 2500.0,
"niche": "sustainability"
}
}
},
"monitoring_endpoints": {
"description": "GET endpoints for monitoring campaign progress",
"endpoints": [
{
"url": "/api/monitor/campaign/{task_id}",
"method": "GET",
"description": "Real-time campaign progress monitoring"
},
{
"url": "/api/monitor/campaigns",
"method": "GET",
"description": "List all active and recent campaigns"
},
{
"url": "/api/monitor/campaign/{task_id}/summary",
"method": "GET",
"description": "Detailed campaign results and analytics"
}
]
},
"expected_workflow": {
"description": "Complete workflow example",
"steps": [
{
"step": 1,
"action": "POST /api/webhook/enhanced-campaign",
"description": "Start campaign with JSON data above",
"expected_response": {
"message": "🎯 Enhanced AI campaign workflow started",
"task_id": "9a2687c3-350b-48dc-8261-d07cad7c90d3",
"campaign_id": "camp_eco_2024",
"brand_name": "GreenTech Solutions",
"product_name": "EcoClean Bottles",
"estimated_duration_minutes": 8,
"monitor_url": "/api/monitor/campaign/9a2687c3-350b-48dc-8261-d07cad7c90d3",
"status": "started"
}
},
{
"step": 2,
"action": "GET /api/monitor/campaign/{task_id}",
"description": "Monitor progress in real-time",
"expected_stages": ["discovery", "strategy", "negotiations", "contracts", "completed"]
},
{
"step": 3,
"action": "GET /api/monitor/campaign/{task_id}/summary",
"description": "Get final results and analytics",
"expected_data": ["successful_negotiations", "generated_contracts", "total_cost", "performance_metrics"]
}
]
}
} |