Documentation IndexFetch the complete documentation index at: /docs/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
Generate attention-grabbing hooks with multiple variants
praisonai recipe run ai-hook-generator \ --input '{"topic": "GPT-5 release", "num_variants": 5}' \ --json
import sys sys.path.insert(0, 'agent_recipes/templates/ai-hook-generator') from tools import generate_hooks, rank_hooks # Generate hooks hooks = generate_hooks("GPT-5 just released", num_variants=5) # Rank by engagement potential ranked = rank_hooks(hooks["hooks"]) print(f"Best hook: {ranked['best_hook']['text']}")
{ "type": "object", "properties": { "topic": {"type": "string"}, "num_variants": {"type": "integer", "default": 5}, "styles": { "type": "array", "items": {"type": "string"} } } }
{ "hooks": [ { "text": "Did you know GPT-5 can...", "style": "question", "score": 0.85 } ], "best_hook": {...} }