ams-core-api / core /strategy_engine.py
Amssou's picture
Update core/strategy_engine.py
2721b2d verified
Raw
History Blame Contribute Delete
2.65 kB
# core/strategy_engine.py
class StrategyEngine:
def __init__(self):
pass
# =========================
# BUILD STRATEGY
# =========================
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"
}
# =========================
# VIDEO CONTENT
# =========================
if any(word in msg for word in ["video", "tiktok", "short", "reel", "youtube"]):
strategy["content_type"] = "video"
strategy["platform"] = "short_video"
strategy["duration"] = "short"
# =========================
# IMAGE CONTENT
# =========================
if any(word in msg for word in ["image", "illustration", "photo", "art"]):
strategy["content_type"] = "image"
# =========================
# PSYCHOLOGY CONTENT
# =========================
if "psychologie" in msg or "mental" in msg:
strategy["style"] = "psychological"
strategy["tone"] = "mysterious"
strategy["emotion"] = "dark"
strategy["structure"] = "hook → tension → reveal"
# =========================
# DARK PSYCHOLOGY
# =========================
if "manipulation" in msg or "influence" in msg:
strategy["style"] = "dark_psychology"
strategy["tone"] = "strategic"
strategy["emotion"] = "intense"
strategy["structure"] = "hook → mechanism → impact"
# =========================
# HUMAN BEHAVIOR
# =========================
if "comportement" in msg or "social" in msg:
strategy["style"] = "human_behavior"
strategy["tone"] = "analytical"
strategy["emotion"] = "neutral"
strategy["structure"] = "observation → explanation → insight"
# =========================
# CYBERPUNK / VISUAL STYLE
# =========================
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