| |
|
|
| class StrategyEngine: |
|
|
| def __init__(self): |
| pass |
|
|
| |
| |
| |
|
|
| def build_strategy(self, message: str): |
|
|
| msg = message.lower() |
|
|
| strategy = { |
| "content_type": "image", |
| "platform": "generic", |
| "style": "cinematic", |
| "tone": "neutral", |
| "emotion": "neutral", |
| "structure": "hook → explanation", |
| "visual_style": "realistic", |
| "duration": "short" |
| } |
|
|
| |
| |
| |
|
|
| if any(word in msg for word in ["video", "tiktok", "short", "reel", "youtube"]): |
|
|
| strategy["content_type"] = "video" |
| strategy["platform"] = "short_video" |
| strategy["duration"] = "short" |
|
|
| |
| |
| |
|
|
| if any(word in msg for word in ["image", "illustration", "photo", "art"]): |
|
|
| strategy["content_type"] = "image" |
|
|
| |
| |
| |
|
|
| if "psychologie" in msg or "mental" in msg: |
|
|
| strategy["style"] = "psychological" |
| strategy["tone"] = "mysterious" |
| strategy["emotion"] = "dark" |
| strategy["structure"] = "hook → tension → reveal" |
|
|
| |
| |
| |
|
|
| if "manipulation" in msg or "influence" in msg: |
|
|
| strategy["style"] = "dark_psychology" |
| strategy["tone"] = "strategic" |
| strategy["emotion"] = "intense" |
| strategy["structure"] = "hook → mechanism → impact" |
|
|
| |
| |
| |
|
|
| if "comportement" in msg or "social" in msg: |
|
|
| strategy["style"] = "human_behavior" |
| strategy["tone"] = "analytical" |
| strategy["emotion"] = "neutral" |
| strategy["structure"] = "observation → explanation → insight" |
|
|
| |
| |
| |
|
|
| if "cyberpunk" in msg: |
|
|
| strategy["visual_style"] = "cyberpunk" |
| strategy["emotion"] = "epic" |
| strategy["tone"] = "dramatic" |
|
|
| if "fantasy" in msg or "dragon" in msg: |
|
|
| strategy["visual_style"] = "fantasy" |
| strategy["emotion"] = "epic" |
|
|
| return strategy |